Jump to content

4k HEVC 10-bit playback/trasncoding help


robawarner

Recommended Posts

Yes quick sync is failing and therefore we are automatically switching to CPU transcoding.

 

We've adjusted our command line params in he beta server so you could try that if you like. Thanks.

Link to comment
Share on other sites

Thanks for the replies guys!

 

I tried the latest beta 3.2.70.16 and found a newer version of the graphics drivers ( released by intel about a week ago) and the performance improved slightly. However it is still not what I think it should be.

 

Testing with one of the more demanding files - a 60fps 4k h265 10 bit 50Mbs clip ( http://4kmedia.org/samsung-travel-with-my-pet-hdr-uhd-4k-demo/ ), I am getting the following results when playing from the web player:

 

various transcoding settins:

 

1) HW: QuickSync  -  HEVC Decoding: NO  -  Encoding: NO

 
    CPU 70%, GPU 0%, FPS 64
 
2) HW: QuickSync  -  HEVC Decoding: YES  -  Encoding: NO
 
   CPU  30%, GPU 60%, FPS 53
 
3) HW: QuickSync  -  HEVC Decoding: NO  -  Encoding: YES
   
    CPU  65-70%, GPU 0%, FPS 63
 
4) HW: QuickSync  -  HEVC Decoding: YES  -  Encoding: YES
   
   CPU  65-70% , GPU 0%, FPS 63
 
5) HW: NONE
 
    CPU  65-70%, GPU 0%,  FPS 63
 
So, it turns out that the worse transcoding performance was actually the one where it used the GPU
 
As for the ffmpeg command line in the other thread, I'm getting errors when running that against the ffmpeg build bundled with emby. Here's the output as text (also as attached screen shot):
 
D:\Kits\Media Servers\portable - embyserver-win-x64-3.2.70.16 -beta\system>ffmpeg -y -c:v hevc_qsv -load_plugin hevc_hw -i lg.ts -an -c:v h264_qsv out.mp4
ffmpeg version git-2017-12-31-2906363 Copyright © 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58.  9.100 / 58.  9.100
  libavformat    58.  3.100 / 58.  3.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  8.100 /  7.  8.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[mpegts @ 000001e7e576a140] start time for stream 1 is not set in estimate_timings_from_pts
[mpegts @ 000001e7e576a140] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'lg.ts':
  Duration: 00:01:12.24, start: 0.999989, bitrate: 52032 kb/s
  Program 1
    Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [sAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x102](und): Audio: aac ([15][0][0][0] / 0x000F), 0 channels
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (hevc_qsv) -> h264 (h264_qsv))
Press [q] to stop, [?] for help
[NULL @ 000001e7e5769480] missing picture in access unit
    Last message repeated 4 times
[h264_qsv @ 000001e7e80c0500] Selected ratecontrol mode is not supported by the QSV runtime. Choose a different mode.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

 

Any ideas on what could be wrong?!

post-286808-0-83946000-1519156934_thumb.png

Link to comment
Share on other sites

  • 1 month later...

The next release of Emby Server for Linux x64 will include NVENC support out of the box so all you need to do is enable it. 

 

Nvidia Cuda and OpenCL drivers will need to be installed first. These cannot be freely distributed by us so you will need to refer to your respective distro to learn how to install them.

 

Thanks !

Link to comment
Share on other sites

  • 3 months later...
vick1982

I run a G4600 under Ubuntu 16.04 with emby and vaapi hw-transcoding. It runs really well. It handles up to 4 simultaneous hevc 10bit 50Mbps movies transcoded to 5mpbs h264. It's probably the cheapest and most future proof media server you can build and also having a really low power consumption. The CPU and a board will probably cost you about 130€ and thats it.

what hard drive are you using ?  does this cheap cpu have any disadvantages for using as a media server 

Link to comment
Share on other sites

Gerrit507

what hard drive are you using ?  does this cheap cpu have any disadvantages for using as a media server

 

What kind of disadvantages should it have? It's obviously not thr fastest CPU but because it has the HD630 it's as good as any other Intel CPU in hardware transcoding.

 

I use multiple hard drives in RAID5. When we're talking in dimensions of probably four simultaneous streams it doesn't matter at all what hard drive you have... Use a SSD as the system drive if you can but even this isn't really necessary.

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

Yeah, well. I have i3-7130u with 4k decoding support for hdr 10 and main10, using VLC media player. However, when I try to use Plex it doesn't work without stuttering and buffering, even on a 4k hdr10 capable Tv from Panasonic. And when I use Emby for 4k transcoding to 1080p Samsung tv, it doesn't work. If I use kodi on local pc it does work. Why? It is kaby lake cpu 2018!!!

Link to comment
Share on other sites

Yeah, well. I have i3-7130u with 4k decoding support for hdr 10 and main10, using VLC media player. However, when I try to use Plex it doesn't work without stuttering and buffering, even on a 4k hdr10 capable Tv from Panasonic. And when I use Emby for 4k transcoding to 1080p Samsung tv, it doesn't work. If I use kodi on local pc it does work. Why? It is kaby lake cpu 2018!!!

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. thanks !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...