[Ffmpeg-devel] Sorenson H264 , ffmpeg CRASH , (BUG ? or not supported ? )

Antoine Tremblay hexa00
Fri Oct 14 20:19:09 CEST 2005


Hi all,

Is the h264 codec supposed to be able to decode Sorenson H264 files ?

Because I get like : (with lastest CVS)

./ffmpeg -i Cartoon~Sorenson\ AVC\ Pro\,\ 192kbps\,\ 30\,\ 320x240\,\
CBR~AAC\ LC\,\ 32kbps\,\ 24kHz\,\ 16\,\ Stereo\,\ 10s.mp4 test.yuv

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration:
built on Oct 13 2005 13:42:17, gcc: 3.3.5 (Debian 1:3.3.5-8ubuntu2)
Input #0, mov,mp4,m4a,3gp,3g2, from 'Cartoon~Sorenson AVC Pro, 192kbps, 30,
320x240, CBR~AAC LC, 32kbps, 24kHz, 16, Stereo, 10s.mp4':
Duration: 00:00:10.0, start: 0.000000, bitrate: 232 kb/s
Stream #0.0: Audio: mp4a / 0x6134706D, 24000 Hz, stereo
Stream #0.1, 600.00 fps: Video: h264, yuv420p, 320x240
File 'test.yuv' already exists. Overwrite ? [y/N] y
Output #0, rawvideo, to 'test.yuv':
Stream #0.0, nan fps: Video: rawvideo, yuv420p, 320x240, q=2-31, 200 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
[h264 @ 0x838be30]AVC: Consumed only 7 bytes instead of 2169492
[h264 @ 0x838be30]Unknown NAL code: 29
[h264 @ 0x838be30]Unknown NAL code: 0
[h264 @ 0x838be30]AVC: Consumed only 171 bytes instead of 23597
[h264 @ 0x838be30]AVC: Consumed only 204 bytes instead of 2182613
[h264 @ 0x838be30]AVC: Consumed only 160 bytes instead of 2169492
[h264 @ 0x838be30]Unknown NAL code: 13
[h264 @ 0x838be30]AVC: Consumed only 343 bytes instead of 2169492
[h264 @ 0x838be30]Unknown NAL code: 13
[h264 @ 0x838be30]AVC: Consumed only 9 bytes instead of 2169492
[h264 @ 0x838be30]Unknown NAL code: 21
[h264 @ 0x838be30]Unknown NAL code: 0
[h264 @ 0x838be30]AVC: Consumed only 156 bytes instead of 4612
[h264 @ 0x838be30]non existing PPS referenced
[h264 @ 0x838be30]decode_slice_header error
[h264 @ 0x838be30]AVC: Consumed only 207 bytes instead of 2182507
[h264 @ 0x838be30]Unknown NAL code: 18
[h264 @ 0x838be30]AVC: Consumed only 207 bytes instead of 2182555s
[h264 @ 0x838be30]Unknown NAL code: 11
[h264 @ 0x838be30]AVC: Consumed only 4 bytes instead of 2169493
[h264 @ 0x838be30]Unknown NAL code: 0
[h264 @ 0x838be30]Unknown NAL code: 22
[h264 @ 0x838be30]AVC: Consumed only 136 bytes instead of 14004147
[h264 @ 0x838be30]Unknown NAL code: 21
[h264 @ 0x838be30]AVC: Consumed only 12 bytes instead of 2169493
[h264 @ 0x838be30]Unknown NAL code: 19

Program received signal SIGSEGV, Segmentation fault.
decode_slice_header (h=0x843f7a0) at bswap.h:29
29 {
(gdb) bt
#0 decode_slice_header (h=0x843f7a0) at bswap.h:29
#1 0x08229b67 in decode_nal_units (h=0x843f7a0, buf=0x8433940 "",
buf_size=1225) at h264.c:7375
#2 0x08226ed6 in decode_frame (avctx=0x83f38b0, data=0xbfffe7f0,
data_size=0xbfffe6c8, buf=0x8433940 "", buf_size=1225) at h264.c:7533
#3 0x080b1de5 in avcodec_decode_video (avctx=0x83f38b0, picture=0x0,
got_picture_ptr=0xbfffe6c8, buf=0x0, buf_size=1225) at utils.c:905
#4 0x0805c1f1 in output_packet (ist=0x841ef50, ist_index=1,
ost_table=0x843cab0, nb_ostreams=1, pkt=0xbfffea00) at ffmpeg.c:1222
#5 0x08055fe3 in av_encode (output_files=0x83921c0, nb_output_files=1,
input_files=0x83920c0, nb_input_files=1, stream_maps=0x8392220,
nb_stream_maps=0)
at ffmpeg.c:2058
#6 0x08054c0a in main (argc=8998, argv=0x0) at ffmpeg.c:4257

If not is this a planned feature ?

Since there's many reserved and unspecified NAL codes used I guess there's
really something special about Sorenson...

But still unkown NAL code : 11 is weird since it's end of stream... or maybe
it's just a consequence of the other Unknown nal codes...

would anyone have any spec on Sorenson H264 or know where to find them ?

Or know a reliable way to identify Sorenson H264 files ?

here a link to the sample file :
http://www.openrapids.net/~hexa/Sorenson_AVC_PRO_192kpbs_30fps_320_240_CBR_AAC_LC_32kpbs_32khz_16_stereo_10s.mp4

Thanks a lot

Antoine




More information about the ffmpeg-devel mailing list