[FFmpeg-trac] #6357(avformat:open): An error in decoding RTMP (h264&aac) live streaming for a long time
FFmpeg
trac at avcodec.org
Sun Apr 30 18:24:48 EEST 2017
#6357: An error in decoding RTMP (h264&aac) live streaming for a long time
------------------------------------+------------------------------------
Reporter: xiaoxyzero | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: rtmp | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by xiaoxyzero):
Replying to [comment:1 cehoyos]: Thanks very much. That saves me a lot of
time to reproduce this issue.
> Maybe an issue in `rtmp_packet_read_one_chunk()`.
> {{{
> $ ffmpeg -ss 16750 -i rtmp://live.hkstv.hk.lxdns.com/live/hks -f null -
> ffmpeg version N-85727-gd61f93b Copyright (c) 2000-2017 the FFmpeg
developers
> built with gcc 6.3.0 (GCC)
> configuration: --enable-gpl
> libavutil 55. 61.100 / 55. 61.100
> libavcodec 57. 93.100 / 57. 93.100
> libavformat 57. 72.101 / 57. 72.101
> libavdevice 57. 7.100 / 57. 7.100
> libavfilter 6. 88.100 / 6. 88.100
> libswscale 4. 7.101 / 4. 7.101
> libswresample 2. 8.100 / 2. 8.100
> libpostproc 54. 6.100 / 54. 6.100
> Input #0, flv, from 'rtmp://live.hkstv.hk.lxdns.com/live/hks':
> Metadata:
> author : PowerSmart
> copyright :
> description :
> datarate : 500
> livetime : 1489071037
> timeshift : 0
> Duration: 01:00:00.00, start: 0.000000, bitrate: N/A
> Stream #0:0: Audio: aac (LC), 32000 Hz, stereo, fltp
> Stream #0:1: Video: h264 (Constrained Baseline),
yuv420p(progressive), 640x480, 25 fps, 15 tbr, 1k tbn, 30 tbc
> Stream mapping:
> Stream #0:1 -> #0:0 (h264 (native) -> wrapped_avframe (native))
> Stream #0:0 -> #0:1 (aac (native) -> pcm_s16le (native))
> Press [q] to stop, [?] for help
> [flv @ 0x40083e0] New subtitle stream 0:2 at pos:213277 and DTS:33497.3s
> Output #0, null, to 'pipe:':
> Metadata:
> author : PowerSmart
> copyright :
> description :
> datarate : 500
> livetime : 1489071037
> timeshift : 0
> encoder : Lavf57.72.101
> Stream #0:0: Video: wrapped_avframe, yuv420p(progressive), 640x480,
q=2-31, 200 kb/s, 15 fps, 15 tbn, 15 tbc
> Metadata:
> encoder : Lavc57.93.100 wrapped_avframe
> Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
> Metadata:
> encoder : Lavc57.93.100 pcm_s16le
> [tcp @ 0x4008c60] RTMP packet size mismatch 2844 != 10564501=N/A
speed=1.06x
> [tcp @ 0x4008c60] RTMP packet size mismatch 11132902 != 9917494
> [tcp @ 0x4008c60] RTMP packet size mismatch 12385551 != 15931647
> [tcp @ 0x4008c60] RTMP packet size mismatch 5514591 != 12710304A
speed=0.997x
> [tcp @ 0x4008c60] RTMP packet size mismatch 15080379 != 36684
> [tcp @ 0x4008c60] RTMP packet size mismatch 16251558 != 14306237
> [flv @ 0x40083e0] Packet mismatch -1139395889 11 2059179
> [tcp @ 0x4008c60] RTMP packet size mismatch 8190494 != 3912756
> [tcp @ 0x4008c60] RTMP packet size mismatch 16324791 != 9749786
> [tcp @ 0x4008c60] RTMP packet size mismatch 4919497 != 14226931
> [tcp @ 0x4008c60] RTMP packet size mismatch 8219603 != 4360900
> [flv @ 0x40083e0] Packet mismatch -1137942194 11 2059212rate=N/A
speed=0.957x
> [tcp @ 0x4008c60] RTMP packet size mismatch 2621404 != 4509089
> [tcp @ 0x4008c60] RTMP packet size mismatch 5543389 != 902670
> frame= 433 fps= 14 q=-0.0 Lsize=N/A time=00:00:28.35 bitrate=N/A
speed=0.902x
> video:210kB audio:3540kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
> }}}
> The seek has no effect except allowing to easily reproduce the issue.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6357#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list