[FFmpeg-user] Facing issues in streaming videos

karthik karthikdas81 at gmail.com
Tue Mar 10 12:29:03 EET 2020


hi,

    Yes I tried -threads 1 but streaming time only increased from 2 hours
to 3 hours but problem not solved.

    In before mail I have attached memory usage details , When I started up
ffmpeg

     But After 1 hours of streaming see below how much CPU and buffer it
taken


===========================================================================
Tasks: 279 total,   1 running, 180 sleeping,   0 stopped,   0 zombie
%Cpu(s): 16.0 us,  0.7 sy, 13.4 ni, 33.8 id, 35.8 wa,  0.0 hi,  0.3 si,
 0.0 st
KiB Mem : 16423264 total,   614204 free, 15411440 used,   397620 buff/cache
KiB Swap:   999420 total,   337196 free,   662224 used.   667888 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 5025 root      20   0 3667796 1.133g      0 D  76.7  7.2  64:52.87 ffmpeg
 5563 root      20   0 2610844 1.092g      0 D  76.1  7.0  63:43.07 ffmpeg
 4613 root      20   0 3664840 1.111g      0 D  58.5  7.1  67:27.32 ffmpeg
 4510 root      20   0 3665812 1.131g      0 D  52.8  7.2  65:26.85 ffmpeg
 4498 root      20   0 3672292 1.135g      0 D  47.5  7.2  62:56.29 ffmpeg
 5128 root      20   0 3682128 1.141g      0 D  47.2  7.3  62:39.27 ffmpeg
 4716 root      20   0 1995172 0.991g   1656 D  43.2  6.3  37:06.58 ffmpeg
 4504 root      20   0 3743152 1.203g      0 D  42.9  7.7  58:09.57 ffmpeg
 5460 root      20   0 2614936 1.095g      0 D  16.6  7.0  57:18.69 ffmpeg
 4819 root      20   0 3672816 1.133g      0 D  11.3  7.2  62:20.48 ffmpeg
 4446 root      20   0 3507380 1.059g      0 D   8.6  6.8  87:56.31 ffmpeg
  174 root      20   0       0      0      0 I   0.3  0.0   0:04.11
kworker/6:1
 4922 root      20   0 3667888 1.134g      0 D   0.3  7.2  63:41.14 ffmpeg
 5231 root      20   0 3665708 1.126g      0 D   0.3  7.2  61:03.92 ffmpeg
 7740 user      20   0   49016   3888   3124 R   0.3  0.0   0:00.11 top
    1 root      20   0  185216   1284    724 S   0.0  0.0   0:01.80 systemd
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd

==================================================================================

 When started streaming cpu usage for single stream is 1.5% but withing 1
hours it raised to 7.2%

 And also see memory used it dramatically increasing.

 Kindly need solution for this issue. Why it is happening??





On Tue, Mar 10, 2020 at 3:53 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Am Di., 10. März 2020 um 09:15 Uhr schrieb karthik <karthikdas81 at gmail.com
> >:
>
> > But am facing memory consumption issue within 2 hours all RAM memories
> are
> > full and streams are jerking to play.
> >
> > What is the solution for this problem.
>
> Did you already try to reduce the thread count?
>
> Carl Eugen
> _______________________________________________
> 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