[Libav-user] Problems decoding h264 (Baseline, yuvj420p) ip camera stream

Alexander Wischnewski aw.wisch at googlemail.com
Thu Jun 6 13:25:01 CEST 2013


Hello,

i am having troubles to decode a h264 live stream provided by an HD ip
camera. I tried first with the recent git version of ffmpeg on android and
then later on my mac, the results always looks the same as below.

Maybe someone can give me a hint what i am doing wrong.


ffmpeg -v 9 -loglevel 99 -report -i "
http://192.168.1.166:86/livestream/12?action=play&media=video" output.mp4
ffmpeg started on 2013-06-06 at 19:20:34
Report written to "ffmpeg-20130606-192034.log"
ffmpeg version N-53869-gb26bcd0 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Jun  6 2013 17:59:32 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/usr/local
  libavutil      52. 35.100 / 52. 35.100
  libavcodec     55. 15.100 / 55. 15.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 75.101 /  3. 75.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-report' ... matched as option 'report' (generate a report)
with argument '1'.
Reading option '-i' ... matched as input file with argument '
http://192.168.1.166:86/livestream/12?action=play&media=video'.
Reading option 'output.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file
http://192.168.1.166:86/livestream/12?action=play&media=video.
Successfully parsed a group of options.
Opening an input file:
http://192.168.1.166:86/livestream/12?action=play&media=video.
[h264 @ 0x7f9f4b00f800] Format h264 probed with size=2048 and score=51
[h264 @ 0x7f9f4b00f800] File position before avformat_find_stream_info() is
0
[h264 @ 0x7f9f4b039a00] no picture
[h264 @ 0x7f9f4b039a00] left block unavailable for requested intra4x4 mode
-1 at 0 0
[h264 @ 0x7f9f4b039a00] error while decoding MB 0 0
[h264 @ 0x7f9f4b039a00] concealing 880 DC, 880 AC, 880 MV errors in I frame
[h264 @ 0x7f9f4b039a00] missing picture in access unit with size 17
    Last message repeated 1 times
[h264 @ 0x7f9f4b039a00] sps_id out of range
[h264 @ 0x7f9f4b039a00] chroma_format_idc 9 is illegal
[h264 @ 0x7f9f4b039a00] chroma_format_idc 5 is illegal
[h264 @ 0x7f9f4b039a00] missing picture in access unit with size 17
[h264 @ 0x7f9f4b039a00] illegal bit depth value (10, 8)
[h264 @ 0x7f9f4b039a00] sps_id out of range
[h264 @ 0x7f9f4b039a00] illegal bit depth value (11, 8)
[h264 @ 0x7f9f4b039a00] sps_id out of range
[h264 @ 0x7f9f4b039a00] pps_id out of range
[h264 @ 0x7f9f4b039a00] sps_id out of range
[h264 @ 0x7f9f4b039a00] illegal bit depth value (8, 14)
[h264 @ 0x7f9f4b039a00] pps_id out of range
[h264 @ 0x7f9f4b039a00] non-existing PPS referenced
[h264 @ 0x7f9f4b00f800] max_analyze_duration 5000000 reached at 5000000
microseconds
[h264 @ 0x7f9f4b00f800] File position after avformat_find_stream_info() is
133692
Input #0, h264, from '
http://192.168.1.166:86/livestream/12?action=play&media=video':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 152, 1/1200000: Video: h264 (Baseline), yuvj420p, 640x352,
1/60, 30 fps, 30 tbr, 1200k tbn, 60 tbc
Successfully opened the file.
Parsing a group of options: output file output.mp4.
Successfully parsed a group of options.
Opening an output file: output.mp4.
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'video_size' to
value '640x352'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'pix_fmt' to value
'12'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'time_base' to
value '1/1200000'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'pixel_aspect' to
value '0/1'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] Setting 'frame_rate' to
value '60/2'
[graph 0 input from stream 0:0 @ 0x7f9f4b8003a0] w:640 h:352
pixfmt:yuvj420p tb:1/1200000 fr:30/1 sar:0/1 sws_param:flags=2
[format @ 0x7f9f4b800a40] compat: called with args=[yuv420p]
[format @ 0x7f9f4b800a40] Setting 'pix_fmts' to value 'yuv420p'
[auto-inserted scaler 0 @ 0x7f9f4ac10d00] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x7f9f4ac10d00] w:iw h:ih flags:'0x4' interl:0
[format @ 0x7f9f4b800a40] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x7f9f4ac10e00] query_formats: 4 queried, 3 merged, 1
already done, 0 delayed
[auto-inserted scaler 0 @ 0x7f9f4ac10d00] w:640 h:352 fmt:yuvj420p sar:0/1
-> w:640 h:352 fmt:yuv420p sar:0/1 flags:0x4
[mpeg4 @ 0x7f9f4b036600] intra_quant_bias = 0 inter_quant_bias = -64
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf55.8.102
    Stream #0:0, 0, 1/15360: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p,
640x352, 1/30, q=2-31, 200 kb/s, 15360 tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg4)
Press [q] to stop, [?] for help
[h264 @ 0x7f9f4b038e00] no picture
[h264 @ 0x7f9f4b038e00] left block unavailable for requested intra4x4 mode
-1 at 0 0
[h264 @ 0x7f9f4b038e00] error while decoding MB 0 0
[h264 @ 0x7f9f4b038e00] concealing 880 DC, 880 AC, 880 MV errors in I frame
[h264 @ 0x7f9f4b023400] out of range intra chroma pred mode at 37 0
[h264 @ 0x7f9f4b023400] error while decoding MB 37 0
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023400] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023a00] cbp too large (111) at 32 0
[h264 @ 0x7f9f4b023a00] error while decoding MB 32 0
[h264 @ 0x7f9f4b023a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023a00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b025a00] P sub_mb_type 4 out of range at 10 4
[h264 @ 0x7f9f4b025a00] error while decoding MB 10 4
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 759 DC, 759 AC, 759 MV errors in P frame
[h264 @ 0x7f9f4b026000] mb_type 28 in P slice too large at 19 3
[h264 @ 0x7f9f4b026000] error while decoding MB 19 3
[h264 @ 0x7f9f4b026000] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b026000] concealing 790 DC, 790 AC, 790 MV errors in P frame
[h264 @ 0x7f9f4b038e00] top block unavailable for requested intra mode at
36 0
[h264 @ 0x7f9f4b038e00] error while decoding MB 36 0
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023400] slice type too large (32) at 39 21
[h264 @ 0x7f9f4b023400] decode_slice_header error
[h264 @ 0x7f9f4b023400] no frame!
[h264 @ 0x7f9f4b023a00] mb_type 28 in P slice too large at 20 2
[h264 @ 0x7f9f4b023a00] error while decoding MB 20 2
[h264 @ 0x7f9f4b023a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023a00] concealing 829 DC, 829 AC, 829 MV errors in P frame
[h264 @ 0x7f9f4b025a00] cbp too large (88) at 22 0
[h264 @ 0x7f9f4b025a00] error while decoding MB 22 0
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b026000] mb_type 28 in P slice too large at 12 1
[h264 @ 0x7f9f4b026000] error while decoding MB 12 1
[h264 @ 0x7f9f4b026000] Unknown NAL code: 17 (94 bits)
[h264 @ 0x7f9f4b026000] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b026000] concealing 877 DC, 877 AC, 877 MV errors in P frame
Error while decoding stream #0:0: Operation not permitted
[h264 @ 0x7f9f4b038e00] cbp too large (247) at 32 0
[h264 @ 0x7f9f4b038e00] error while decoding MB 32 0
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023400] mb_type 29 in P slice too large at 19 4
[h264 @ 0x7f9f4b023400] error while decoding MB 19 4
[h264 @ 0x7f9f4b023400] Unknown NAL code: 24 (94 bits)
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023400] concealing 750 DC, 750 AC, 750 MV errors in P frame
[h264 @ 0x7f9f4b023a00] P sub_mb_type 4 out of range at 14 1
[h264 @ 0x7f9f4b023a00] error while decoding MB 14 1
[h264 @ 0x7f9f4b023a00] Unknown NAL code: 17 (94 bits)
[h264 @ 0x7f9f4b023a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023a00] concealing 875 DC, 875 AC, 875 MV errors in P frame
[h264 @ 0x7f9f4b025a00] P sub_mb_type 11 out of range at 5 3
[h264 @ 0x7f9f4b025a00] error while decoding MB 5 3
[h264 @ 0x7f9f4b025a00] Unknown NAL code: 23 (94 bits)
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 804 DC, 804 AC, 804 MV errors in P frame
[h264 @ 0x7f9f4b026000] out of range intra chroma pred mode at 34 6
[h264 @ 0x7f9f4b026000] error while decoding MB 34 6
[h264 @ 0x7f9f4b026000] Unknown NAL code: 31 (94 bits)
[h264 @ 0x7f9f4b026000] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b026000] concealing 655 DC, 655 AC, 655 MV errors in P frame
[h264 @ 0x7f9f4b038e00] mb_type 30 in P slice too large at 29 11
[h264 @ 0x7f9f4b038e00] error while decoding MB 29 11
[h264 @ 0x7f9f4b038e00] Unknown NAL code: 28 (94 bits)
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 460 DC, 460 AC, 460 MV errors in P frame
[h264 @ 0x7f9f4b023400] out of range intra chroma pred mode at 28 2
[h264 @ 0x7f9f4b023400] error while decoding MB 28 2
[h264 @ 0x7f9f4b023400] Unknown NAL code: 26 (94 bits)
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023400] concealing 821 DC, 821 AC, 821 MV errors in P frame
[h264 @ 0x7f9f4b023a00] top block unavailable for requested intra mode at
18 0
[h264 @ 0x7f9f4b023a00] error while decoding MB 18 0
[h264 @ 0x7f9f4b023a00] Unknown NAL code: 23 (94 bits)
[h264 @ 0x7f9f4b023a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023a00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b025a00] P sub_mb_type 6 out of range at 5 7
[h264 @ 0x7f9f4b025a00] error while decoding MB 5 7
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 644 DC, 644 AC, 644 MV errors in P frame
[h264 @ 0x7f9f4b026000] slice type too large (32) at 38 21
[h264 @ 0x7f9f4b026000] decode_slice_header error
[h264 @ 0x7f9f4b026000] no frame!
[h264 @ 0x7f9f4b038e00] P sub_mb_type 9 out of range at 39 4
[h264 @ 0x7f9f4b038e00] error while decoding MB 39 4
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 730 DC, 730 AC, 730 MV errors in P frame
[h264 @ 0x7f9f4b023400] P sub_mb_type 4 out of range at 6 0
[h264 @ 0x7f9f4b023400] error while decoding MB 6 0
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023400] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023a00] left block unavailable for requested intra4x4 mode
-1 at 0 0
[h264 @ 0x7f9f4b023a00] error while decoding MB 0 0
[h264 @ 0x7f9f4b023a00] concealing 880 DC, 880 AC, 880 MV errors in I frame
Error while decoding stream #0:0: Operation not permitted
[h264 @ 0x7f9f4b025a00] cbp too large (110) at 4 0
[h264 @ 0x7f9f4b025a00] error while decoding MB 4 0
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b026000] top block unavailable for requested intra mode at
12 0
[h264 @ 0x7f9f4b026000] error while decoding MB 12 0
[h264 @ 0x7f9f4b026000] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b026000] concealing 880 DC, 880 AC, 880 MV errors in P frame
*** 1 dup!
[h264 @ 0x7f9f4b038e00] P sub_mb_type 5 out of range at 19 5
[h264 @ 0x7f9f4b038e00] error while decoding MB 19 5
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 710 DC, 710 AC, 710 MV errors in P frame
[h264 @ 0x7f9f4b023400] top block unavailable for requested intra mode at
13 0
[h264 @ 0x7f9f4b023400] error while decoding MB 13 0
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023400] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023a00] top block unavailable for requested intra mode at
32 0
[h264 @ 0x7f9f4b023a00] error while decoding MB 32 0
[h264 @ 0x7f9f4b023a00] Unknown NAL code: 25 (94 bits)
[h264 @ 0x7f9f4b023a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b023a00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b025a00] mb_type 27 in P slice too large at 34 4
[h264 @ 0x7f9f4b025a00] error while decoding MB 34 4
[h264 @ 0x7f9f4b025a00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b025a00] concealing 735 DC, 735 AC, 735 MV errors in P frame
[h264 @ 0x7f9f4b026000] P sub_mb_type 4 out of range at 12 3
[h264 @ 0x7f9f4b026000] error while decoding MB 12 3
[h264 @ 0x7f9f4b026000] Unknown NAL code: 31 (94 bits)
[h264 @ 0x7f9f4b026000] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b026000] concealing 797 DC, 797 AC, 797 MV errors in P frame
[h264 @ 0x7f9f4b038e00] mb_type 28 in P slice too large at 13 0
[h264 @ 0x7f9f4b038e00] error while decoding MB 13 0
[h264 @ 0x7f9f4b038e00] Cannot use next picture in error concealment
[h264 @ 0x7f9f4b038e00] concealing 880 DC, 880 AC, 880 MV errors in P frame
[h264 @ 0x7f9f4b023400] sps_id out of range
[h264 @ 0x7f9f4b023400] P sub_mb_type 5 out of range at 16 3
[h264 @ 0x7f9f4b023400] error while decoding MB 16 3
[h264 @ 0x7f9f4b023400] Cannot use next picture in error concealment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130606/c4cb284a/attachment.html>


More information about the Libav-user mailing list