Page 1 of 1

Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Sat Feb 23, 2013 10:26 pm
by Freek
I am trying to stream a 720p WEB-DL .MKV h264 file into my webbrowser using the MediaBrowser but the playback is very choppy.
I see that FFMpeg only uses 1 CPU core, altough I've set it to 4 in the Serviio Console.
How can I chang the FFMpeg uses all cores?

Thanks!

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Sat Feb 23, 2013 10:35 pm
by will
IIRC you cannot as that particular encoder is limited to 1 core (same as the WMV encoder)

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Sun Feb 24, 2013 8:53 am
by Freek
That's a real showstopper...
Here someone describes that it should be possible:
https://secure.dslreports.com/forum/r24 ... v-encoding

In Linux:
/usr/bin/ffmpeg -threads 8 -y -i '/path/to/myth/recording.mpg' -s '960x540' -r 24 -vcodec libx264 -vpre normal -crf 30 -f flv -ac 2 -ar 44100 -ab '128k' -b '4096k'

For Windows I imagine it would be something like:
ffmpeg.exe -threads 8 -y -i '/path/to/myth/recording.mpg' -s '960x540' -r 24 -vcodec libx264 -vpre normal -crf 30 -f flv -ac 2 -ar 44100 -ab '128k' -b '4096k'

If this is not possible, are there any other ways to convert a 720p WEB-DL h264 .MKV file so that I can view it in the MediaBrowser's Webinterface in my webbrowser? For example convert it to another format instead? I don't mind installing extra plugins or something.
Being able to watch/stream my series into the webinterface of MediaBrowser is very important for me.

Please let me know.

Thanks.

PS. Sorry, I just see I posted this in the wrong subforum. Feel free to move it.

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Sun Feb 24, 2013 8:51 pm
by patters
The example you link to is encoding H.264 in a Flash container. It's not the same thing as the Flash video codec. The Flash video encoder within FFmpeg is not multithreaded. Serviio doesn't currently support encoding to H.264, and the FFmpeg that's bundled is not compiled with libx264 included.

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Mon Feb 25, 2013 1:35 pm
by Freek
patters wrote:The example you link to is encoding H.264 in a Flash container. It's not the same thing as the Flash video codec. The Flash video encoder within FFmpeg is not multithreaded. Serviio doesn't currently support encoding to H.264, and the FFmpeg that's bundled is not compiled with libx264 included.


Thanks for your reply with clarification.

Is it possible to convert encoding H.264 to other formats that are playable within the MediaBrowser's Webinterface (possibly with external addons/plugins?)
If not, would an FFMpeg version compiled with libx264 make a difference?

Thanks!

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Mon Feb 25, 2013 10:19 pm
by patters
If the original file is H.264 in mkv and you want to play it in the Media Browser try setting the quality to Original. That way the file is only remuxed, not transcoded. However, if you're trying to view content remotely while away from home, it's unlikely that your home internet connection will have enough upstream bandwidth to send the original quality stream. This is why the Flash encoder is used: Flash players like FlowPlayer don't support many formats, so Flash video is the next alternative (and computationally cheaper to encode than H.264).

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Tue Feb 26, 2013 12:28 pm
by Freek
patters wrote:If the original file is H.264 in mkv and you want to play it in the Media Browser try setting the quality to Original. That way the file is only remuxed, not transcoded. However, if you're trying to view content remotely while away from home, it's unlikely that your home internet connection will have enough upstream bandwidth to send the original quality stream. This is why the Flash encoder is used: Flash players like FlowPlayer don't support many formats, so Flash video is the next alternative (and computationally cheaper to encode than H.264).


Thanks for the reply.

I am indeed trying to view content remotely. Altough my upstream is capable of handling up to 100Mbit, as my MediaServer is located in a datacenter, my downstream is limited to 20Mbps.

Is it possible to use for example an embedded QuickTime or Windows Media Player player instead?

Thanks!

Re: Transcoding/FFMpeg to FLV only uses 1 core

PostPosted: Sat Mar 09, 2013 10:06 pm
by Freek
Bump. Any other method that can get my video files streaming/transcoding over WAN/Internet with external subs using more than 1 core is more than welcomed. Either using VLC, Quicktime you name it…
Thanks