Kodi Community Forum

Full Version: Is it this simple to playback hevc 4k 10bit files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

After reading several posts about limited hevc 4k 10bit support for Linux systems I've been playing around to see if I can get hardware accelerated playback for hevc 4k 10bit by compiling ffmpeg with Nvidia NVDECODE support. After I configured an externalplayer with the file below I see some improvements and playback seems to be hardware accelerated (with this the cpu load comes down from 2.0-2-4 to 0.8-1.0)
 
Code:
<playercorefactory>
<players>
<player name="TestPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/home/drempel/bin/ffplay</filename>
<args>-vcodec hevc_cuvid "{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule name="local-videos" audio="false" video="true" internetstream="false" filetypes=".*" player="TestPlayer" />
</rules>
</playercorefactory>
I'm wondering: Isnt it as simple as to use a compiled ffmpeg version, during the official kodi-build, with a ffmpeg version that include nvidia support?

Info: 
https://developer.nvidia.com/ffmpeg
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
https://gist.github.com/Brainiarc7/3f7695ac2a0905b05c5b
(2018-10-12, 02:35)Drempel Wrote: [ -> ]Hi all,

After reading several posts about limited hevc 4k 10bit support for Linux systems I've been playing around to see if I can get hardware accelerated playback for hevc 4k 10bit by compiling ffmpeg with Nvidia NVDECODE support. After I configured an externalplayer with the file below I see some improvements and playback seems to be hardware accelerated (with this the cpu load comes down from 2.0-2-4 to 0.8-1.0)
 
Code:
<playercorefactory>
<players>
<player name="TestPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/home/drempel/bin/ffplay</filename>
<args>-vcodec hevc_cuvid "{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule name="local-videos" audio="false" video="true" internetstream="false" filetypes=".*" player="TestPlayer" />
</rules>
</playercorefactory>
I'm wondering: Isnt it as simple as to use a compiled ffmpeg version, during the official kodi-build, with a ffmpeg version that include nvidia support?

Info: 
https://developer.nvidia.com/ffmpeghttps://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntuhttps://gist.github.com/Brainiarc7/3f7695ac2a0905b05c5b
 If you do that won't you be bypassing stuff like video refresh rate switching, HD Audio bitstreaming and Kodi controlling audio track and subtitle switching etc. (or does ffplay integrate that?)  I thought that for most of that stuff you needed to be using Kodi's internal player?