[FFmpeg-user] Problems decoding h264 from Blu-ray

wtfux wtfux.dev at googlemail.com
Wed Sep 5 17:54:16 CEST 2012


Hello,
I have trouble decoding the H.264/AVC stream of an unprotected Blu-ray
(m2ts container) with ffmpeg (on Windows). I tried the zeranoe's
Windows build and my own. Both fail to decode the stream *at different
positions* with errors like these:

cabac decode of qscale diff failed at 62 61
[h264 @ 0000000003985840] error while decoding MB 62 61, bytestream (59232)
[h264 @ 0000000003985840] concealing 827 DC, 827 AC, 827 MV errors in I frame

[h264 @ 0000000003985840] left block unavailable for requested intra
mode at 0 60
[h264 @ 0000000003985840] error while decoding MB 0 60, bytestream (78993)
[h264 @ 0000000003985840] concealing 1009 DC, 1009 AC, 1009 MV errors in I frame

top block unavailable for requested intra mode at 97 16
[h264 @ 0000000003985840] error while decoding MB 97 16, bytestream (202101)
[h264 @ 0000000003985840] concealing 2112 DC, 2112 AC, 2112 MV errors in I frame

These errors result in blocky image errors in the output file.

Command line: ffmpeg.exe -i 00000.m2ts -report -loglevel verbose
-codec:v libx264 -preset:v veryslow -profile:v high10 -tune:v
animation -level:v 5.1 -refs:v 16 -subq:v 11 -me_range:v 24 -bf:v 16
-trellis:v 2 -x264opts
"rc_lookahead=160:psy-rd=0.4,0.15:aq-mode=2:aq-strength=0.6"
-chromaoffset:v -3 -crf:v 15 -codec:a libfdk_aac -b:a 200k -sn
-threads 4 asa-10.mkv

m2ts info: http://pastie.org/4668776

Full ffmpeg log (canceled after errors occurred): Warning: large (3MB)
https://dl.dropbox.com/u/17527004/ffmpeg-20120905-152133.log

The video plays fine in VLC player and MPC (using codec: ffdshow
libavcodec h264) and the decoding errors appear at different positions
so I think the input video should be fine.

Does anyone have an idea why the decoding fails and how to fix it?

Thanks!


More information about the ffmpeg-user mailing list