[FFmpeg-trac] #1980(undetermined:new): ffmpeg process hangs with 100% CPU when getting a live rtsp stream (on redhat linux)
FFmpeg
trac at avcodec.org
Fri Nov 30 22:40:16 CET 2012
#1980: ffmpeg process hangs with 100% CPU when getting a live rtsp stream (on
redhat linux)
--------------------------------+----------------------------------------
Reporter: muthuk | Owner:
Type: defect | Status: new
Priority: normal | Component: undetermined
Version: 1.0 | Resolution:
Keywords: rtsp | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------+----------------------------------------
Comment (by muthuk):
Replying to [comment:1 cehoyos]:
> Please test current git head and provide a backtrace.
Thanks for your quick response.
I downloaded the current version from (http://ffmpeg.org/releases/ffmpeg-
snapshot.tar.bz2) and still see the issue after some time (15 minutes or
so).
Below are the details,
Command line is,
/home/lsadm/test-muthu/newerffmpeg/FFmpeg/bin/ffmpeg -i 'rtsp://xstream-
bcast-grinder003:50554/sEOrJIzkY7U1S7OYLaNL_A_QVGA+email.share at yahoo.com-
sEOrJIzkY7U1S7OYLaNL_A_QVGA.sdp' -timelimit 306 -minrate 70k -maxrate
1400k -map 0 -t 306 -c:v copy -c:a alac -y
/home/lsadm/StressTest/Outputs/mediaOutput/RTSP_DownStreamer-
65_sEOrJIzkY7U1S7OYLaNL.mov 2> /home/lsadm/StressTest/Outputs/openRTSPLog
/RTSP_DownStreamer-65_sEOrJIzkY7U1S7OYLaNL.log
The generated console (stats) data is,
[lsadm at grinder025 Scripts]$ cat /home/lsadm/StressTest/Outputs/openRTSPLog
/RTSP_DownStreamer-65_sEOrJIzkY7U1S7OYLaNL.log
ffmpeg version 1.0.git Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 30 2012 12:44:30 with gcc 4.1.2 (GCC) 20080704 (Red Hat
4.1.2-44)
configuration: --prefix=/home/lsadm/test-muthu/newerffmpeg/FFmpeg/
--enable-gpl --enable-version3 --enable-nonfree --disable-yasm
libavutil 52. 9.102 / 52. 9.102
libavcodec 54. 77.100 / 54. 77.100
libavformat 54. 39.100 / 54. 39.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.104 / 3. 23.104
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.101 / 0. 17.101
libpostproc 52. 2.100 / 52. 2.100
[h264 @ 0x1b50e520] Missing reference picture, default is 0
[h264 @ 0x1b50e520] decode_slice_header error
[h264 @ 0x1b50e520] concealing 300 DC, 300 AC, 300 MV errors in P frame
[h264 @ 0x1b50e520] Missing reference picture, default is 14
[h264 @ 0x1b50e520] RTP: missed 7594 packets
[h264 @ 0x1b50e520] RTP: missed 7595 packets
[h264 @ 0x1b50e520] RTP: missed 7596 packets
[h264 @ 0x1b50e520] RTP: missed 7597 packets
[h264 @ 0x1b50e520] RTP: missed 7598 packets
[h264 @ 0x1b50e520] RTP: missed 7599 packets
[h264 @ 0x1b50e520] RTP: missed 7600 packets
[h264 @ 0x1b50e520] RTP: missed 7601 packets
[h264 @ 0x1b50e520] RTP: missed 7602 packets
[lsadm at grinder025 Scripts]$
Below is a snapshot of the CPU captured with top command,
top - 13:37:40 up 52 days, 2:06, 10 users, load average: 3.51, 5.50,
4.97
Tasks: 473 total, 3 running, 470 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0%us, 0.3%sy, 0.0%ni, 96.4%id, 0.3%wa, 0.0%hi, 0.0%si,
0.0%st
Mem: 6096740k total, 6073196k used, 23544k free, 8528k buffers
Swap: 1020116k total, 361720k used, 658396k free, 2466924k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18206 lsadm 25 0 27792 4808 1972 R 99.9 0.1 18:29.11 ffmpeg
22322 lsadm 25 0 27968 4992 1976 R 99.9 0.1 6:42.93 ffmpeg
13406 lsadm 15 0 3933m 2.9g 2628 S 3.9 49.3 29:05.40 perl
23117 lsadm 15 0 28564 4976 2484 S 2.0 0.1 0:00.61 ffmpeg
23311 lsadm 15 0 28556 4964 2484 S 2.0 0.1 0:00.49 ffmpeg
23768 lsadm 15 0 11116 1232 684 R 2.0 0.0 0:00.01 top
1 root 15 0 10344 80 48 S 0.0 0.0 3:56.94 init
[lsadm at grinder025 Scripts]$ ps -aef | grep 18206
lsadm 18206 18205 99 13:19 pts/1 00:19:31 /home/lsadm/test-
muthu/newerffmpeg/FFmpeg/bin/ffmpeg -i rtsp://xstream-bcast-
grinder003:50554/sEOrJIzkY7U1S7OYLaNL_A_QVGA+email.share at yahoo.com-
sEOrJIzkY7U1S7OYLaNL_A_QVGA.sdp -timelimit 306 -minrate 70k -maxrate 1400k
-map 0 -t 306 -c:v copy -c:a alac -y
/home/lsadm/StressTest/Outputs/mediaOutput/RTSP_DownStreamer-
65_sEOrJIzkY7U1S7OYLaNL.mov
lsadm 23831 13531 0 13:38 pts/7 00:00:00 grep 18206
[lsadm at grinder025 Scripts]$ ps -aef | grep 18205
lsadm 18205 13406 0 13:19 pts/1 00:00:00 sh -c /home/lsadm/test-
muthu/newerffmpeg/FFmpeg/bin/ffmpeg -i 'rtsp://xstream-bcast-
grinder003:50554/sEOrJIzkY7U1S7OYLaNL_A_QVGA+email.share at yahoo.com-
sEOrJIzkY7U1S7OYLaNL_A_QVGA.sdp' -timelimit 306 -minrate 70k -maxrate
1400k -map 0 -t 306 -c:v copy -c:a alac -y
/home/lsadm/StressTest/Outputs/mediaOutput/RTSP_DownStreamer-
65_sEOrJIzkY7U1S7OYLaNL.mov 2> /home/lsadm/StressTest/Outputs/openRTSPLog
/RTSP_DownStreamer-65_sEOrJIzkY7U1S7OYLaNL.log
lsadm 18206 18205 99 13:19 pts/1 00:19:29 /home/lsadm/test-
muthu/newerffmpeg/FFmpeg/bin/ffmpeg -i rtsp://xstream-bcast-
grinder003:50554/sEOrJIzkY7U1S7OYLaNL_A_QVGA+email.share at yahoo.com-
sEOrJIzkY7U1S7OYLaNL_A_QVGA.sdp -timelimit 306 -minrate 70k -maxrate 1400k
-map 0 -t 306 -c:v copy -c:a alac -y
/home/lsadm/StressTest/Outputs/mediaOutput/RTSP_DownStreamer-
65_sEOrJIzkY7U1S7OYLaNL.mov
lsadm 23799 13531 0 13:38 pts/7 00:00:00 grep 18205
[lsadm at grinder025 Scripts]$
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1980#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list