Log in

View Full Version : Program advice


Razorblade2000
2nd May 2004, 09:16
I want to create myself a shell scrip that is capable of:
Ripping (vobcopy till now)
Encoding the vib files to MPEG 4 (mencoder)
Encoding 2 audio streams to MP3 (2*mencoder -> avidemux2)
Ripping the subtitles (nothing yet)
Multiplex 1 avi and 2 mp3 --> 1 final avi (avidemux2)

Now my questions:
1.Is there a quicker/more direct way than "2 times Mencoder to avi -> extract 2 MP3s via avidemux2 -> mux 2 mp3s and 1 video.avi to a final avi"?
2.Can mencoder handle 2 audio streams directly?
3.Any application that can do vob->srt?
4.Any application that can split avis via commandline?
5.Is there a better substitute for vobcopy that will support splitting vob files? (I still work on fat32...)
6.Is there an app that can mux an avi file with 2 audio streams via commandline?
thx in advance :D

edit:
just found out about the "dumpstream" param of mplayer... seems as if this could solve my problems 1 and 5... Now I only have to do some research on how to use this param

evade
2nd May 2004, 18:56
Actually the MPlayer devs advise against concatonating vobs through a pipe into mencoder.

These are the two advised methods to endode from a dvd on the hard drive.

either rip the whole dvd with dvdbackup and use mencoder like this:

mencoder -dvd-device /path/to/ripped/dvd dvd://1

or rip the dvd w mplayer to one big vob.

mplayer -dumpstream dvd://1

and

mencoder stream.dump

Razorblade2000
2nd May 2004, 19:50
thx...
I guess I'll kick windows and use reiserfs (so I can get >4gb files to work :D)

evade
2nd May 2004, 20:30
for multiple audio tracks in a matroska container you could do something like this.

mplayer -aid 128 --ao pcm -aofile english.wav -vo null -vc dummy stream.dump

mplayer -aid 129 --ao pcm -aofile french.wav -vo null -vc dummy stream.dump

oggenc -q3 -o english.ogg english.wav
oggenc -q3 -o french.ogg french.wav

Use these file sizes to determine your video bitrate and encode with the -aoc copy option. (you'll drop this audio in the muxing process.)

now mux your video.

mkvmerge -A movie.avi --language en english.ogg --language fr french.ogg

btw: Matroska also supports muxing of vobsubs directly

The man page for mkvmerge goes into how to produce srt subs on the command line using subtitle2pgm

Razorblade2000
2nd May 2004, 20:33
I'll have to stick with avi, as my standalone doesn't support matroska (yet :D)