View Full Version : vob->avi or another container
shevegen
19th January 2005, 17:56
Hi,
If you would want to bring four vob files (size total: 6.6 GB) already
lying on your harddisc into one file with a size of about 1 up to 1.5 GB, what woud you use, and what would the commandline look like?
frodoontop
19th January 2005, 19:24
This can probably be done with cat. Never did it though. The command line would be something like cat *.vob >> newfile.vob. Make sure you ain't using ext2 or vfat as a filesystem. They don't support >2GB.
eb
19th January 2005, 20:27
Use DVD2AVIT3, add all files but keep correct order.
Set cropping, compressing parameters for Xvid, and save as .avi
As result you will get 1 video + 1 or more audios.
Use VirtualDubMod to mux these files to final .avi file.
If in these vobs are also subtitles use ProjectX to demux all streams with correct synchro, and again put them all to VDM for processing and muxing.
eb
EDIT: I am sorry, but now i see that is Linux thread.
shevegen
20th January 2005, 00:23
Doesnt matter so much, there is another thread stating that
using VDub etc... is possible with wine, so i dont have a problem
with that :)
oh man, video for sure is a lot more stuff to read thru than audio
:>
will have a look at cat-ting the files together, i remember though once cat produced faulty results of an .ogg file
echo
21st January 2005, 20:43
So what do you want to do with the vob once you have it in one piece? I guess you could put video and audio from all files with a simple cat and with mencoder -ovc copy -oac copy options in an avi file as your title says but other than mplayer I don't know if that could be of any use.
Penguin Man
25th January 2005, 08:43
If you convert each one to AVI separately using mencoder, you can then cat the AVI files together and use mencoder to fix the indexing and things so the file will work properly.
juicemansam
1st February 2005, 20:19
Originally posted by Penguin Man
If you convert each one to AVI separately using mencoder, you can then cat the AVI files together and use mencoder to fix the indexing and things so the file will work properly. I had a real bad experience using that method. The movie had split GOPs between VOBs, which produced out of sync audio and nasty blocky video near those areas. The audio was out of sync from that point on. What I used to do (until I ran out of space and stopped converting movies all together) was the following: Rip DVD using vobcopy (before used to use tst-dvd for authentication, then vobdec for decryption/copying).
Find the desired set of VOBs and make a plain text list with only filenames, one per line would be fine.
Create a FIFO file, ex: mkfifo out.vob.
Use vstrip to output the desired stream to out.vob.
Use mencoder to encode.
A lot of piping and mplayer output with trial and error will be needed for getting the right aspect output, and cropping.
I haven't done this in a long time (over a year) so it's just a rough list of steps.
six6
16th February 2005, 19:53
@shevegen
If you're still reading this thread or interested, cat will work fine, but catting the vobs into a file is
a) unessesary
b) problematic as mentioned.
Instead, simply cat them into a pipe.
cat /path/to/vobs/* | mencoder -ofps 23.976 -oac copy -ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=???:v4mv:mbd=2:trell:cmp=10:subcmp=10:mbcmp=10:autoaspect:vpass=1\
-aid 128 -o output.avi -
Of course, that command line assumes you're using NTSC progressive material, and that you want the first audio track. But that's easy to change.
Finally, replace "vbitrate=???" with what's necessary to get 1-1.5GB filesize. You can use any number of bitrate calculators to find this. I have one written in perl if you want it (you input movie length in minutes, audio file size or kbps rate, and desired movie filesize, and it tells you the kbps to encode at).
Sujao
16th February 2005, 22:16
I think catting VOB files should work. The developer of vobcopy told me that. If you really want to rencode them with xvid and you still have the IFO files try my nrip script, it rencodes them to xvid and puts them in a matrsoak container. It in a thread in this forum.
nexx
17th February 2005, 14:13
If you have the IFO files, why not simply use mencoder -dvd-device /path/to/dvd dvd://1
(I think the files need to be in a VIDEO_TS subfolder)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.