Page 1 of 1

TRUE multi-threaded video transcoding

PostPosted: Thu Nov 17, 2011 3:43 am
by rickeo
I've started threads on this before were i've tried to get this to work but i've about had it at this point. Whats even more frustrating is it works beautifully in Plex Media Server.

Streaming a 1080p MKV to my Android tablet using Plex Media Server for Windows and the Plex app for Android:

Image
Image


Now, playing back the same file using the latest Subsonic beta with the latest ffmpeg and JWplayer:

Image
Image

Needless to say, playing it back using Subsonic results in the video stopping every 3 seconds so the transcoding can catch up.

I'm really quite shocked that with the prevelence of multicore CPU's and HD video we're still only allowing ffmpeg to use a single core for transcoding. Any word on if this will be remedied? :D

Re: TRUE multi-threaded video transcoding

PostPosted: Thu Nov 17, 2011 2:55 pm
by jwegman
What is your Subsonic transcoding command?

The new beta should have:
Code: Select all
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -


*The -threads 0 parameter is the thread count; 0 = one thread per cpu core.

(*)Provided that your ffmpeg binary is compiled with --enable-threads. I'm a linux user, and encoding with the above ffmpeg command line DOES utilize all 4 cpu cores on my subsonic box.

Re: TRUE multi-threaded video transcoding

PostPosted: Fri Nov 18, 2011 12:00 am
by rickeo
Yes, i'm using the same transcoding string.

I guess this is just a Windows thing then? I'm still puzzled.

Re: TRUE multi-threaded video transcoding

PostPosted: Fri Nov 18, 2011 2:07 am
by BKKKPewsey
rickeo wrote:Yes, i'm using the same transcoding string.

I guess this is just a Windows thing then? I'm still puzzled.


Here is a screen cap of my poor little Atom processor trying to transcode a mpg file in SS
It looks like it is using all available cores (both of them :D )

Image

Windows Server 2003
:mrgreen: