[FFmpeg-user] FPS drop when transcode 3 Full HD channel to SD

Hendrik Karsimin hendrikkarsimin at gmail.com
Tue Jun 13 16:03:14 EEST 2017


Hi,
I've been trying to transcode the Full HD Channel (1920x1080) to SD
(720x576).

When I transcode 1 channel, the resulting video is no problem. So are when
transcode 2 channel.
But when the 3rd channel I tried to transcode start. the FPS start to drop
on all the channel I transcoding.

I'm not sure if it's a computer hardware limitation or the software
limitation.
But I have tried to change some parameter of ffmpeg, and settle on the last
ffmpeg configuration I use now.

Attached is the information I collect on the PC I use to transcode.

The Ubuntu Version I use is Ubuntu 14.04.5

#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

#uname -a
Linux Compaq 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017
x86_64 x86_64 x86_64 GNU/Linux

Need advice to resolve this problem.



*Thanks & regards,*
Hendrik
-------------- next part --------------
##################################
cat /proc/cpuinfo
##################################
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2933.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm
bogomips        : 5852.70
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2933.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm
bogomips        : 5852.70
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

-------------- next part --------------
transcode_okto
./ffmpeg -threads 0 -i 'udp://228.110.3.3:1234?fifo_size=1200000&localaddr=192.168.1.8' -map 0:0 -vcodec libx264 -g 50 -crf 28 -preset veryfast -vprofile baseline  -level 3.1  -b:v 1500k -minrate 1400k -maxrate 1650k -bufsize 1650k -s: 720x576 -r 25 -map 0:2 -c:a libfdk_aac -b:a 128k  -f mpegts -muxrate 1850k    'udp://228.110.7.3:1234?pkt_size=1316&localaddr=192.168.1.8'

transcode_suria
./ffmpeg -threads 0 -i 'udp://228.110.3.18:1234?fifo_size=1200000&localaddr=192.168.1.8' -map 0:0 -vcodec libx264 -g 50 -crf 28 -preset veryfast -vprofile baseline  -level 3.1  -b:v 1500k -minrate 1400k -maxrate 1650k -bufsize 1650k -s: 720x576 -r 25 -map 0:2 -c:a libfdk_aac -b:a 128k  -f mpegts -muxrate 1850k    'udp://228.110.7.2:1234?pkt_size=1316&localaddr=192.168.1.8'

transcode_cna
./ffmpeg -threads 0 -i 'udp://228.110.3.1:1234?fifo_size=1200000&localaddr=192.168.1.8' -map 0:0 -vcodec libx264 -g 50 -crf 28 -preset veryfast -vprofile baseline  -level 3.1  -b:v 1500k -minrate 1400k -maxrate 1650k -bufsize 1650k -s: 720x576 -r 25 -map 0:2 -c:a libfdk_aac -b:a 128k  -f mpegts -muxrate 1850k    'udp://228.110.7.1:1234?pkt_size=1316&localaddr=192.168.1.8'

-------------- next part --------------

##################################
top
##################################
when 1 ffmpeg running
##################################


top - 19:27:31 up 1 day,  2:40,  2 users,  load average: 1.01, 2.73, 3.92
Tasks:  84 total,   1 running,  83 sleeping,   0 stopped,   0 zombie
%Cpu0  : 28.5 us,  0.7 sy,  9.2 ni, 61.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  : 32.4 us,  0.7 sy,  6.1 ni, 60.5 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
KiB Mem:   2039016 total,  1260560 used,   778456 free,    51440 buffers
KiB Swap:  2084860 total,     2444 used,  2082416 free.   876752 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
28808 root      20   0  860492 204420   6404 S  77.3 10.0   1:28.34 ffmpeg
28646 root      20   0   16584   2676   1180 S   0.7  0.1   0:11.83 stream
   37 root      20   0       0      0      0 S   0.3  0.0   0:26.11 kworker/1:1
    1 root      20   0   33248   1940   1452 S   0.0  0.1   0:00.80 init
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0.0  0.0   0:01.35 ksoftirqd/0
    4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 S   0.0  0.0   0:30.35 rcu_sched
    8 root      20   0       0      0      0 S   0.0  0.0   0:11.54 rcuos/0
    9 root      20   0       0      0      0 S   0.0  0.0   0:11.53 rcuos/1
   10 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/2
   11 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/3
   12 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh
   13 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/0
   14 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/1
   15 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/2
   16 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/3
   17 root      rt   0       0      0      0 S   0.0  0.0   0:00.75 migration/0
   18 root      rt   0       0      0      0 S   0.0  0.0   0:00.18 watchdog/0
   19 root      rt   0       0      0      0 S   0.0  0.0   0:00.19 watchdog/1
   20 root      rt   0       0      0      0 S   0.0  0.0   0:00.71 migration/1
   21 root      20   0       0      0      0 S   0.0  0.0   0:01.37 ksoftirqd/1
   23 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H
   24 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 khelper
   25 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kdevtmpfs
   26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns
   27 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback
   28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd
   29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset
   31 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kblockd
   32 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 ata_sff
   33 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khubd
   34 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 md
   35 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 devfreq_wq
   36 root      20   0       0      0      0 S   0.0  0.0   0:27.30 kworker/0:1



##################################
top
##################################
when 2 ffmpeg running
##################################
top - 19:39:56 up 1 day,  2:53,  2 users,  load average: 7.21, 5.56, 4.53
Tasks:  89 total,   2 running,  87 sleeping,   0 stopped,   0 zombie
%Cpu0  : 65.7 us,  2.0 sy, 23.6 ni,  8.1 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu1  : 71.6 us,  1.4 sy, 16.6 ni,  9.5 id,  0.0 wa,  0.0 hi,  1.0 si,  0.0 st
KiB Mem:   2039016 total,  1482804 used,   556212 free,    53244 buffers
KiB Swap:  2084860 total,     2444 used,  2082416 free.   877052 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
28896 root      20   0  860560 208036   6400 S  90.9 10.2   1:39.83 ffmpeg
28898 root      20   0  860920 217120   6404 S  89.9 10.6   1:43.82 ffmpeg
28646 root      20   0   16584   2676   1180 S   1.3  0.1   0:17.97 stream
28586 root      20   0   64868  15192   2116 S   0.3  0.7   0:04.78 supervisord
    1 root      20   0   33248   1940   1452 S   0.0  0.1   0:00.80 init
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0.0  0.0   0:01.38 ksoftirqd/0
    4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 R   0.0  0.0   0:31.13 rcu_sched
    8 root      20   0       0      0      0 S   0.0  0.0   0:11.83 rcuos/0
    9 root      20   0       0      0      0 S   0.0  0.0   0:11.82 rcuos/1
   10 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/2
   11 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/3
   12 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh
   13 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/0
   14 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/1
   15 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/2
   16 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/3
   17 root      rt   0       0      0      0 S   0.0  0.0   0:00.76 migration/0
   18 root      rt   0       0      0      0 S   0.0  0.0   0:00.18 watchdog/0
   19 root      rt   0       0      0      0 S   0.0  0.0   0:00.19 watchdog/1
   20 root      rt   0       0      0      0 S   0.0  0.0   0:00.72 migration/1
   21 root      20   0       0      0      0 S   0.0  0.0   0:01.40 ksoftirqd/1
   23 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H
   24 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 khelper
   25 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kdevtmpfs
   26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns
   27 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback
   28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd
   29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset
   31 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kblockd
   32 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 ata_sff
   33 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khubd
   34 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 md
   35 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 devfreq_wq



##################################
top
##################################
when 3 ffmpeg running
##################################
top - 19:44:09 up 1 day,  2:57,  2 users,  load average: 9.83, 6.88, 5.21
Tasks:  89 total,   4 running,  85 sleeping,   0 stopped,   0 zombie
%Cpu0  : 79.5 us,  1.7 sy, 17.5 ni,  0.0 id,  0.0 wa,  0.0 hi,  1.3 si,  0.0 st
%Cpu1  : 71.8 us,  1.3 sy, 25.2 ni,  0.0 id,  0.0 wa,  0.0 hi,  1.7 si,  0.0 st
KiB Mem:   2039016 total,  1774552 used,   264464 free,    53580 buffers
KiB Swap:  2084860 total,     2444 used,  2082416 free.   877288 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
28929 root      20   0  861100 221864   6392 R  95.2 10.9   1:36.69 ffmpeg
28931 root      20   0  861140 237708   6384 S  53.3 11.7   1:19.21 ffmpeg
28927 root      20   0  795008 260060   6384 R  50.3 12.8   1:46.01 ffmpeg
28646 root      20   0   16584   2676   1180 R   1.0  0.1   0:20.22 stream
    8 root      20   0       0      0      0 S   0.3  0.0   0:11.94 rcuos/0
   36 root      20   0       0      0      0 S   0.3  0.0   0:28.00 kworker/0:1
    1 root      20   0   33248   1940   1452 S   0.0  0.1   0:00.80 init
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0.0  0.0   0:01.39 ksoftirqd/0
    4 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 S   0.0  0.0   0:31.43 rcu_sched
    9 root      20   0       0      0      0 S   0.0  0.0   0:11.93 rcuos/1
   10 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/2
   11 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuos/3
   12 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh
   13 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/0
   14 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/1
   15 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/2
   16 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/3
   17 root      rt   0       0      0      0 S   0.0  0.0   0:00.76 migration/0
   18 root      rt   0       0      0      0 S   0.0  0.0   0:00.18 watchdog/0
   19 root      rt   0       0      0      0 S   0.0  0.0   0:00.19 watchdog/1
   20 root      rt   0       0      0      0 S   0.0  0.0   0:00.72 migration/1
   21 root      20   0       0      0      0 S   0.0  0.0   0:01.41 ksoftirqd/1
   23 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H
   24 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 khelper
   25 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kdevtmpfs
   26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns
   27 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback
   28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd
   29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset
   31 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kblockd
   32 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 ata_sff
   33 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khubd
   34 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 md
   35 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 devfreq_wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: when 1 ffmpeg running.zip
Type: application/zip
Size: 7766 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170613/4f5d5d0e/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: when 2 ffmpeg running.zip
Type: application/zip
Size: 13103 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170613/4f5d5d0e/attachment-0001.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: when 3 ffmpeg running.zip
Type: application/zip
Size: 23143 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170613/4f5d5d0e/attachment-0002.zip>


More information about the ffmpeg-user mailing list