[FFmpeg-user] Facing issues in streaming videos
karthik
karthikdas81 at gmail.com
Tue Mar 17 08:35:57 EET 2020
> hi,
>
I used below command and done testing from Morning onwards.
ffmpeg -threads 1 -i udp://224.1.1.1:1100 -c:v copy -c:a copy -f
/home/user/ffmpeg-4.2.2/mw_movies.m3u8
At the start of streaming memory as below
=============================================================
top - 11:02:19 up 16:48, 3 users, load average: 0.04, 0.01, 0.00
Tasks: 317 total, 2 running, 217 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.1 us, 0.0 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si,
0.0 st
KiB Mem : 16423264 total, 14990164 free, 642272 used, 790828 buff/cache
KiB Swap: 999420 total, 999420 free, 0 used. 15408016 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5979 root 20 0 76104 23360 10300 R 2.2 0.1 0:00.50 ffmpeg
1 root 20 0 185108 5740 4012 S 0.0 0.0 0:02.68 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
kworker/0:0H
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
mm_percpu_wq
top - 11:59:05 up 17:45, 3 users, load average: 0.82, 0.56, 0.24
Tasks: 321 total, 1 running, 221 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si,
0.0 st
KiB Mem : 16423264 total, 11984280 free, 645812 used, 3793172 buff/cache
KiB Swap: 999420 total, 999420 free, 0 used. 15363252 avail Mem
======================================================================
And after one hour of running --> memory usage as below
Tasks: 321 total, 1 running, 221 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.1 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si,
0.0 st
KiB Mem : 16423264 total, 11981684 free, 645936 used, 3795644 buff/cache
KiB Swap: 999420 total, 999420 free, 0 used. 15363132 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5979 root 20 0 76104 23360 10300 S 2.0 0.1 1:09.99 ffmpeg
6305 root 20 0 49120 4044 3188 R 0.3 0.0 0:00.02 top
In one hour of duration it used memory is gradually increasing.
Kindly give us solution for this.
And console output of the streaming as follows
root at TESTING-FFMPEG:/var/www/html/hls/live/mobile/testing# ffmpeg -threads
1 -i udp://231.1.1.108:1026 -c:v copy -c:a copy -f mpegts
/home/user/ffmpeg-4.2.2/Ajk_live_Telecast.m3u8
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: --prefix=/root/home/user/ffmpeg-4.2.2
--pkg-config-flags=--static
--extra-cflags=-I/root/home/user/ffmpeg-4.2.2/include
--extra-ldflags=-L/root/home/user/ffmpeg-4.2.2/lib --extra-libs='-lpthread
-lm' --bindir=/root/bin --enable-gpl --enable-libx264 --enable-nonfree
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
libpostproc 55. 5.100 / 55. 5.100
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] SPS unavailable in decode_picture_timing
[h264 @ 0x2390640] non-existing PPS 0 referenced
[h264 @ 0x2390640] decode_slice_header error
[h264 @ 0x2390640] no frame!
Input #0, mpegts, from 'udp://231.1.1.108:1026':
Duration: N/A, start: 7704.710000, bitrate: N/A
Program 96
Metadata:
service_name : AJK Music HD
service_provider:
Stream #0:0[0x71]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
50 tbc
Stream #0:1[0x72]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, fltp, 128 kb/s
Output #0, mpegts, to '/home/user/ffmpeg-4.2.2/Ajk_live_Telecast.m3u8':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top
first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 50 tbr, 90k tbn, 90k
tbc
Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
fltp, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 447 fps=0.0 q=-1.0 size= 7680kB time=00:00:07.80
bitrate=8059.7kbits/s speed=15.4x
frame= 477 fps=474 q=-1.0 size= 8448kB time=00:00:08.30
bitrate=8332.0kbits/s speed=8.25x
frame= 509 fps=331 q=-1.0 size= 8960kB time=00:00:08.83
bitrate=8303.8kbits/s speed=5.75x
frame= 539 fps=264 q=-1.0 size= 9472kB time=00:00:09.33
bitrate=8308.3kbits/s speed=4.58x
frame= 569 fps=224 q=-1.0 size= 9984kB time=00:00:09.83
bitrate=8312.4kbits/s speed=3.87x
frame= 601 fps=192 q=-1.0 size= 10496kB time=00:00:10.37
bitrate=8289.4kbits/s speed=3.32x
frame= 631 fps=174 q=-1.0 size= 11008kB time=00:00:10.87
bitrate=8293.9kbits/s speed=2.99x
frame= 661 fps=160 q=-1.0 size= 11520kB time=00:00:11.37
bitrate=8298.1kbits/s speed=2.75x
frame= 695 fps=149 q=-1.0 size= 12288kB time=00:00:11.93
bitrate=8431.2kbits/s speed=2.57x
frame= 725 fps=140 q=-1.0 size= 12800kB time=00:00:12.43
bitrate=8429.5kbits/s speed= 2.4x
frame= 755 fps=133 q=-1.0 size= 13568kB time=00:00:12.93
bitrate=8590.0kbits/s speed=2.28x
frame= 787 fps=127 q=-1.0 size= 14080kB time=00:00:13.47
bitrate=8561.3kbits/s speed=2.17x
frame= 819 fps=122 q=-1.0 size= 14592kB time=00:00:14.00
bitrate=8534.7kbits/s speed=2.08x
frame= 849 fps=118 q=-1.0 size= 15104kB time=00:00:14.50
bitrate=8529.7kbits/s speed=2.01x
frame= 879 fps=114 q=-1.0 size= 15616kB time=00:00:15.00
bitrate=8525.0kbits/s speed=1.94x
frame= 909 fps=110 q=-1.0 size= 16128kB time=00:00:15.50
bitrate=8520.6kbits/s speed=1.88x
frame= 941 fps=108 q=-1.0 size= 16640kB time=00:00:16.03
bitrate=8498.8kbits/s speed=1.84x
frame= 971 fps=105 q=-1.0 size= 17152kB time=00:00:16.53
bitrate=8495.4kbits/s speed=1.79x
frame= 997 fps=102 q=-1.0 size= 17920kB time=00:00:16.97
bitrate=8649.2kbits/s speed=1.74x
frame= 1029 fps=100 q=-1.0 size= 18432kB time=00:00:17.50
bitrate=8625.3kbits/s speed=1.71x
frame= 1063 fps= 99 q=-1.0 size= 18944kB time=00:00:18.07
bitrate=8586.9kbits/s speed=1.68x
frame= 1095 fps= 97 q=-1.0 size= 19456kB time=00:00:18.60
bitrate=8566.2kbits/s speed=1.65x
frame= 1125 fps= 95 q=-1.0 size= 19968kB time=00:00:19.10
bitrate=8561.6kbits/s speed=1.62x
frame= 1155 fps= 94 q=-1.0 size= 20480kB time=00:00:19.60
bitrate=8557.2kbits/s speed=1.59x
frame= 1185 fps= 92 q=-1.0 size= 20992kB time=00:00:20.10
bitrate=8553.0kbits/s speed=1.57x
frame= 1215 fps= 91 q=-1.0 size= 21760kB time=00:00:20.60
bitrate=8650.8kbits/s speed=1.54x
frame= 1251 fps= 90 q=-1.0 size= 22272kB time=00:00:21.20
bitrate=8603.8kbits/s speed=1.52x
frame= 1281 fps= 89 q=-1.0 size= 22784kB time=00:00:21.70
bitrate=8598.8kbits/s speed=1.51x
frame= 1290 fps= 88 q=-1.0 Lsize= 23163kB time=00:00:21.85
bitrate=8681.7kbits/s speed= 1.5x
Kindly into this and give us solution
>
>
>
>> 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