Opened 4 years ago

Last modified 4 years ago

#2796 new defect

Problems dumping H264 stream from an Axis M1014 camera

Reported by: aseto Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: rtsp
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

I have a similar ffmpeg problem that described in ticket 1734 http://trac.ffmpeg.org/ticket/1734
I downloaded the latest 2.0 release, but the problem is still there. Then, Carl suggested to test 2e4ec89, same problem.
Below is my debug log from 2e4ec89. The release 2.0 debug log can be found here http://ffmpeg-users.933282.n4.nabble.com/Problems-dumping-H264-stream-from-an-Axis-camera-td4660059.html

BTW, I used rtsp://192.168.8.132/axis-media/media.amp in VLC, and I was able to view the video, so the camera is streaming.

Please let me know what you think.

ffmpeg version N-44796-g2e4ec89 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 17 2013 17:06:17 with gcc 4.3.2 (GCC)
  configuration: --arch=ppc --cpu=e500v2 --target-os=linux --samples=fate-suite/ --logfile=./config.log --disable-optimizations --disable-stripping --enable-cross-compile --cross-prefix=powerpc-none-linux-gnuspe- --sysroot=/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc --target-path=/opt/projects/pcs200/ltib/rootfs
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.101 / 54. 29.101
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
[rtsp @ 0x110fa570] SDP:
v=0
o=- 1365596415305563 1365596415305563 IN IP4 192.168.8.132
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:50000
a=framerate:30.0
a=transform:1,0,0;0,1,0;0,0,1
a=control:trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=4D4029; sprop-parameter-sets=Z01AKZpmAoAt2AtQEBAQXpw=,aO48gA==

[rtsp @ 0x110fa570] video codec set to: h264
[NULL @ 0x111026d0] RTP Packetization Mode: 1
[NULL @ 0x111026d0] RTP Profile IDC: 4d Profile IOP: 40 Level: 29
[NULL @ 0x111026d0] Extradata set to 0x11102bc0 (size: 29)!
[rtsp @ 0x110fa570] hello state=0
[h264 @ 0x111026d0] no picture
[rtsp @ 0x110fa570] All info found
rfps: 29.583333 0.015389
rfps: 29.666667 0.009941
rfps: 29.750000 0.005692
rfps: 29.833333 0.002643
rfps: 29.916667 0.000792
rfps: 30.000000 0.000140
    Last message repeated 1 times
rfps: 30.083333 0.000688
    Last message repeated 1 times
rfps: 30.166667 0.002434
    Last message repeated 1 times
rfps: 30.250000 0.005379
    Last message repeated 1 times
rfps: 30.333333 0.009523
    Last message repeated 1 times
rfps: 30.416667 0.014866
rfps: 59.583333 0.016071
rfps: 59.666667 0.010571
rfps: 59.750000 0.006270
rfps: 59.833333 0.003168
rfps: 59.916667 0.001266
rfps: 60.000000 0.000561
    Last message repeated 1 times
rfps: 29.970030 0.000237
rfps: 59.940060 0.000947
[rtsp @ 0x110fa570] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://root:root@192.168.8.132:554/axis-media/media.amp':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.034544, bitrate: N/A
    Stream #0:0, 23, 1/90000: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/180000, 30 tbr, 90k tbn, 180k tbc
[mpegts @ 0x111033f0] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/media/my.ts':
  Metadata:
    title           : Media Presentation
    encoder         : Lavf54.29.101
    Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/90000, q=2-31, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x111033f0] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input

Change History (2)

comment:1 Changed 4 years ago by cehoyos

  • Description modified (diff)
  • Keywords rtsp added

Please consider to either read my email or the ticket you mentioned again. Both request exactly one information that is missing afaict.
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/46689/focus=46697
Ticket #1734

comment:2 Changed 4 years ago by aseto

Here is the debug log with -fdebug ts option and disable-optimizations removed
Did I included everything this time?

ffmpeg -v 99 -fdebug ts -rtsp_transport tcp -i rtsp://root:root@192.168.8.132:554/axis-media/media.amp -vcodec copy -acodec an -t 10 /tmp/media/axis.ts

ffmpeg version N-44796-g2e4ec89 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 18 2013 13:43:38 with gcc 4.3.2 (GCC)
  configuration: --arch=ppc --cpu=e500v2 --target-os=linux --samples=fate-suite/ --logfile=./config.log --disable-stripping --enable-cross-compile --cross-prefix=powerpc-none-linux-gnuspe- --sysroot=/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/powerpc-none-linux-gnuspe/libc --target-path=/opt/projects/pcs200/ltib/rootfs
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.101 / 54. 29.101
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
[rtsp @ 0x10e575e0] SDP:
v=0
o=- 1374184543534092 1374184543534092 IN IP4 192.168.8.132
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:50000
a=framerate:30.0
a=transform:1,0,0;0,1,0;0,0,1
a=control:trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=4D4029; sprop-parameter-sets=Z01AKZpmAoAt2AtQEBAQXpw=,aO48gA==

[rtsp @ 0x10e575e0] video codec set to: h264
[NULL @ 0x10e5f700] RTP Packetization Mode: 1
[NULL @ 0x10e5f700] RTP Profile IDC: 4d Profile IOP: 40 Level: 29
[NULL @ 0x10e5f700] Extradata set to 0x10e5fbf0 (size: 29)!
[rtsp @ 0x10e575e0] hello state=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=0, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=0, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 133 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=0, dts=NOPTS, size=724, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=29549, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=NOPTS, dts=NOPTS, size=187839, duration=0, flags=1
[h264 @ 0x10e5f700] no picture 
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=29549, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 73 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=29549, dts=NOPTS, size=241, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=59557, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=29549, dts=NOPTS, size=104196, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=59557, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 72 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=59557, dts=NOPTS, size=1232, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=62612, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=59557, dts=29549, size=103801, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=62612, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 18 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=62612, dts=NOPTS, size=923, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=65608, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=62612, dts=59557, size=28648, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=65608, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 19 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=65608, dts=NOPTS, size=915, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=89570, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=65608, dts=62612, size=30026, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=89570, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 80 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=89570, dts=NOPTS, size=1030, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=92634, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=89570, dts=65608, size=114687, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=92634, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 22 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=92634, dts=NOPTS, size=584, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=95624, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=92634, dts=89570, size=33853, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=95624, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 17 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=95624, dts=NOPTS, size=1300, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=98630, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=95624, dts=92634, size=27639, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=98630, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 24 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=98630, dts=NOPTS, size=690, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=119577, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=98630, dts=95624, size=36731, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=119577, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 79 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=119577, dts=NOPTS, size=674, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=122645, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=119577, dts=98630, size=112945, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=122645, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 24 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=122645, dts=NOPTS, size=669, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=125625, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=122645, dts=119577, size=36710, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=125625, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 22 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=125625, dts=NOPTS, size=650, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=149541, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=125625, dts=122645, size=33919, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=149541, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 52 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=149541, dts=NOPTS, size=1088, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=152640, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=149541, dts=125625, size=75937, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=152640, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 23 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=152640, dts=NOPTS, size=42, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=155615, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=152640, dts=149541, size=34697, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=155615, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 19 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=155615, dts=NOPTS, size=1177, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=158625, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=155615, dts=152640, size=30288, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=158625, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 18 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=158625, dts=NOPTS, size=663, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=161630, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=158625, dts=155615, size=28388, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=161630, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 15 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=161630, dts=NOPTS, size=364, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=164622, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=161630, dts=158625, size=23931, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=164622, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 19 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=164622, dts=NOPTS, size=315, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=179562, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=164622, dts=161630, size=29426, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=179562, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 45 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=179562, dts=NOPTS, size=36, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=182611, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=179562, dts=164622, size=65183, duration=0, flags=1
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=182611, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 9 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=182611, dts=NOPTS, size=179, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=185641, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=188658, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=185641, dts=182611, size=19650, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=188658, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 11 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=188658, dts=NOPTS, size=28, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=191654, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=188658, dts=185641, size=18051, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=191654, dts=NOPTS, size=1386, duration=0, flags=0
    Last message repeated 14 times
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=191654, dts=NOPTS, size=1064, duration=0, flags=0
[rtsp @ 0x10e575e0] ff_read_packet stream=0, pts=194637, dts=NOPTS, size=1391, duration=0, flags=0
[rtsp @ 0x10e575e0] read_frame_internal stream=0, pts=191654, dts=188658, size=23245, duration=0, flags=0
[rtsp @ 0x10e575e0] All info found
rfps: 2.833333 0.018666
rfps: 2.916667 0.017550
rfps: 3.000000 0.019464
rfps: 27.000000 0.017678
rfps: 27.083333 0.015965
rfps: 27.166667 0.017282
rfps: 29.750000 0.013149
rfps: 29.833333 0.005773
    Last message repeated 1 times
rfps: 29.916667 0.001427
    Last message repeated 1 times
rfps: 30.000000 0.000112
    Last message repeated 1 times
rfps: 30.083333 0.001828
rfps: 30.166667 0.006574
rfps: 30.250000 0.014352
    Last message repeated 1 times
rfps: 32.916667 0.019358
rfps: 57.000000 0.016116
rfps: 57.083333 0.014603
rfps: 57.166667 0.016121
rfps: 59.750000 0.012883
rfps: 59.833333 0.005707
rfps: 59.916667 0.001562
    Last message repeated 1 times
rfps: 60.000000 0.000447
    Last message repeated 1 times
rfps: 29.970030 0.000236
    Last message repeated 1 times
rfps: 59.940060 0.000943
    Last message repeated 1 times
[rtsp @ 0x10e575e0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://root:root@192.168.8.132:554/axis-media/media.amp':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.328322, bitrate: N/A
    Stream #0:0, 23, 1/90000: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/180000, 30 tbr, 90k tbn, 180k tbc
[mpegts @ 0x11129750] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/media/axis.ts':
  Metadata:
    title           : Media Presentation
    encoder         : Lavf54.29.101
    Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/90000, q=2-31, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x11129750] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input
Last edited 4 years ago by cehoyos (previous) (diff)
Note: See TracTickets for help on using tickets.