[MEncoder-users] Converting H.264-AVC 1920 X 1080 to mpeg-2
L Lee
llee040 at sbcglobal.net
Tue Feb 10 07:23:12 CET 2009
On 2/9/09 12:03 AM, I <llee040 at sbcglobal.net> wrote:
> I have some h.264 mp4 source files that I would like to convert to mpeg-2 to
> create standard DVDs.
I now realize I can't get past "writing header" until I include encoding of
audio with something like "-oac lavc".
But my output is all gray with patches of splotchy video. Is there any way
for me to fix the problem that results in messages like these?
----
[h264 @ 0x181e800]reference picture missing during reorder:0.037 [4105:192]
[h264 @ 0x181e800]Missing reference picture
[h264 @ 0x181e800]illegal short term buffer state detected
----
Here are a couple of sample command lines I've tried after more research in
the list archives. And I've also tried just about every deinterlacing filter
I can find. If there's simply no way to decode these files with MEncoder,
please tell me.
mencoder avc.mp4 -vf scale=720:480,harddup -srate 48000 -af
lavcresample=48000 -ovc lavc -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18
:acodec=ac3:abitrate=192:aspect=16/9 -fps 30000/1001 -oac lavc -of mpeg
-mpegopts format=dvd -o Out.mpg -frames 7250
mencoder avc.mp4 -oac lavc -ovc lavc -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:vqmin=1:k
eyint=15:vstrict=0:aspect=16/9 -vf scale=720:480 -of mpeg -mpegopts
format=dvd:tsaf -o Out.mpg -fps 30000/1001
Here's some info about one of the files that appears to be common to all of
them:
Video Codec -> AVC
Audio Codec -> AAC LC
File Format -> MPEG-4
Total Stream BitRate -> 9 080 Kbps
Video Stream
Codec (Human Name) -> AVC
Codec (FourCC) -> avc1
Codec Profile -> Main at L4.0
Frame Width -> 1 920 pixels
Frame Height -> 1 080 pixels
Frame Rate -> 29.970 fps
Display Aspect Ratio -> 16/9
Scan Type -> Interlaced
Colorimetry -> 4:2:0
Codec Description -> AVC
Codec Settings (Summary) -> CABAC / 4 Ref Frames
QF (like Gordian Knot) -> 0.217
Codec Settings (CABAC) -> Yes
Video Stream BitRate -> 13.5 Mbps
Video Stream BitRate Mode -> VBR
Bit Depth -> 24 bits
Audio Stream
Codec -> AAC
Codec (FourCC) -> 40
Audio Stream BitRate -> 83.2 Kbps
Audio Stream BitRate (Nominal) -> 128 Kbps
Audio Stream BitRate Mode -> CBR
Number of Audio Channels -> 2
Audio Channel's Positions -> L R
Sampling Rate -> 48.0 KHz
Bit Depth -> 16 bits
Any help will be appreciated. Thanks.
Laine Lee
More information about the MEncoder-users
mailing list