[FFmpeg-user] Memory leakage in ffmpeg
karthik
karthikdas81 at gmail.com
Mon Mar 9 07:39:41 EET 2020
hi,
I have attached full console output below
ffmpeg version am using :
root at RStreamer-Development:/var/www/html/hls/testing# ffmpeg -version
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration:
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
--------------------------------------------------------------------------------------
root at RStreamer-Development:/var/www/html/hls/testing# ./Rstremer
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
configuration:
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] SPS unavailable in decode_picture_timing
[h264 @ 0x3be6600] non-existing PPS 1 referenced
[h264 @ 0x3be6600] no frame!
Input #0, mpegts, from 'udp://
224.1.1.1:1100?overrun_nonfatal=1&fifo_size=50000000':
Duration: N/A, start: 33401.441622, bitrate: N/A
Program 1
Metadata:
service_name : Multicaster1
service_provider: www.amigofx.com
Stream #0:0[0x400]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 60 tbr, 90k tbn,
60 tbc
Stream #0:1[0x401]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, fltp, 128 kb/s
Stream mapping:
Stream #0:0 (h264) -> split (graph 0)
scale (graph 0) -> Stream #0:0 (mpeg2video)
scale (graph 0) -> Stream #0:1 (mpeg2video)
Stream #0:1 -> #0:2 (mp2 (native) -> aac (native))
Stream #0:1 -> #0:3 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x3c1e080] Opening 'stream_0/data000015.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000015.ts' for writing
Output #0, hls, to 'stream_%v.m3u8':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: mpeg2video (Main), yuv420p(bottom coded first
(swapped)), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 800 kb/s, 30 fps, 90k tbn,
30 tbc
Metadata:
encoder : Lavc58.54.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 1000000/0/800000 buffer size: 1500000
vbv_delay: -1
Stream #0:1: Video: mpeg2video (Main), yuv420p, 854x480 [SAR 1280:1281
DAR 16:9], q=2-31, 1000 kb/s, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder : Lavc58.54.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 1500000/0/1000000 buffer size: 2000000
vbv_delay: -1
Stream #0:2: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.54.100 aac
Stream #0:3: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.54.100 aac
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_0/data000016.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'mv_movies_hd.m3u8' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000016.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing98 bitrate=N/A
dup=16 drop=0 speed=7.94x
[hls @ 0x3c1e080] Opening 'stream_0/data000017.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000017.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing86 bitrate=N/A
dup=16 drop=0 speed=5.73x
[hls @ 0x3c1e080] Opening 'stream_0/data000018.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000018.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing2 bitrate=N/A
dup=16 drop=0 speed=2.59x
[hls @ 0x3c1e080] Opening 'stream_0/data000019.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000019.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing02 bitrate=N/A
dup=16 drop=0 speed=1.95x
[hls @ 0x3c1e080] Opening 'stream_0/data000020.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000020.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.67x
[hls @ 0x3c1e080] Opening 'stream_0/data000021.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000021.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing4 bitrate=N/A
dup=16 drop=0 speed=1.55x
[hls @ 0x3c1e080] Opening 'stream_0/data000022.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing05 bitrate=N/A
dup=16 drop=0 speed=1.51x
[hls @ 0x3c1e080] Opening 'stream_1/data000022.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.46x
[hls @ 0x3c1e080] Opening 'stream_0/data000023.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000023.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.38x
[hls @ 0x3c1e080] Opening 'stream_0/data000024.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000024.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.33x
[hls @ 0x3c1e080] Opening 'stream_0/data000025.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000025.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.28x
[hls @ 0x3c1e080] Opening 'stream_0/data000026.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000026.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.26x
[hls @ 0x3c1e080] Opening 'stream_0/data000027.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000027.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.23x
[hls @ 0x3c1e080] Opening 'stream_0/data000028.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000028.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.21x
[hls @ 0x3c1e080] Opening 'stream_0/data000029.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000029.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed= 1.2x
[hls @ 0x3c1e080] Opening 'stream_0/data000030.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000030.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.18x
[hls @ 0x3c1e080] Opening 'stream_0/data000031.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000031.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.17x
[hls @ 0x3c1e080] Opening 'stream_0/data000032.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000032.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing bitrate=N/A
dup=16 drop=0 speed=1.16x
[hls @ 0x3c1e080] Opening 'stream_0/data000033.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000033.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing08 bitrate=N/A
dup=16 drop=0 speed=1.15x
[hls @ 0x3c1e080] Opening 'stream_0/data000034.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000034.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing59 bitrate=N/A
dup=16 drop=0 speed=1.14x
[hls @ 0x3c1e080] Opening 'stream_0/data000035.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000035.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing77 bitrate=N/A
dup=16 drop=0 speed=1.13x
[hls @ 0x3c1e080] Opening 'stream_0/data000036.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000036.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing79 bitrate=N/A
dup=16 drop=0 speed=1.13x
[hls @ 0x3c1e080] Opening 'stream_0/data000037.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000037.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing80 bitrate=N/A
dup=16 drop=0 speed=1.12x
[hls @ 0x3c1e080] Opening 'stream_0/data000038.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000038.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing82 bitrate=N/A
dup=16 drop=0 speed=1.11x
[hls @ 0x3c1e080] Opening 'stream_0/data000039.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000039.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing83 bitrate=N/A
dup=16 drop=0 speed=1.11x
[hls @ 0x3c1e080] Opening 'stream_0/data000000.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000000.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing86 bitrate=N/A
dup=16 drop=0 speed= 1.1x
[hls @ 0x3c1e080] Opening 'stream_0/data000001.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
[hls @ 0x3c1e080] Opening 'stream_1/data000001.ts' for writing
[hls @ 0x3c1e080] Opening 'stream_0.m3u8.tmp' for writing37 bitrate=N/A
dup=16 drop=0 speed= 1.1x
[hls @ 0x3c1e080] Opening 'stream_1.m3u8.tmp' for writing
=============================================
if anything wrong suggest me, how to to convert udp to hls format with
scaling option.
On Mon, Mar 9, 2020 at 10:58 AM Dennis Mungai <dmngaie at gmail.com> wrote:
> On Mon, 9 Mar 2020 at 08:17, karthik <karthikdas81 at gmail.com> wrote:
>
> > karthik <karthikdas81 at gmail.com>
> > Sat, Mar 7, 12:14 PM (2 days ago)
> > to ffmpeg-user-owner
> > I am using below ffmpeg commands for streaming udp to hls but am facing
> > memory leakage problem.
> >
> > When I streamed 12 streams using below command means it uses 100% of CPU
> > memory and need restart for working further.
> >
> > So kindly give us suggestion, how to solve below issue.
> > ========================================================================
> >
> > # Stream 1
> > STREAM_NAME=stream1
> > STREAM_PID_PATH=/tmp/$STREAM_NAME-pid
> > INPUT_URL=udp://224.1.1.1:1100
> > CH_NAME=mv_movies_hd
> >
> >
> >
> > ffmpeg -i "$INPUT_URL?overrun_nonfatal=1&fifo_size=5000000" \
> > -filter_complex
> >
> >
> "[v:0]split=2[vtemp001][vtemp002];[vtemp001]scale=w=640:h=360[vout001],[vtemp002]scale=w=854:h=480[vout002]"
> > \
> > -map [vout001] -c:v:0 mpeg2video -b:v:0 600k -maxrate:v:0 900k
> > -bufsize:v:0 1200k \
> > -map [vout002] -c:v:1 mpeg2video -b:v:1 1000k -maxrate:v:1 1500k
> > -bufsize:v:1 2000k \
> > -map a:0 -map a:0 -c:a aac -b:a 128k -ac 2 \
> > -f hls -hls_time 2 -hls_list_size 4 \
> > -hls_wrap 40 -hls_allow_cache 0 \
> > -hls_delete_threshold 1 \
> > -hls_flags delete_segments \
> > -hls_start_number_source datetime \
> > -start_number 10 \
> > -hls_playlist_type event -master_pl_name $CH_NAME.mpeg \
> > -hls_segment_filename stream_%v/data%06d.ts \
> > -use_localtime_mkdir 1 \
> > -var_stream_map "v:0,a:0 v:1,a:1" -crf 22 stream_%v.mpeg
> > =============================================================
> > _______________________________________________
>
>
> Hey there,
>
> Full uncut console output and ffmpeg version info is required.
>
> Where possible, re-run the same using the latest build from git, then
> report back.
>
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list