[MPlayer-users] Why is it "Skipping frame!"s?
D Richard Felker III
dalias at aerifal.cx
Sat Feb 7 05:24:45 CET 2004
On Sat, Feb 07, 2004 at 04:51:05AM +0100, Amadeus wrote:
> > > for i in 1 2; do
> > > nice -19 mencoder -aid 128 -oac pcm -ovc lavc \
> > > -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=509:vpass=$i \
> > > -sws 2 -vf crop=672:316:24:130,scale=544:240 \
> > > -dvd-device some_image.bin dvd://1
> > > done
>
> Pretty neat loop trick there=)
>
> You can save a lot of time by dumping the first pass to /dev/null.
> This way you won't have to write the pass1 encoding to the harddisc, which is
> a slow process.
>
> Not tested, but this just might work:
>
>
> for i in 1 2; do
> for j in /dev/null filename.avi; do
> nice -19 mencoder -aid 128 -oac pcm -ovc lavc \
> -lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=509:vpass=$i \
> -sws 2 -vf crop=672:316:24:130,scale=544:240 \
> -dvd-device some_image.bin dvd://1
> -o $j
> done
> done
ROTFL, this will do both passes twice! :) Not quite what you had in
mind....hehe.
Anyway the hd access time won't really have much impact unless you're
encoding _very_ low resolution and low quality at high bitrates. I
usually like to be able to preview the first pass to make sure a/v
sync is ok and stuff before spending time on the second. If you really
want your method to work, though, you could change it to -o $i.avi and
make 1.avi a symlink to /dev/null... :) Or make a fancier script.
Rich
More information about the MPlayer-users
mailing list