LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mencoder - multiple vob to one avi? (https://www.linuxquestions.org/questions/linux-software-2/mencoder-multiple-vob-to-one-avi-920698/)

Jykke 12-27-2011 05:54 AM

mencoder - multiple vob to one avi?
 
I have following script to convert one vob to one avi with dual pass.
Code:

#!/bin/sh

corename=`echo $1 | sed 's/[.].*$//'`
targetname=`echo $corename.avi`

echo "1st Pass"
echo $1

mencoder $1 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o /dev/null
echo "2nd Pass"

echo $targetname
mencoder $1 -ovc xvid -oac mp3lame -xvidencopts pass=2:bitrate=1800 -o $targetname

It should work, however, now I have some serials where one take is in two VOBs - how do I need to modify my script so that I get the result I want?

I found something like cat *.vob | mencoder ... after a search but trying to adapt this into my script I get:
$ cat *.vob | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=850:vhq:vqmin=2:vqmax=10:keyint=240 -vop scale=640:480 -oac mp3lame -lameopts cbr:br=128:vol=2 -o film.avi
mencoder: Symbol `ff_codec_bmp_tags' has different size in shared object, consider re-linking
MEncoder SVN-r33713-4.6.1 (C) 2000-2011 MPlayer Team
-vop has been removed, use -vf instead.


Here I tried directly some other options in an example I found but using my xvid options the message is the same...

H_TeXMeX_H 12-27-2011 08:41 AM

Just make mencoder use stdin:

Code:

cat 1.vob 2.vob | script -
where script is your script.

So mencoder would run like:

Code:

mencoder - -ovc xvid -oac mp3lame -xvidencopts pass=1 -o /dev/null
The '-' means stdin.

Jykke 12-27-2011 11:19 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 4559304)
Just make mencoder use stdin:

The '-' means stdin.

Thanks that was missing - at least it started doing something now - let's see.


All times are GMT -5. The time now is 09:05 AM.