[MEncoder-users] Mencoder finishes early on DVD to Divx encoding

Pete Davis pete at petedavis.net
Sun Jun 19 18:41:56 CEST 2005


I'm running mencoder 1.0pre6-3.4.2

 

The DVD drive in my linux box doesn't work, so I decrypted and copied the
VOBs from a windows box.

 

I have the following script that I run. I pass in a chapter # and it creates
the .avi file for me.

 

#!/bin/bash

 

if [ $# != 1 ]; then

  echo "Please provide a chapter"

  exit 1

fi

 

mencoder -dvd-device ./ dvd://$1 -ovc frameno -o frameno.avi -oac mp3lame
-lameopts cbr:br=128

mencoder -dvd-device ./ dvd://$1 -oac copy -o /dev/null -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=900:vhq:vpass=1:vqmin=1:vqmax=31 -vop scale=512:288 -

mencoder -dvd-device ./ dvd://$1 -oac copy -o movie.avi -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=900:vhq:vpass=2:vqmin=1:vqmax=31 -vop scale=512:288 -

 

 

The problem is that more often than not, it will stop part way through, any
of the 3 passes and just wrap up as if everything was fine. For example,
it'll be at say 20% and then just stop.

 

If I clean out the temp files and output files and run it again, it may go
further, it may not go as far. Sometimes it will do a complete encoding
(maybe 1 out of 4 or 5 attempts).

 

Very infrequently, I'll get some kind of error, but most of the time,
there's just no error.

 

I have a similar script that I use for re-encoding existing AVI files (I
play my stuff through a D-Link DSM 320 and it's picky about some videos, so
I re-encode them in a compatible format).

 

That script is as follows:

 

#!/bin/bash

 

if [ $# != 1 ]; then

  echo "Please provide a filename"

  exit 1

fi

 

mencoder $1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts cbr:br=128

mencoder $1 -nosound -oac copy -o /dev/null -ovc lavc -lavcopts
vcodec=mpeg4:vbi

trate=900:vhq:vpass=1:vqmin=1:vqmax=31

mencoder $1 -nosound -oac copy -o newfile.avi -ovc lavc -lavcopts
vcodec=mpeg4:v

bitrate=900:vhq:vpass=2:vqmin=1:vqmax=31

 

The second script runs about 90% of the time all the way through, but
sometimes (infrequently) has the same problem as the first.

 

As you can see, they're very similar. The only real difference is the input.

 

Anyone know what could be causing the problem? Should I just upgrade to
1.0pre7? Or is the problem somewhere else?

 

As some additional information, the second script I will often run in 2
separate sessions simultaneously (same login, but different sessions) on two
different files in two different directories. I find that if I run the
second script and the first script at the same time, the first script is
more likely to fail, so I don't know if maybe having two instances of it
running at the same time could be a problem. But that may just be
coincidental.

 

Thanks for any help.

 

Pete

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20050619/481c14ce/attachment.htm>


More information about the MEncoder-users mailing list