Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
avconv uses only 1 CPU core
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
LubosD
Apprentice
Apprentice


Joined: 30 Jun 2005
Posts: 211
Location: Czech Republic

PostPosted: Fri Nov 22, 2013 11:59 am    Post subject: avconv uses only 1 CPU core Reply with quote

Hi,

I use avconv for realtime re-compression. ffmpeg worked very well, but after moving to avconv, it can't keep up the pace any more.

I looked into htop and instead of using four cores it uses only one (100%).

Code:
avconv -i - -deinterlace -threads 4 -thread_type slice -vcodec libx264 -preset fast -b:v 800k -maxrate 1000k -minrate 600k -bufsize 700k -codec:a libfaac -ac 2 -b:a 128k -sn -y -f matroska pipe:


Note the "-threads 4" argument. This is completely disregarded, the process only has a single thread. Setting it to "auto" makes no difference. It is compiled with USE=threads.

In the output, I can see that this argument is passed to libx264 correctly:

Code:
[libx264 @ 0x17048c0] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=700 nal_hrd=none ip_ratio=1.25 aq=1:1.00


Any idea what to do with it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum