[FFmpeg-user] Turn Off Multi-Threading

Reindl Harald h.reindl at thelounge.net
Wed Jul 31 00:30:51 CEST 2013



Am 30.07.2013 23:47, schrieb James Board:
>> Everything else except select filter that you use (but you did not mentioned it)
> 
>> can be multithreaded: decoders, encoders, and other filters (but not
>> select one).
> 
> I'm not using any other filters.  Anyway, does anyone know
> how to turn off multi-threading?  I tried "-threads 1" and
> I see see CPU usage at almost 200 percent for ffmpeg

please post complete command line if you
want help instead "i did this and that"

the params for the encoding are *before* the output file

ffmpeg -i "test.m4v" -y -f 'mp4' -vcodec 'libx264' -vb '1024k' -maxrate '4048k' -bufsize '30M' -acodec 'aac'
-strict '-2' -ab '128k' -profile 'main' -threads 1 "out.mp4"

is clearly *one* CPU, in this case H264 main with internal AAC encoder
ffmpeg-2.0 here and "-threads" works since years (0.6 or so)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130731/451a4f84/attachment.asc>


More information about the ffmpeg-user mailing list