[FFmpeg-user] Filter threads vs encoder threads

Sven C. Dack sven.c.dack at sky.com
Sun Sep 4 03:52:39 EEST 2016


On 03/09/16 23:36, Reuben Martin wrote:
> Is it possible to use slice-threads for the filter graph, while using strictly
> frame-threads for the encdoing? In my case it would be sliced threads for
> yadif, and then frame threads for libx264.
You can specify the number of threads for each stream at every step individually:

 > ffmpeg -threads:v:0 1 -i in.avi -threads:a:0 1 -c:a mp3 -threads:v:0 8 -c:v 
libx264 -y out.mp4

Here it uses 1 thread for the decoder, 1 for the audio and 8 threads for the 
video encoder. Not sure if this is what you are looking for. Know you can use 
multiple ffmpeg processes with pipes when you don't like using threads.

Sven



More information about the ffmpeg-user mailing list