LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2012, 02:18 PM   #1
mainstream
Member
 
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61

Rep: Reputation: 0
Remove titles from DVD?


Hello all,

I'm looking for an alternative for Windows' DVDShrink to delete titles <1 min from a DVD (i want all junk removed from my backed-up dvds).

Maybe there is a linux alternative or is this possible through bash (so it's automated).

I have no clue where to begin; have been searching for a few days now.

Thanks in regards
 
Old 06-24-2012, 02:29 PM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
MakeMKV - will let you choose which video file you want to remove from the DVD/Blu-ray 'can also specify minimum length'
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224

Then you can use Handbrake to encode it to an MP4
 
Old 06-24-2012, 03:02 PM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906Reputation: 906
I believe you can do it from DVD::rip as well.

General options-> frame range.

Its not quite the same as with DVDshrink, there is no GUI frame slider. Neat hint here-

Quote:
May be mplayer can help you. The output in xterm or what do you use, is

A: 4.2 V: 4.2 A-V: 0.000 ct: 0.004 102/102 33% 8% 1.6% 0 0 0%

What do you want is the fith number; is the number of frames showed.

So you run the movie, pause it in the first frame that you want to
identify, continues and pause again in the last frame ...
I know my english is terrible ... You'll see something like this:

A: 0.6 V: 0.6 A-V: -0.001 ct: 0.009 16/ 16 42% 11% 5.6% 0 0 95%
A: 8.3 V: 8.3 A-V: 0.001 ct: 0.004 200/200 27% 8% 1.8% 6 0 79%
------ PAUSED -------

The first frame is 16 and the last is 200
http://www.exit1.org/archive/dvdrip-.../msg00087.html
 
Old 06-24-2012, 04:06 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by zer0signal View Post
...

Then you can use Handbrake to encode it to an MP4
i guess its up to taste but why would someone convert an mkv to an mp4.

i would use xvidenc or h264enc and modify the output bash script for your needs.
 
Old 06-24-2012, 05:20 PM   #5
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
Originally Posted by schneidz View Post
i guess its up to taste but why would someone convert an mkv to an mp4.
I just do it for portability reason's, and file size... Ripping a Bluray, I don't want to store the 25GB MKV file for future use. I like to compress it down to a smaller size while retaining most of the HD qualities, for phone use or whatever... It's just they way I do it, many ways to do a this.
 
Old 06-24-2012, 06:02 PM   #6
Terminal_Cowboy
Member
 
Registered: Jun 2012
Distribution: Gentoo (Host), Arch (Guest), FreeBSD9, Android 2.3.6
Posts: 32

Rep: Reputation: Disabled
k9copy is an equivalent to dvdshrink which takes a high density dvd and shrinks it to fit a standard dvd. k9copy allows you to select titles, languages and subtitles from the dvd and k9copy will make a dvd image folder or an iso. You can also choose to make individual file(s) as well.

I use HandBrakeCLI when I want to make a mp4 or a mkv file from a dvd or from a file. HandBrakeCLI also lets you encode a portion of the video by passing these options --start-at and --stop-at

Lastly, if you want to make a dvd from your video files, programs like tovid, dvdstyler and devede fit the bill. Personally, in my opinion tovid is the best dvd authoring program for linux.

http://tovid.wikia.com/wiki/Tovid_Wiki
http://dvdstyler.org/en/

- cheers

Last edited by Terminal_Cowboy; 06-24-2012 at 06:07 PM.
 
Old 06-25-2012, 04:24 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
what is it you want to do
remove the intro to a season of episodes on a dvd

or

the fbi warning and the very VERY laughable PSA ( if you can call it that) on the EVILS of copying


all of the above will work to remove the 30 sec intro and 30 sec at the end ( credits)
 
Old 06-25-2012, 07:20 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
here is my xvidenc output (season to taste):
Code:
[schneidz@hyper ~]$ cat bin/xvidenc-ac3-mkv.ksh
#!/bin/bash
################### START OF COMMANDS ###################

dvd=`lsdvd $1 | head -n 1 | awk '{print tolower($3)}' | sed s/_/-/g`
#mkdir /home/xbmc/win/stuff/clips/$dvd
titles=`lsdvd $1 | grep ^Title: | cut -b 8-9 | tail -n 1`
i=1
while [ $i -le 1 ]
do

/usr/bin/mencoder "dvd://$i" -dvd-device $1 -o /dev/null -vc mpeg12 -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=1:turbo:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-$i.log"

/usr/bin/mencoder "dvd://$i" -dvd-device $1 -o "$dvd-`zero-pad-2.x $i`".avi -vc mpeg12 -vf pp=al:c,softskip,unsharp=l5x5:.25:c5x5:.25,harddup -aid 128 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=192 -a52drc 1 -ovc xvid -xvidencopts pass=2:bitrate=2000:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:nointerlacing:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect -passlogfile "$dvd-$i.log"




sleep 2

/usr/bin/mkvmerge   --title "$dvd-$title-ac3" --track-name 0:"$dvd-$title-ac3" --language 1:en --track-name 1:"AC3 5.1" "$dvd-`zero-pad-2.x $i`.avi"      -o "$dvd-`zero-pad-2.x $i`.mkv"
sleep 2

i=`expr $i + 1`
done
#################### END OF COMMANDS ####################
 
Old 06-25-2012, 09:43 AM   #9
mainstream
Member
 
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Ok thanks for all the comments.

I do not want to convert it to mkv or encode it to somewhat else. I just want to remove the intro (trailers and other crap) and keep a DVD format. Whether this is just the VIDEO_TS folder or an ISO (maybe even better).
I know, that removing the FBI warning and such, takes more work... So i keep my hands off that.
 
Old 06-25-2012, 09:49 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
lsdvd lists the length of each title.
 
Old 06-25-2012, 01:07 PM   #11
Terminal_Cowboy
Member
 
Registered: Jun 2012
Distribution: Gentoo (Host), Arch (Guest), FreeBSD9, Android 2.3.6
Posts: 32

Rep: Reputation: Disabled
Quote:
Originally Posted by mainstream View Post
I just want to remove the intro (trailers and other crap) and keep a DVD format. Whether this is just the VIDEO_TS folder or an ISO (maybe even better).
Did you read my post. k9ccopy does what you want. I know because I use it. K9copy also includes a program called k9copy assistant, an interactive wizard that guides you in creating your custom dvd. Just click on the wizard button on the top menu.

Last edited by Terminal_Cowboy; 06-25-2012 at 01:23 PM.
 
Old 06-26-2012, 07:45 AM   #12
mainstream
Member
 
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Terminal_Cowboy View Post
Did you read my post. k9ccopy does what you want. I know because I use it. K9copy also includes a program called k9copy assistant, an interactive wizard that guides you in creating your custom dvd. Just click on the wizard button on the top menu.
THanks for the tip. I however use Gnome... I tried to install Lightbrake (k9copy with KDE depencies) but the PPA is broken.
Code:
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/testing/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/testing/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/testing/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
N.v.m. i already found a working deb (THANKS!). Still my question: does anyone know how to do this automated? ^^

Last edited by mainstream; 06-26-2012 at 07:57 AM.
 
Old 06-26-2012, 07:54 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
do you like vobcopy ? a custom script calling lsdvd (filtering titles less than 1 minute) and vobcopy will likely yield good results.
 
Old 06-26-2012, 09:41 AM   #14
mainstream
Member
 
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by schneidz View Post
do you like vobcopy ? a custom script calling lsdvd (filtering titles less than 1 minute) and vobcopy will likely yield good results.
That sounds more to my tasting! Where can i find this script?
Thanks in regards
 
Old 06-26-2012, 03:05 PM   #15
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
custom meaning you make it yourself. i mite be able to hax a few lines of bash together tomorrow if i got time... am being smothered with work at the moment.

edit: actually it didnt take that long:
Code:
[schneidz@hyper bb]$ lsdvd bb-4-1.iso 
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Disc Title: BREAKING_BAD_SEASON_4_DISC_1
Title: 01, Length: 00:47:08.320 Chapters: 07, Cells: 07, Audio streams: 08, Subpictures: 32

Title: 02, Length: 00:45:55.286 Chapters: 07, Cells: 07, Audio streams: 02, Subpictures: 03

Title: 03, Length: 00:46:10.210 Chapters: 07, Cells: 07, Audio streams: 02, Subpictures: 03

Title: 04, Length: 00:45:10.266 Chapters: 07, Cells: 07, Audio streams: 02, Subpictures: 03

Title: 05, Length: 00:04:17.210 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 00

Title: 06, Length: 00:04:03.043 Chapters: 05, Cells: 05, Audio streams: 01, Subpictures: 01

Title: 07, Length: 00:01:55.033 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 08, Length: 00:00:39.310 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 09, Length: 00:01:40.120 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 10, Length: 00:18:23.200 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01

Title: 11, Length: 00:04:19.233 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 12, Length: 00:04:30.086 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 13, Length: 00:03:42.276 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 14, Length: 00:03:26.053 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 15, Length: 00:02:55.210 Chapters: 03, Cells: 03, Audio streams: 01, Subpictures: 01

Title: 16, Length: 00:00:33.043 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 01

Title: 17, Length: 00:00:14.186 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 00

Title: 18, Length: 00:00:26.110 Chapters: 02, Cells: 02, Audio streams: 00, Subpictures: 00

Title: 19, Length: 00:00:29.000 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 00

Longest track: 01

[schneidz@hyper bb]$ lsdvd bb-4-1.iso | grep -v 00:00:[0-9][0-9] | cut -b 8-9 | grep [0-9][0-9] | while read title; do echo title = $title; vobcopy -n $title; done

Last edited by schneidz; 06-26-2012 at 03:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
These files are on a video DVD -how to remove kumar116 Linux - Hardware 1 12-13-2010 02:03 AM
Recompliled K3b for DVD ripping: problem with previewing titles damgar Slackware 6 01-12-2010 07:46 PM
How to remove "(on localhost.localdomain)" from window titles? stuntbairn Linux - Newbie 6 03-23-2009 04:20 AM
remove group RPMs from a DVD ncsuapex Linux - Software 1 07-14-2008 02:24 PM
How do I remove an old DVD ROM from my system? Balarabay1 SUSE / openSUSE 1 04-14-2006 02:57 AM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration