FAQ  •  Register  •  Login

Transcoding/FFMpeg to FLV only uses 1 core

<<

Freek

Serviio newbie

Posts: 7

Joined: Thu Feb 21, 2013 6:43 pm

Post Sat Feb 23, 2013 10:26 pm

Transcoding/FFMpeg to FLV only uses 1 core

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!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Feb 23, 2013 10:35 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

IIRC you cannot as that particular encoder is limited to 1 core (same as the WMV encoder)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Freek

Serviio newbie

Posts: 7

Joined: Thu Feb 21, 2013 6:43 pm

Post Sun Feb 24, 2013 8:53 am

Re: Transcoding/FFMpeg to FLV only uses 1 core

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

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Sun Feb 24, 2013 8:51 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

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.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

Freek

Serviio newbie

Posts: 7

Joined: Thu Feb 21, 2013 6:43 pm

Post Mon Feb 25, 2013 1:35 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

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!
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Mon Feb 25, 2013 10:19 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

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).
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

Freek

Serviio newbie

Posts: 7

Joined: Thu Feb 21, 2013 6:43 pm

Post Tue Feb 26, 2013 12:28 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

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!
<<

Freek

Serviio newbie

Posts: 7

Joined: Thu Feb 21, 2013 6:43 pm

Post Sat Mar 09, 2013 10:06 pm

Re: Transcoding/FFMpeg to FLV only uses 1 core

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

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 27 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.