[FFmpeg-user] Not using all resources

Henk D. Schoneveld belcampo at zonnet.nl
Tue Aug 25 10:19:06 CEST 2015


> On 25 Aug 2015, at 10:14, Henk D. Schoneveld <belcampo at zonnet.nl> wrote:
> 
> 
>> On 24 Aug 2015, at 23:14, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> 
>> Henk D. Schoneveld <belcampo <at> zonnet.nl> writes:
>> 
>>> I’m encoding from several DVB-S sources, satellite, 
>>> with always the same parameters but recordings from 
>>> some sources CPU-load is about 50% of what it could 
>>> be, others use max. available as attachments show.
>> 
>> Command line and complete, uncut console output missing.
> They were in the screenshots, those screenshots were png’s made under OSX in X-terminal
Another try:
top - 22:22:32 up 15 days, 21:00,  2 users,  load average: 7.04, 2.09, 0.75
Tasks: 173 total,   2 running, 171 sleeping,   0 stopped,   0 zombie
Cpu(s): 27.6%us,  0.7%sy, 59.7%ni, 11.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3976112k total,  3863768k used,   112344k free,      424k buffers
Swap:        0k total,        0k used,        0k free,   977788k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
17450 belcampo  20   0 1293m 246m 5048 R  701  6.4   6:47.10 ffmpeg            
12682 belcampo  20   0 2790m 1.3g 1.2g S    2 33.5 403:11.84 VBoxHeadless      
12543 belcampo  20   0 1648m 442m 420m S    1 11.4 212:31.19 VBoxHeadless      
12824 belcampo  20   0 1394m 163m 146m S    1  4.2 157:57.99 VBoxHeadless      
  320 root       0 -20     0    0    0 S    0  0.0   3:53.56 kworker/7:1H      
12401 belcampo  20   0  554m 3640  348 S    0  0.1  21:50.01 VBoxSVC           
26078 plex      20   0  325m  18m  584 S    0  0.5   3:22.19 Plex DLNA Serve   
    1 root      20   0 46412 2228  152 S    0  0.1   0:00.53 systemd           
    2 root      20   0     0    0    0 S    0  0.0   0:00.03 kthreadd          
    3 root      20   0     0    0    0 S    0  0.0   0:12.87 ksoftirqd/0       
    5 root       0 -20     0    0    0 S    0  0.0   0:00.00 kworker/0:0H      
    7 root      20   0     0    0    0 S    0  0.0   2:11.80 rcu_sched         
    8 root      20   0     0    0    0 S    0  0.0   0:00.00 rcu_bh            
    9 root      RT   0     0    0    0 S    0  0.0   0:00.19 migration/0       
   10 root      RT   0     0    0    0 S    0  0.0   0:00.32 migration/1       
   11 root      20   0     0    0    0 S    0  0.0   0:02.22 ksoftirqd/1       
   13 root       0 -20     0    0    0 S    0  0.0   0:00.00 kworker/1:0H      
   14 root      RT   0     0    0    0 S    0  0.0   0:00.20 migration/2       
   15 root      20   0     0    0    0 S    0  0.0   0:02.21 ksoftirqd/2       
   17 root       0 -20     0    0    0 S    0  0.0   0:00.00 kworker/2:0H      
   18 root      RT   0     0    0    0 S    0  0.0   0:00.20 migration/3       
   19 root      20   0     0    0    0 S    0  0.0   0:02.23 ksoftirqd/3       
   21 root       0 -20     0    0    0 S    0  0.0   0:00.00 kworker/3:0H      
[belcampo at base4 ~]$ ps ax|grep ffmp
17450 pts/0    Sl+    7:41 ffmpeg -y -ss 305 -i base.ts -t 4092.96 -c:v libx264-crf 22 -preset veryfast -crf 22 -g 50 -me_method umh -c:a libfdk_aac -ab 128k ac 2 -r 25 -map 0:0 -map 0:4 base.mp4

The same CLI for another source-file to encode gives that ffmpeg leaves CPU Idle at about 60%
>> 
>> Please do not attach screenshots unless there is a 
>> very good reason.
> I thought/think I had a good reason.
>> 
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 



More information about the ffmpeg-user mailing list