[x264-devel] bug report: MB-tree frametype x doesn't match actual frametype y.
M. S.
nichts.als at gmx.net
Thu Jun 8 08:40:51 CEST 2017
Hi, this is a bug report for x264. If this is the wrong place to post
it, then please ignore it and point me to the right location. Thanks!
When I do 2-pass DVD recodes with x264, I often encounter this error:
x264 aborts the second pass at the beginning and reports that "MB-tree
frametype (whatever number) doesn't match actual frametype (whatever
number)". You find more info on a recent case below, together with the
AviSynth and MS-DOS (actually Win XP SP3) scripts used.
Obviously the two passes produce different frametypes at locations where
they should be identical. I have no idea why. But I found a similar bug
report for x265, which led me to this link:
https://patches.videolan.org/patch/14453/
Maybe this is the or a related source of the problem, but as I said,
this is beyond my knowledge. I tried several versions of x264 (r2345,
r2579, r2762) but it seems to depend on the source video.
By the way, I was unable to try r2833, because it terminates at the
beginning of pass 1 (when the "status line" comes up: "Encoding frame x
of y...") without leaving any error message. Maybe this version is no
longer compatible with old software like Win XP SP3 & Co.?
Best regards, Mike
Here you have
- the error message:
--------------------------------------------------
C:\_ia\v\dvds\start "dummywindow" /b /low /wait
C:\Portable\x264\2762\x264.exe --bitrate 879 --preset slower --profile
high --tune film --bluray-compat --vbv-maxrate 15000 --vbv-bufsize 15000
--level 3.1 --keyint 50 --fake-interlaced --pic-struct --colorprim
"bt470bg" --transfer "bt470bg" --colormatrix "bt470bg" --fps 25.0 --sar
16:11 --pass 2 -o C:\_ia\v\dvds\dvds.264 C:\_ia\v\dvds\dvds.avs
avs [ifo]: 720x428p 16:11 @ 25/1 fps (cfr)
x264 [info]: using SAR=16/11
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ
SlowAtom SlowPshufb
x264 [info]: profile High, level 3.1
x264 [error]: MB-tree frametype 237 doesn't match actual frametype 0.
x264 [error]: x264_encoder_encode failed
aborted at input frame 2, output frame 0
--------------------------------------------------
- the DOS script used:
--------------------------------------------------
set docdir="C:\_ia\v\dvds"
set h264dir=C:\Portable\x264\2762
set name=dvds
set bitrate=--bitrate 879
rem first pass
start "dummywindow" /b /low /wait %h264dir%\x264.exe %bitrate% --preset
slower --profile high --tune film --bluray-compat --vbv-maxrate 15000
--vbv-bufsize 15000 --level 3.1 --keyint 50 --fake-interlaced
--pic-struct --colorprim "bt470bg" --transfer "bt470bg" --colormatrix
"bt470bg" --fps 25.0 --sar 16:11 --pass 1 -o %docdir%\%name%.264
%docdir%\%name%.avs
rem second pass
start "dummywindow" /b /low /wait %h264dir%\x264.exe %bitrate% --preset
slower --profile high --tune film --bluray-compat --vbv-maxrate 15000
--vbv-bufsize 15000 --level 3.1 --keyint 50 --fake-interlaced
--pic-struct --colorprim "bt470bg" --transfer "bt470bg" --colormatrix
"bt470bg" --fps 25.0 --sar 16:11 --pass 2 -o %docdir%\%name%.264
%docdir%\%name%.avs
pause
--------------------------------------------------
- the Avisynth script used:
--------------------------------------------------
vifile1="C:\_ia\v\dvds\dvdin.d2v"
LoadPlugin("C:\Programs\AviSynth\plugins\NicAudio.dll")
a1=NicAC3Source("C:\_ia\v\dvds\dvdin T82 3_2ch 384Kbps DELAY 0ms.ac3",
2, 0)
LoadPlugin("C:\Programs\AviSynth\plugins\DGDecode.dll")
LoadPlugin("C:\Programs\AviSynth\plugins\ColorMatrix.dll")
v1=DGDecode_mpeg2source(vifile1,info=3).ColorMatrix(hints=true)
AudioDub(v1,a1).trim(1550,154750).normalize(0.98).crop(0,74,-0,-74).fadeIn(25).fadeOut(25).limiter()
loadplugin("C:\Programs\AviSynth\plugins\SoundOut.dll")
soundout(output="wav", filename="C:\_ia\v\dvds\dvdout.wav")
--------------------------------------------------
More information about the x264-devel
mailing list