TRUE multi-threaded video transcoding

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

TRUE multi-threaded video transcoding

Postby rickeo » Thu Nov 17, 2011 3:43 am

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
rickeo
 
Posts: 30
Joined: Wed Jun 17, 2009 6:40 pm

Re: TRUE multi-threaded video transcoding

Postby jwegman » Thu Nov 17, 2011 2:55 pm

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.
jwegman
 
Posts: 3
Joined: Thu Nov 10, 2011 8:33 pm

Re: TRUE multi-threaded video transcoding

Postby rickeo » Fri Nov 18, 2011 12:00 am

Yes, i'm using the same transcoding string.

I guess this is just a Windows thing then? I'm still puzzled.
rickeo
 
Posts: 30
Joined: Wed Jun 17, 2009 6:40 pm

Re: TRUE multi-threaded video transcoding

Postby BKKKPewsey » Fri Nov 18, 2011 2:07 am

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:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 35 guests