Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup (/showthread.php?tid=327755) |
Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - uomiarz - 2018-01-29 So I am one of those who used Nvidia since forever and was under impression that I will get 4k support under Linux. Well it is working but not with VDPAU but CUVID. As I understand Kodi developers have good reasons not to use CUVID (or there is lack of working code to support it) and Intel is recommended as hardware platform. Guessing my next PC will be kaby lake but for now... To play 4k HEVC mkvs I have to use mpv as external player within KODI. This goes over whats needed as far as Nvidia drivers, Cuda and ffmpeg compilation. https://developer.nvidia.com/ffmpeg Once it is working you will need to compile mpv. Finally modify playercorefactory.xml so it fires mpv at certain file types. I only own one UHD BlueRay of Terminator 2 (classic so I downloaded behemoth mkv file of that movie and use it for test (accept widely available test files) I do not own 4k TV yet so have no idea if what I am seeing is good or not (picture quality , hdr) but at least it plays now I run Nvidia GT1030 with drivers version 387.34. Ubuntu 16.04 with KODI 17.6 RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - Slurp - 2018-02-12 Could you share you config for that? Also stuck with Nvidia, as it was cheaper the to replace the whole PC. RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - uomiarz - 2018-02-12 (2018-02-12, 17:49)Slurp Wrote: Could you share you config for that?Not sure what are you looking for when you say "config". First step is going to that link and follow instructions there to set correct drivers for Nvidia, Cuda and ffmpeg compilation. RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - Slurp - 2018-02-13 (2018-02-12, 18:42)uomiarz Wrote:The playercorefactory.xml config. I already got the mpv running correctly.(2018-02-12, 17:49)Slurp Wrote: ...Not sure what are you looking for when you say "config". But could not find a right way to target 10bit hevc with the playercorefactory.xml RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - uomiarz - 2018-02-25 Sorry man. I was out for a while. Look below. This will use mpv whenever you pick files that have UHD or 2160p in their names. You can do some reading on it and modify it. Pretty straight forward.
RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - vargacs - 2018-12-02 Hello, Here is my working configuration/install: 1. Install ffmpeg:
Code: ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
Code: make -j 10 2. Install mpv
Code: sudo add-apt-repository ppa:mc3man/mpv-tests
Code: sudo apt-get install mpv
Code: sudo apt-get remove --autoremove mpv 3. Use alternative player (mpv) in KODI if the file name contains the "UHD" or "2160p". (Put the "UHD" or "2160p" in the file name what you want to play in MPV.)
Code: nano /home/kodi/.kodi/userdata/playercorefactory.xml
4. If done, restart the mediacenter to apply the new playercorefactory config. 5. ENJOY the UHD movies on KODI UBUNTU with NVIDIA CARD RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - vargacs - 2019-03-09 UPDATE! With the Cuda 10.1 (upgrade) need some extra step to install ffmpeg:
Code: ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - Sea Monkey - 2019-10-20 (2018-12-02, 12:35)vargacs Wrote: Hello, Thank you so much! I did end up having to jump through a few additional hoops due to some driver conflicts, but I've FINALLY got HEVC files playing smoothly in Linux. For anyone attempting this, I recommend removing all traces of existing proprietary nvidia drivers beforehand. The exact steps to do this might vary from system to system, but I'll attempt some general guidance based on my own experience with Linux Mint 19.2. - Use Driver Manager to switch to open-source driver - reboot - Switch to console mode using CTRL+ SHIFT + F1 - login - sudo service lightdm stop - sudo nvidia-installer --uninstall - sudo apt remove nvidia-* - reboot Everything else should be covered sufficiently in the above steps and links above. As mentioned, I saw success with Linux Mint 19.2 and the most recent driver, which is 430.50 at the time of this post. It's also worth mentioning that I use the analog audio out from this PC, and when playing back HEVC using mpv, setting the audio delay to 100ms (CTRL + +) seems to help. RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - hieppo - 2021-03-03 @vargacs Thank you very much for you detail information. I am so glad that at least ffmpeg and mpv has now been updated with NVDEC/NVENC enabled. MPV can utilize NVIDA CUDA. The only issue with using MPV in KODI is that you are not able to utilise NFS defined by KODI. You have to map NFS locally where KODI is running. This would not be an issue if individual KODI repo is used for each instance. If mariaDB is used and shared among all the instances, the NFS path has to be a universe one and MPV can not play it. RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - Del369 - 2022-01-16 This just worked a treat in Ubuntu 20.04 although it wasn't plain sailing by a long shot, apart from: I went through Vargacs post After the FFMPEG install I couldn't for the life of it find the FFMPEG install directory, I was looking everywhere except ./home, if you can't find it after installing it try a reboot. Had to run the following: export PATH=/usr/local/cuda-11.6/bin${PATH:+:${PATH}} The VLC Git Repo has changed: git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git I had to install: sudo apt install nasm yasm I used: ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 This was not easy but it works, I could play HVEC files before but for some reason the Laptop fans would be getting ready for take off until the movie was stopped, now it works like a charm using mpv, no loud fans and great quality playback using mpv. Just posting this in case it's useful for anyone. RE: Nvidia 1030 (or higher) 4k HEVC - Ubuntu 16.04. Kodi (kind of) working setup - gap30 - 2022-03-16 Is there any way channels could be incorporated into this? I even tried changing the channel name to UHD obviously its not a file so does not have the .UHD or .2160 file extension This is for 422 'feeds' it is absolutely destroying my GT1030/G3258 setup it crashes after 30 seconds This was using arch which was a slightly different setup to the original post |