LubosD Apprentice
Joined: 30 Jun 2005 Posts: 211 Location: Czech Republic
|
Posted: Fri Nov 22, 2013 11:59 am Post subject: avconv uses only 1 CPU core |
|
|
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? |
|