[MEncoder-users] DVD compliant MPEG2 encoding

Lauri Myllari lauri at myllari.net
Mon Sep 12 23:16:00 CEST 2005


On Mon, Sep 12, 2005 at 10:38:28PM +0200, Nico Sabbi wrote:
> Lauri Myllari wrote:
> >% mencoder kingdom_of_heaven_m720p.mov -o video.m2v -noskip -ofps 24000/1001 \
> >-ovc lavc -of rawvideo -ffourcc MPG2 -vf expand=1280:720,scale=720:480 \
> >-lavcopts vcodec=mpeg2video:keyint=15:vbitrate=1800:vrc_buf_size=1835:vrc_maxrate=9000:aspect=16/9:me_range=256
> >% pulldown.exe video.m2v video_pulldown.m2v
> >% mplex -f 8 -o title1.vob video_pulldown.m2v audio.ac3
> > 
> mplex is unnecessary in this test

I included it only to make sure I'd have at least one working stream.
(Glad I did, I forgot me_range=256 and only noticed because all three
titles froze..)

I'm dropping it for this one though and doing only mencoder,
pulldown.exe, mencoder and dvdauthor.

> mencoder video_pulldown.m2v -of mpeg -mpegopts format=dvd:telecine:vaspect=16/9 -ovc copy -oac copy \
> -audiofile audio.ac3 -audio-demuxer 20 -rawaudio format=0x2000:bitrate=<BITRATE> -o title2.vob

This one causes a lot of errors - "ERROR: SCR: 3025416, APTS: 0,
DELTA=-0.033 secs, COMPENSATE=919, BR: 28000, lens: 2021/2021, frames:
0".
SCR always increases by 2175, COMPENSATE by 1, 1, 0, 1, 1, 0.. Others
are constant.


Now that Giacomo helped me figure out why I couldn't encode audio and
video at the same time (missing abitrate), I created title2.vob with
one command:

% mencoder kingdom_of_heaven_m720p.mov -o title2.vob -noskip -ofps 24000/1001 \
-ovc lavc -of mpeg -mpegopts format=dvd:telecine:vaspect=16/9 -vf expand=1280:720,scale=720:480 \
-lavcopts vcodec=mpeg2video:keyint=15:vbitrate=1800:vrc_buf_size=1835:vrc_maxrate=9000:aspect=16/9:me_range=256 \
-oac lavc -lavcopts acodec=ac3:abitrate=192

No errors from mencoder, but dvdauthor gives me the same problem
Giacomo reported (http://mplayerhq.hu/pipermail/mplayer-users/2005-September/055372.html)

> dvdauthor ... title2.vob
> 
> and test the resulting dvd with your standalone player

Playback gave the same results - audio ok until playback freezes and
some video skips before that.

I think the time display isn't smooth from 1 to 10 seconds and there's a
quick jump from 9sec back to 8 and then to 9 again. The counter freezes
at 10sec and then just displays "STILL". Playback continues for a while
and then freezes.

> even better: send me the output of
> $    mpeg2desc < title2.vob | grep -B 1 pts | less
> please.

I'll email you this and the dvdauthor output (not sure what the list
policy is on attachments).

Thank you for investigating.

--lauri




More information about the MEncoder-users mailing list