Opened 13 years ago
Closed 13 years ago
#1017 closed defect (fixed)
Hang after "circular_buffer: OVERRUN" is thrown while reading from UDP
Reported by: | Vadim | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | udp |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Symptoms:
When reading from UDP, ffmpeg suddenly throws "circular_buffer: OVERRUN" and hangs after a few more seconds.
Some irrelevant lines where removed from the listing for shortness.
test@sitisn-desktop:~/ffmpeg-0.10$ ./ffmpeg -re -y -i udp://239.100.11.105:1234 -filter yadif -c:v libx264 -c:a libfaac -f mp4 test1.mp4 ffmpeg version N-38122-gf16c950 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 22 2012 23:54:23 with gcc 4.4.3 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --disable-stripping libavutil 51. 40.100 / 51. 40.100 libavcodec 54. 4.100 / 54. 4.100 libavformat 54. 1.100 / 54. 1.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.101 / 2. 62.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 7.100 / 0. 7.100 libpostproc 52. 0.100 / 52. 0.100 [mpegts @ 0xad9baa0] Unable to seek back to the start [h264 @ 0xadacf20] non-existing SPS 1 referenced in buffering period [h264 @ 0xadacf20] non-existing PPS referenced [h264 @ 0xadacf20] non-existing SPS 1 referenced in buffering period [h264 @ 0xadacf20] non-existing PPS 0 referenced [h264 @ 0xadacf20] decode_slice_header error [h264 @ 0xadacf20] no frame! [h264 @ 0xadacf20] non-existing SPS 1 referenced in buffering period [h264 @ 0xadacf20] non-existing PPS referenced [h264 @ 0xadacf20] non-existing SPS 1 referenced in buffering period [h264 @ 0xadacf20] non-existing PPS 0 referenced [h264 @ 0xadacf20] decode_slice_header error [h264 @ 0xadacf20] no frame! [h264 @ 0xadacf20] mmco: unref short failure Last message repeated 3 times [h264 @ 0xadacf20] Increasing reorder buffer to 1 [h264 @ 0xadacf20] Increasing reorder buffer to 2 [h264 @ 0xadacf20] mmco: unref short failure Last message repeated 1 times [mpegts @ 0xad9baa0] max_analyze_duration 5000000 reached at 5034667 [mpegts @ 0xad9baa0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from 'udp://239.100.11.105:1234': Duration: N/A, start: 9885.477733, bitrate: 99 kb/s Program 2 Metadata: service_name : Prime service_provider: Radiocom Stream #0:0[0xcb]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 12:11 DAR 15:11], 55.60 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0xcc](rum): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 99 kb/s [buffer @ 0xb188d80] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param: [yadif @ 0xadc4300] mode:0 parity:-1 auto_enable:0 [libx264 @ 0xae6c2e0] using SAR=12/11 [libx264 @ 0xae6c2e0] using cpu capabilities: MMX2 SSE2 Cache64 [libx264 @ 0xae6c2e0] profile High, level 3.1 [libx264 @ 0xae6c2e0] 264 - core 120 r2164 da19765 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test1.mp4': Metadata: encoder : Lavf54.1.100 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x576 [SAR 12:11 DAR 15:11], q=-1--1, 50 tbn, 50 tbc Stream #0:1(rum): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libfaac) Press [q] to stop, [?] for help [h264 @ 0xb933f60] Missing reference picture [h264 @ 0xb933f60] decode_slice_header error [h264 @ 0xb978b00] Missing reference picture [h264 @ 0xb978b00] decode_slice_header error [h264 @ 0xb9cfc60] Missing reference picture [h264 @ 0xb9cfc60] decode_slice_header error [h264 @ 0xba26dc0] Missing reference picture [h264 @ 0xba26dc0] decode_slice_header error [h264 @ 0xba7df20] reference picture missing during reorder Last message repeated 1 times [h264 @ 0xba7df20] Missing reference picture [h264 @ 0xba7df20] decode_slice_header error [h264 @ 0xb933f60] reference picture missing during reorder [h264 @ 0xb933f60] Missing reference picture [h264 @ 0xb9cfc60] mmco: unref short failure Last message repeated 1 times [h264 @ 0xba26dc0] mmco: unref short failure Last message repeated 1 times frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 0 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 87 fps= 29 q=34.0 size= 32kB time=00:00:00.70 bitrate= 370.4kbits/ frame= 107 fps= 31 q=34.0 size= 37kB time=00:00:01.00 bitrate= 301.5kbits/ frame= 125 fps= 31 q=34.0 size= 42kB time=00:00:01.30 bitrate= 267.3kbits/ // 26 lines removed for shortness frame= 415 fps= 22 q=31.0 size= 635kB time=00:00:07.26 bitrate= 716.6kbits/ frame= 425 fps= 22 q=31.0 size= 661kB time=00:00:07.46 bitrate= 725.5kbits/ frame= 437 fps= 22 q=31.0 size= 681kB time=00:00:07.70 bitrate= 724.4kbits/ frame= 447 fps= 22 q=31.0 size= 698kB time=00:00:07.90 bitrate= 723.6kbits/ frame= 457 fps= 22 q=31.0 size= 735kB time=00:00:08.10 bitrate= 742.9kbits/ frame= 469 fps= 22 q=31.0 size= 757kB time=00:00:08.34 bitrate= 743.4kbits/ frame= 477 fps= 22 q=31.0 size= 770kB time=00:00:08.50 bitrate= 742.5kbits/ frame= 487 fps= 22 q=31.0 size= 789kB time=00:00:08.70 bitrate= 742.8kbits/ frame= 499 fps= 22 q=31.0 size= 814kB time=00:00:08.94 bitrate= 745.6kbits/ frame= 511 fps= 22 q=31.0 size= 833kB time=00:00:09.15 bitrate= 745.8kbits/ frame= 519 fps= 22 q=31.0 size= 853kB time=00:00:09.32 bitrate= 749.8kbits/ circular_buffer: OVERRUN frame= 529 fps= 22 q=31.0 size= 871kB time=00:00:09.49 bitrate= 751.2kbits/ frame= 539 fps= 22 q=31.0 size= 891kB time=00:00:09.70 bitrate= 751.9kbits/ frame= 549 fps= 22 q=31.0 size= 916kB time=00:00:09.94 bitrate= 755.0kbits/ frame= 561 fps= 22 q=28.0 size= 935kB time=00:00:10.17 bitrate= 752.8kbits/ // 82 lines removed for shortness frame= 1439 fps= 20 q=31.0 size= 3637kB time=00:00:27.74 bitrate=1074.2kbits/ frame= 1449 fps= 20 q=31.0 size= 3664kB time=00:00:27.94 bitrate=1074.2kbits/ frame= 1459 fps= 20 q=31.0 size= 3689kB time=00:00:28.14 bitrate=1073.9kbits/ frame= 1471 fps= 20 q=31.0 size= 3719kB time=00:00:28.38 bitrate=1073.6kbits/ frame= 1481 fps= 20 q=31.0 size= 3742kB time=00:00:28.58 bitrate=1072.5kbits/ frame= 1493 fps= 20 q=31.0 size= 3777kB time=00:00:28.82 bitrate=1073.6kbits/ frame= 1501 fps= 20 q=31.0 size= 3801kB time=00:00:28.98 bitrate=1074.5kbits/ s dup=793 drop=0
Change History (2)
comment:1 by , 13 years ago
Priority: | important → normal |
---|
comment:2 by , 13 years ago
Reproduced by developer: | set |
---|---|
Resolution: | → fixed |
Status: | new → closed |
hang fixed
the overread happens because your system seems to slow to encode at the speed at which the stream is received
Note:
See TracTickets
for help on using tickets.
Do you think this is a regression (that would make this ticket important)?