-threads

Need help? Post your questions here.

Moderator: moderators

-threads

Postby GJ51 » Mon Aug 15, 2011 1:14 am

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,
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: -threads

Postby GJ51 » Mon Aug 15, 2011 6:52 pm

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests