FAQ  •  Register  •  Login

Speeding up transcoding

<<

mhdi

Serviio newbie

Posts: 3

Joined: Fri Apr 25, 2014 9:26 am

Post Sat Nov 15, 2014 4:30 am

Speeding up transcoding

Hi,

I have serviio running on a Windows 8 machine (AMD Phenom 9850 Quad Core 2.5GHz + 4GB RAM + onboard graphics card). My renderer is a Panasonic ST60. Connected over ethernet with a TP-Link modem/router in between.

When trying to fast forward a video during playback the transcoder cannot keep up and the time becomes out of sync. Sometimes, the video stutters even at normal speed play back.

The test below shows ffmpeg transcoding at 30 to 50 FPS which I think is a little slow.

How can I speed up transcoding?

----------------------------
Test results

CPU while transcoding = 90+%


C:\Windows\system32>"C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe" -threads 4
-i E:\Downloads_Complete\Mad.Men.S01.Season.1.Complete.720p.BluRay.2CH.x264-PSA
\Mad.Men.S01E01.720p.BluRay.2CH.x264-PSA.mkv -y -threads 4 -c:v mpeg2video -pix_
fmt yuv420p -qscale:v 3 -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -m
ap 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-50784-viera2013-OR
IGINAL.stf
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from 'E:\Downloads_Complete\Mad.Men.S01.Season.1.Comple
te.720p.BluRay.2CH.x264-PSA\Mad.Men.S01E01.720p.BluRay.2CH.x264-PSA.mkv':
Metadata:
creation_time : 2014-06-03 19:22:58
Duration: 00:48:40.06, start: 0.000000, bitrate: 1652 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98
fps, 23.98 tbr, 1k tbn, 180k tbc (default)
Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
Metadata:
title : Stereo
Stream #0:2: Subtitle: subrip (default)
Output #0, mpegts, to 'C:\Windows\TEMP\Serviio\transcoding-temp-50784-viera2013-
ORIGINAL.stf':
Metadata:
encoder : Lavf55.9.100
Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31
, 200 kb/s, 90k tbn, 23.98 tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default)
Metadata:
title : Stereo
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
frame= 55 fps=0.0 q=3.0 size= 267kB time=00:00:02.81 bitrate= 777.6kbits/s
frame= 75 fps= 71 q=3.0 size= 1007kB time=00:00:03.48 bitrate=2368.8kbits/s
frame= 93 fps= 57 q=3.0 size= 1490kB time=00:00:04.15 bitrate=2938.7kbits/s
frame= 122 fps= 56 q=3.0 size= 2315kB time=00:00:05.30 bitrate=3574.8kbits/s
frame= 137 fps= 51 q=3.0 size= 2650kB time=00:00:06.01 bitrate=3611.3kbits/s
frame= 162 fps= 50 q=3.0 size= 3201kB time=00:00:07.19 bitrate=3644.9kbits/s
frame= 190 fps= 50 q=3.0 size= 4023kB time=00:00:08.21 bitrate=4010.6kbits/s
frame= 219 fps= 49 q=3.0 size= 5152kB time=00:00:09.65 bitrate=4370.1kbits/s
frame= 247 fps= 50 q=3.0 size= 6361kB time=00:00:10.68 bitrate=4877.9kbits/s
frame= 272 fps= 50 q=3.0 size= 6587kB time=00:00:11.70 bitrate=4609.7kbits/s
frame= 285 fps= 47 q=3.0 size= 6840kB time=00:00:12.41 bitrate=4514.8kbits/s
frame= 302 fps= 45 q=3.0 size= 7309kB time=00:00:12.95 bitrate=4622.0kbits/s
frame= 328 fps= 46 q=3.0 size= 8859kB time=00:00:13.97 bitrate=5191.8kbits/s
frame= 344 fps= 45 q=3.0 size= 9863kB time=00:00:14.65 bitrate=5515.2kbits/s
frame= 357 fps= 43 q=3.0 size= 10762kB time=00:00:15.09 bitrate=5839.4kbits/s
frame= 372 fps= 42 q=3.0 size= 11674kB time=00:00:15.73 bitrate=6076.2kbits/s
frame= 385 fps= 41 q=3.0 size= 12453kB time=00:00:16.40 bitrate=6216.6kbits/s
frame= 407 fps= 41 q=3.0 size= 13717kB time=00:00:17.17 bitrate=6541.6kbits/s
frame= 434 fps= 42 q=3.0 size= 15671kB time=00:00:18.55 bitrate=6918.8kbits/s
frame= 451 fps= 41 q=3.0 size= 17069kB time=00:00:18.97 bitrate=7370.8kbits/s
frame= 477 fps= 42 q=3.0 size= 18795kB time=00:00:20.34 bitrate=7567.2kbits/s
frame= 490 fps= 41 q=3.0 size= 19499kB time=00:00:20.66 bitrate=7729.2kbits/s
frame= 512 fps= 41 q=3.0 size= 20742kB time=00:00:21.56 bitrate=7880.5kbits/s
frame= 536 fps= 41 q=3.0 size= 22266kB time=00:00:22.58 bitrate=8076.2kbits/s
frame= 560 fps= 41 q=3.0 size= 23268kB time=00:00:23.57 bitrate=8084.4kbits/s
frame= 576 fps= 41 q=3.0 size= 24066kB time=00:00:24.34 bitrate=8098.0kbits/s
frame= 583 fps= 40 q=3.0 size= 24432kB time=00:00:24.69 bitrate=8103.7kbits/s
frame= 598 fps= 40 q=3.0 size= 25250kB time=00:00:25.11 bitrate=8236.3kbits/s
frame= 613 fps= 39 q=3.0 size= 26450kB time=00:00:25.78 bitrate=8402.8kbits/s
frame= 629 fps= 39 q=3.0 size= 27625kB time=00:00:26.49 bitrate=8542.7kbits/s
frame= 634 fps= 38 q=3.0 size= 27936kB time=00:00:26.81 bitrate=8536.1kbits/s
frame= 656 fps= 38 q=3.0 size= 29451kB time=00:00:27.51 bitrate=8768.6kbits/s
frame= 680 fps= 38 q=3.0 size= 29983kB time=00:00:28.85 bitrate=8511.3kbits/s
frame= 695 fps= 38 q=3.0 size= 30191kB time=00:00:29.11 bitrate=8495.2kbits/s
frame= 713 fps= 37 q=3.0 size= 30485kB time=00:00:30.13 bitrate=8286.3kbits/s
frame= 737 fps= 38 q=3.0 size= 30983kB time=00:00:31.16 bitrate=8144.9kbits/s
frame= 754 fps= 37 q=3.0 size= 31360kB time=00:00:31.86 bitrate=8061.8kbits/s
frame= 763 fps= 37 q=3.0 size= 31569kB time=00:00:32.18 bitrate=8035.0kbits/s
frame= 785 fps= 37 q=3.0 size= 32032kB time=00:00:33.21 bitrate=7901.3kbits/s
frame= 823 fps= 38 q=3.0 size= 32955kB time=00:00:34.74 bitrate=7769.7kbits/s
frame= 831 fps= 37 q=3.0 size= 33044kB time=00:00:35.09 bitrate=7712.5kbits/s
frame= 847 fps= 37 q=3.0 size= 33398kB time=00:00:35.48 bitrate=7710.8kbits/s
frame= 848 fps= 37 q=3.0 Lsize= 33529kB time=00:00:35.83 bitrate=7664.9kbits/
s dup=3 drop=0
video:29190kB audio:1680kB subtitle:0 global headers:0kB muxing overhead 8.61303
0%


Thankyou
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Nov 15, 2014 4:53 am

Re: Speeding up transcoding

You need a faster cpu for that type of transcode to run faster(h264->mpeg2). Only reason I can see for the transcode is that the h264 > 4.1. Perhaps that is false and you can change it so the h264 will play natively.
<<

mhdi

Serviio newbie

Posts: 3

Joined: Fri Apr 25, 2014 9:26 am

Post Sat Nov 15, 2014 5:00 am

Re: Speeding up transcoding

What type/speed of processor will handle this?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Nov 15, 2014 2:37 pm

Re: Speeding up transcoding

This link will show you system chips up to 3 times faster.
http://www.cpubenchmark.net/cpu.php?cpu ... +Quad-Core
<<

NX3

DLNA master

Posts: 578

Joined: Fri Jan 28, 2011 12:39 pm

Post Sun Nov 16, 2014 8:33 am

Re: Speeding up transcoding

You'd be wiser to spend your money on a media player that play native and doesn't need files transcoding
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Nov 16, 2014 7:18 pm

Re: Speeding up transcoding

According to his profile the file will play natively unless it is level > 4.1 . I would bet his file is set to the wrong level which I suggested he check because I assume a media player will have the same problem.

There must also be more to the equation because my i7 Q720 has the same rating as his but the same command transcodes at 140fps for me vs 40 for him.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 24 guests

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