[FFmpeg-user] -threads option has no effect

Reindl Harald h.reindl at thelounge.net
Tue Aug 12 13:04:34 CEST 2014


Am 12.08.2014 um 12:56 schrieb Rohit Talwar:
> Thanks for looking into my query. I have a main java program within which I
> run ffmpeg (using exec). Often there comes a scenario wherein my program
> needs to create 4+ different instances of ffmpeg program for converting
> files into different formats. When this happens the cpu gets 'too busy'
> running the ffmpeg instances which affects the performance of my java
> program.
> I think lowering the priority(using nice or start /LOW )  of the ffmpeg
> process might be a possible strategy to solve this, but would be glad if
> you can help me point towards a platform independent solution

you missed the most important part

wrong:
ffmpeg -threads <number of threads> -i <my file.avi>

correct:
ffmpeg -i <my file.avi> -threads <number of threads>

params before "-i" are for the inout file / decoder

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140812/27b25c95/attachment.asc>


More information about the ffmpeg-user mailing list