Page 1 of 1

-threads

PostPosted: Mon Aug 15, 2011 1:14 am
by GJ51
Anyone had any luck getting "-threads x" working? I've got the latest ffmpeg build that says the threads option is enabled, but if I enter anything other than "-threads 1" it kills the transcoding. My system can handle just about any transcoding, but it starts to choke on .m2ts files.

I'm pretty sure that if I can find the secret to enabling multiple threads to handle the transcoding, even the blue ray files should run without any pauses.

If anyone knows the secret, please share.

Win 2008 R2 server running std Windows install.


Thanks,

Re: -threads

PostPosted: Mon Aug 15, 2011 6:52 pm
by GJ51
Problem solved!

ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset fast -threads 0 -

ffmpeg -ss %o -i %s -async 30 -b %bk -r 23-.976 -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset fast -threads 0 -

Both work. All of my videos worked well with these settings except for .m2ts (Blue Ray) files. They ran but would pause every 5 - 10 sec. Turns out that .m2ts files just need a LOT of CPU power to run smoothly. I install an instance of SS on my desktop that has a Core i7 950 in it and the .m2ts files ran perfect.

The above settings utilize the -threads option which will take advantage of multi-core CPU's and improve playback performance on all video playback. Any issues with these settings are probably an indication that you're pushing the limits of your hardwares capability.