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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-24-2012, 01:18 PM
|
#1
|
Member
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61
Rep:
|
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
|
|
|
06-24-2012, 01:29 PM
|
#2
|
Member
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258
Rep:
|
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
|
|
|
06-24-2012, 02:02 PM
|
#3
|
Senior Member
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753
|
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
|
|
|
06-24-2012, 03:06 PM
|
#4
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by zer0signal
...
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.
|
|
|
06-24-2012, 04:20 PM
|
#5
|
Member
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258
Rep:
|
Quote:
Originally Posted by schneidz
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.
|
|
|
06-24-2012, 05:02 PM
|
#6
|
Member
Registered: Jun 2012
Distribution: Gentoo (Host), Arch (Guest), FreeBSD9, Android 2.3.6
Posts: 32
Rep:
|
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 05:07 PM.
|
|
|
06-25-2012, 03:24 AM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
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)
|
|
|
06-25-2012, 06:20 AM
|
#8
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
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 ####################
|
|
|
06-25-2012, 08:43 AM
|
#9
|
Member
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61
Original Poster
Rep:
|
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.
|
|
|
06-25-2012, 08:49 AM
|
#10
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
lsdvd lists the length of each title.
|
|
|
06-25-2012, 12:07 PM
|
#11
|
Member
Registered: Jun 2012
Distribution: Gentoo (Host), Arch (Guest), FreeBSD9, Android 2.3.6
Posts: 32
Rep:
|
Quote:
Originally Posted by mainstream
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 12:23 PM.
|
|
|
06-26-2012, 06:45 AM
|
#12
|
Member
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61
Original Poster
Rep:
|
Quote:
Originally Posted by Terminal_Cowboy
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 06:57 AM.
|
|
|
06-26-2012, 06:54 AM
|
#13
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
do you like vobcopy ? a custom script calling lsdvd (filtering titles less than 1 minute) and vobcopy will likely yield good results.
|
|
|
06-26-2012, 08:41 AM
|
#14
|
Member
Registered: Oct 2010
Location: localhost
Distribution: Ubuntu / Linux Mint
Posts: 61
Original Poster
Rep:
|
Quote:
Originally Posted by schneidz
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
|
|
|
06-26-2012, 02:05 PM
|
#15
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
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 02:22 PM.
|
|
|
All times are GMT -5. The time now is 04:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|