View Full Version : MEncoder+libavcodec MPEG4+ect.codec...
Yong
22nd December 2004, 13:55
Has anyone often encode video with mencoder mpeg4 codec?
it always crash for me if i add some option like, b-frame, min/max quant, ME options, ... and the most important one, 2pass encoding...:(
Sometime i can encode video successfully with the first pass, but it can't continue the second pass...(crash, with unknown reason...)
(sorry for my very broken english...)
Razorblade2000
22nd December 2004, 16:50
Linux or a Windows compile?
snacky
22nd December 2004, 18:39
It's not really possible to answer this question since you don't actually show us what went wrong.
Get a CVS build of mplayer (there have been several 2pass related changes since 1.0pre5). If the problem persists, post mplayer's output.
Yong
26th December 2004, 12:44
I'm sorry for my first post...
i'm using Win32 build, getting from here celtic druid website (http://celticdruid.no-ip.com/xvid/mplayer/) .:)
problems,
MEncoder CLI batch file:
F:
cd mplayer
Libavcodec DivX3.11 FIRST PASS
start /b /low /w mencoder %1 -nosound -noskip -o nul: -ovc lavc -lavcopts vcodec=msmpeg4:autoaspect:vpass=1 -passlogfile "LibavcodecDiv311.txt"
Libavcodec DivX3.11 SECOND PASS
start /b /low /w mencoder %1 -audio-preload 2.0 -noskip -oac copy -o "%userprofile%\desktop\%~n1.avi" -ovc lavc -lavcopts vcodec=msmpeg4:keyint=300:autoaspect:vhq:trell:mv0:mbd=2:qprd:cbp:vpass=2:vqmin=3:vqmax=16:vbitrate=1200 -passlogfile "LibavcodecDiv311.txt"
Libavcodec MS MPEG4 V2 FIRST PASS
start /b /low /w mencoder %1 -nosound -noskip -o nul: -ovc lavc -lavcopts vcodec=msmpeg4v2:autoaspect:vpass=1 -passlogfile "LibavcodecStats-v2.txt"
Libavcodec MS MPEG4 V2 SECOND PASS
start /b /low /w mencoder %1 -audio-preload 2.0 -noskip -oac copy -o "%userprofile%\desktop\%~n1.avi" -ovc lavc -lavcopts vcodec=msmpeg4:autoaspect:keyint=300:vhq:trell:mv0:mbd=2:qprd:cbp:vpass=2:vqmin=3:vqmax=16:vpass=2:vbitrate=1000 -passlogfile "LibavcodecStats-v2.txt"
i can't produce watchable video if using the m$mpeg4v2 and divx3.11 codec option above...
Libavcodec MPEG4 FIRST PASS
start /b /low /w mencoder %1 -nosound -noskip -o nul: -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vpass=1 -passlogfile "LibavcodecMPEG4.txt"
Libavcodec MPEG4 SECOND PASS
start /b /low /w mencoder %1 -audio-preload 2.0 -noskip -oac copy -o "%userprofile%\desktop\%~n1.avi" -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:keyint=300:vhq:trell:mv0:mbd=2:qprd:cbp:vpass=2:vqmin=3:vqmax=31:vpass=2:v4mv:vbitrate=1000 -passlogfile "LibavcodecMPEG4.txt"
IIRC mencoder will crash if i use b-frame with mpeg4 codec, or if i use, there will be no b-frame in the result video.
i don't know why mencoder(libavcodec divx3.11, m$mpeg4v2, h263+, mpeg4 and mpeg2) can't encode most of my MPEG1 video(most of them are demux and edit by freeware TMPGEnc).
XviD(inside mencoder) and x264 are pretty stable by now, but x264 will crash if the set the max quant too high(31-42)...(i wonder why the mencoder will crash instead give me a waring and stop processing).:confused:
I will posting more picture, option or output regarding the mencoder at next post.:)
Yong
27th December 2004, 13:05
Now i'm using the MPlayer 1.0pre6: "X-mas present" bulid:D , most of the problem i encounter already fixed with this build.
Thanks, mplayer team.
Back to the topic,
Still no b-frame in the video clip, if encode video with mencoder mpeg4 codec(Two-pass), info is retrived by mpeg4modifier,
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 224 (6.69%)
P-VOPs: 3122 (93.31%)
B-VOPs: 0 (0.00%)
S-VOPs: 0 (0.00%)
N-VOPs: 0 (0.00%)
only One-pass encoding have b-frames:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 120 (3.64%)
P-VOPs: 247 (7.50%)
B-VOPs: 2927 (88.86%)
S-VOPs: 0 (0.00%)
N-VOPs: 0 (0.00%)
Max consecutive B-VOPs: 8
1 consec: 0.00%
2 consec: 0.00%
3 consec: 0.00%
4 consec: 0.00%
5 consec: 0.00%
6 consec: 0.00%
7 consec: 0.27%
8 consec: 99.73%
Here's the part of mplayer output info, if decoding Divx3.11 video,
[PP] Using external postprocessing filter, max q = 6.
AutoQ: setting quality to 6.
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[ffmpeg] aspect_ratio: 0.0000000 6 99%
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
REQ: flags=0x417 req=0x0
VO: [directx] 640x480 => 640x480 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer@freenet.de>
<vo_directx><INFO>overlay with format YV12 created
*** [pp] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [vo] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [pp] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
[msmpeg4 @ 00A70630]dc overflow- block: 1 qscale: 5//
[msmpeg4 @ 00A70630]
error while decoding block: 24 x 12 (1)
[msmpeg4 @ 00A70630]Error at MB: 516
[msmpeg4 @ 00A70630]concealing 2147483647 errors
[msmpeg4 @ 00A70630]dc overflow- block: 3 qscale: 5//
[msmpeg4 @ 00A70630]
error while decoding block: 14 x 18 (3)
[msmpeg4 @ 00A70630]Error at MB: 752
[msmpeg4 @ 00A70630]concealing 2147483647 errors
[msmpeg4 @ 00A70630]dc overflow- block: 2 qscale: 5//
[msmpeg4 @ 00A70630]
error while decoding block: 14 x 18 (2)
[msmpeg4 @ 00A70630]Error at MB: 752
[msmpeg4 @ 00A70630]concealing 2147483647 errors
[msmpeg4 @ 00A70630]dc overflow- block: 2 qscale: 5//
[msmpeg4 @ 00A70630]
error while decoding block: 9 x 20 (2)
[msmpeg4 @ 00A70630]Error at MB: 829
[msmpeg4 @ 00A70630]concealing 2147483647 errors
[msmpeg4 @ 00A70630]dc overflow- block: 0 qscale: 5//
[msmpeg4 @ 00A70630]
error while decoding block: 9 x 22 (0)
[msmpeg4 @ 00A70630]Error at MB: 911
[msmpeg4 @ 00A70630]concealing 2147483647 errors.....
It's pretty obvious with the encoding option qprd,
if don't use this option with Divx3.11 and m$ mpeg4v2 encoding, the problem will gone.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.