Encoding HDTV files -- mplayer OK, mencoder loses sync
I am having a trouble encoding HDTV files down to lower-resolution and bitrate MPEG2 files for playing on an A/V appliance (Hauppauge MediaMVP), although the issue is apparent even when playing through mplayer itself. Anyway, mplayer plays the files perfectly without any loss of AV sync, on both Unix and Windows machines. When using mencoder, however, it loses sync, even with a very simple command: mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4000 -ofps 30000/1001 -vf scale=640:360,expand=0:-120 -of mpeg $INFILE -o $OUTFILE I do get errors such as: ERROR: SCR: 33.011 VPTS: 32.999 DELTA=-0.012 secs I am using CVS mencoder from a few weeks ago, but I believe I had the issue with stock mencoder of recent ilk as well. These files are recorded using a pcHDTV 3000 card using the DVB drivers and using mythTV, and are saved as MPEG TS (transport streams). Any thoughts? I have also tried various -mpegopts as well, to no avail. I've tried -mc 0 and -noskip, although from reading other recent posts that appears to be a Bad Idea in general, and indeed it didn't help things.
On Mon, 11 Apr 2005 23:28:21 -0500 David Shay <davideshay@gmail.com> wrote:
mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4000 -ofps 30000/1001 -vf scale=640:360,expand=0:-120 -of mpeg $INFILE -o $OUTFILE
MP3 audio is not standard for an MPEG file, and won't likely play on anything other than MPlayer... Use MP2 audio, either with lavc or toolame.
David Shay wrote:
I am having a trouble encoding HDTV files down to lower-resolution and bitrate MPEG2 files for playing on an A/V appliance (Hauppauge MediaMVP), although the issue is apparent even when playing through mplayer itself.
Anyway, mplayer plays the files perfectly without any loss of AV sync, on both Unix and Windows machines. When using mencoder, however, it loses sync, even with a very simple command:
mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4000 -ofps 30000/1001 -vf scale=640:360,expand=0:-120 -of mpeg $INFILE -o $OUTFILE
vbr mp3 is not yet supported (I figured ony recently how to handle it), so add :cbr to -lameopts, please
participants (3)
-
David Shay -
Nico Sabbi -
RC