LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Merging two video DVDs (http://www.linuxquestions.org/questions/slackware-14/merging-two-video-dvds-4175472382/)

Woodsman 08-06-2013 06:26 PM

Merging two video DVDs
 
Anybody have experience with this? I received some used movie DVDs. Some of them are two-disk sets. I had no problem copying to ISO images and playing in xbmc, but not having to interrupt the movie to play "disk 2" would be nicer.

I presume after extracting the contents of each ISO image I rename the vob files of the second ISO. Then what?

Raveriux 08-06-2013 06:57 PM

Quote:

Originally Posted by Woodsman (Post 5004336)
Anybody have experience with this? I received some used movie DVDs. Some of them are two-disk sets. I had no problem copying to ISO images and playing in xbmc, but not having to interrupt the movie to play "disk 2" would be nicer.

I presume after extracting the contents of each ISO image I rename the vob files of the second ISO. Then what?

its a toll called VOBMerge, but it's for windows only. Maybe runs good in wine.http://www.evilmaster.net/?page=tools

Woodsman 08-06-2013 08:56 PM

Hmm. Even if I wanted to use Windows, and I don't :), looks like that program converts vob files into one file. I want to merge the vob files from a two disk set into a single disk, not single file. :)

knudfl 08-07-2013 01:57 AM

Authoring a new DVD : dvdauthor → 'Q DVD Author', 'DVD Styler', etc.
http://dvdauthor.sourceforge.net/

http://en.wikipedia.org/wiki/List_of...g_applications
< http://en.wikipedia.org/wiki/DVD_authoring


-

Woodsman 08-07-2013 12:35 PM

I don't think dvdauthor is the key. The key is merging the two separate collections of vob files such that when a person creates the new single disk DVD the vob files work seamlessly. I tried renaming the vob files from the second disk (sequentially renumbered after the vob of the first disk) and then copying the renamed files to the first disks file tree. Didn't work. I suspect something is needed to create new IFO files.

cmyster 08-07-2013 05:04 PM

From my experience, an authoring program is the best way to do it (I dual boot so I have windows stuff for it). No matter how the original is set or split, eventually the program will read all the media files, you set it up however you want it to be, and you export the final result into something. That something may be a final DVD project with any number of vobs (depends on how you set it) or you can export it to a media file such as avi.
I suggest that you research a little about authoring DVDs in Linux to find the perfect tool for the job.

Woodsman 08-07-2013 05:45 PM

If merging a dual disk set was so straightforward likely I'd find numberous tutorials on the web. I don't. :)

I'm not interesting in converting vob files to avi or any other format. I want to merge a dual disk set into one disk.

scottro11 08-07-2013 08:18 PM

I haven't tried to do that particular thing, but I'd think that a combination of vobcopy and mencoder would work.
I'm sure some of this will tell you what you already know, but IMHO it's better to give too much information than too little, so...

Also, most of my experience with it is on CentOS, which probably uses slightly older versions of everything.


Sometimes, vobcopy requires the disk be mounted, so first, mount the first DVD somewhere, /mnt is good. (Othertimes, vobcopy will just automatically find it, whether it's mounted or not, but this way, you're sure)

Code:

vobcopy -l -i /mnt
The -l is for large, otherwise, vobcopy won't make a file over 2 gigs.
This should create a file MY_VIDEO.VOB or something similar. Then, do the same with the second disk, so you have something like
myvideo.vob and myvideo1.vob.

Now you should be able to combine them with mencoder. At its simplest
Code:

mencoder -o newfile.vob -oac copy -ovc copy myvideo.vob myvideo1.vob
In other examples, I've seen people add -noodml to the command to avoid writing OpenDML index, but (in combining avi files), I've left it out without problems. Sometimes, you'll get an error, and it will suggest using -oac pcm instead of copy. (Or run mencoder -oac help to see available audio codecs to use).

Once this is done, in theory, you should have newfile.vob which will be what you want. Assuming you need to put it back onto a DVD it would be mkisofs -o myvideo.iso myvideo.vob and then burn it to disk with growisofs -Z -dvd-compat -Z /dev/scd0=myvideo.iso

Again, I've never done this exact thing, but it seems as if it should work.

glorsplitz 08-07-2013 08:35 PM

I did the following to create mp4

dvdbackup -i /dev/sr0 -M -o .
cat VTS_01_0.VOB VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB > movie.vob
ffmpeg -i movie.vob -strict -2 -y -acodec aac -vcodec libx264 -s svga -crf 24 -threads 0 movie.mp4

so if the above cat was for dvd 1, do the same for dvd 2 then rename dvd 2 vobs and cat those as in
cat VTS_01_0.VOB VTS_01_1.VOB VTS_02_0.VOB VTS_02_1.VOB > movie.vob

then do what scottro11 says to create dvd
mkisofs -o movie.iso movie.vob and then burn it to disk with growisofs -Z -dvd-compat -Z /dev/sr0=movie.iso

not sure about how large this would all be and how to handle it

croxen 08-07-2013 09:13 PM

A simple tool like Devede has added settings options which will allow you to

1) build your new single-disk .iso by simply repacking the existing .vob files (rather than the usual transcoding of them to another format with quality loss); and

2) Prepare an iso file in which title 2 (formerly .vob no. 2) will start automatically when title 1 (formerly .vob no. 1) has finished, rather than going to a menu or some such.

This appears to be what you want to do. The iso file which you prepare by repacking the vob files will naturally be a bit bigger than the sum total size of the two vobs, which may make the iso too big to fit on a single DVD. The oversize iso file will still play properly in vlc (or XBMC), of course.

Woodsman 08-07-2013 10:17 PM

Quote:

I did the following to create mp4
I don't want to create an mp4 or avi, I want to merge a two disk set into one disk. :)

Quote:

A simple tool like Devede has added settings options which will allow you to
I'm not sure but I'll look. :)

Quote:

Again, I've never done this exact thing, but it seems as if it should work.
Hmm. I don't know either.

Here is a general picture:

Disk 1:

VIDEO_TS/VIDEO_TS.BUP
VIDEO_TS/VIDEO_TS.IFO
VIDEO_TS/VIDEO_TS.VOB
VIDEO_TS/VTS_01_0.BUP
VIDEO_TS/VTS_01_0.IFO
VIDEO_TS/VTS_01_0.VOB
VIDEO_TS/VTS_01_1.VOB
VIDEO_TS/VTS_01_2.VOB
VIDEO_TS/VTS_01_3.VOB
VIDEO_TS/VTS_01_4.VOB

Disk 2:

VIDEO_TS/VIDEO_TS.BUP
VIDEO_TS/VIDEO_TS.IFO
VIDEO_TS/VIDEO_TS.VOB
VIDEO_TS/VTS_01_0.BUP
VIDEO_TS/VTS_01_0.IFO
VIDEO_TS/VTS_01_0.VOB
VIDEO_TS/VTS_01_1.VOB
VIDEO_TS/VTS_01_2.VOB
VIDEO_TS/VTS_01_3.VOB
VIDEO_TS/VTS_01_4.VOB

To make this work, the VOB files in disk 2 need to be renumbered, starting with something like VTS_01_5.VOB, or perhaps the files from the second disk need to be renumbered as VTS_02_0.VOB, etc. I really don't know and I need to look at other disks to see how they are numbered.

Yet that leave the following files from disk 2 and those files can't be renamed:

VIDEO_TS/VIDEO_TS.BUP
VIDEO_TS/VIDEO_TS.IFO
VIDEO_TS/VIDEO_TS.VOB

Perhaps once the vob files are pulled from each disk devede might be able to "stitch" everything together. I don't know. :)

scottro11 08-07-2013 11:36 PM

What I've found is that vobcopy will usually take the main title from a DVD. This _might_ give you all you needed, depending upon the DVD, even if it has a layout like the one you show.

I would at least try running vobcopy and seeing if the vob file you get has all that you need.

Another, longer way around would be to do what you said you don't want to do, and stick it all into mkv containers. The syntax would be

makemkvcon mkv disc:0 all mymkvs

where mykmvs is a directory that you've created. Then, all the titles from the disk will be in there as title00.mkv title001.mkv and so on.
You can then run mkvmerge -o new.mkv title00.mkv + title001.mkv

which will give you all the files on the disk, though you won't be able to naviagate a menu, you'd only be able to play it. Then you could do the same for the second disk, calling the output file new1.mkv then merge them with mkvmerge -o newest.mkv new.mkv + new1.mkv, and then run mkisofs and growisofs as previously described.

I know you don't want to convert, but though that would take a bit of work, putting something in an mkv container is pretty quick, as is merging it. Still, IMHO, it's worth trying the vobcopy first to see if the resulting vob has all that you need.

For what it's worth, I have a page on dealing with multimedia. It's pretty basic, and doesn't cover your specific situation, but one never knows, it might give you other ideas.


http://home.roadrunner.com/~computertaijutsu/dvds.html


All times are GMT -5. The time now is 11:35 PM.