• 1
  • 7
  • 8
  • 9
  • 10(current)
  • 11
Nvidia Jetson Nano, superfast Kodi device?
(2021-09-07, 10:54)MicTie Wrote: Thanks for the update!
I saw you have rebased Kodi to V19.1.

Too bad the artifacts when playing H264 and H265 movies seem unchanged.
Not sure if the attached log is helpful:

...

I will try some more test tomorrow .....

 If you can upload small video with artifacts, it would be helpful. I did my testing, and can't reproduce it on my device.
Reply
Here are 2 short videos showing the artefacts. One from a H264  and the other from a H265 video.
I do not see any changes compared to the versions you posted earlier.

Here is my compile commands (in case something is wrong/missing):
 git clone https://github.com/aliubimov/xbmc.git -b feature/tegra-support
 mkdir xbmc/build
 cd xbmc/build
 cmake -G "Ninja" .. -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gles -DENABLE_INTERNAL_FFMPEG=ON -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FMT=ON -DENABLE_V4L2=ON -DENABLE_NVBUFFER=ON -DENABLE_INTERNAL_SPDLOG=ON -DENABLE_VAAPI=OFF -DCMAKE_INSTALL_PREFIX=/kodi
 ninja
 sudo ninja install 


Pls let me know how I can help to resolve these issues.
Thanks!
Reply
(2021-09-08, 11:18)MicTie Wrote: Here are 2 short videos showing the artefacts. One from a H264  and the other from a H265 video.
I do not see any changes compared to the versions you posted earlier.

Here is my compile commands (in case something is wrong/missing):
 git clone https://github.com/aliubimov/xbmc.git -b feature/tegra-support
 mkdir xbmc/build
 cd xbmc/build
 cmake -G "Ninja" .. -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gles -DENABLE_INTERNAL_FFMPEG=ON -DENABLE_INTERNAL_FLATBUFFERS=ON -DENABLE_INTERNAL_FMT=ON -DENABLE_V4L2=ON -DENABLE_NVBUFFER=ON -DENABLE_INTERNAL_SPDLOG=ON -DENABLE_VAAPI=OFF -DCMAKE_INSTALL_PREFIX=/kodi
 ninja
 sudo ninja install 


Pls let me know how I can help to resolve these issues.
Thanks!
Are you playing a movie from the sd card or network when you get these artifacts? Are you on the latest JetPack?
Using the latest docker image I can stream an 80Mbit H265 file with no problems when hard wired on Ethernet on a Jetson Nano 4GB.

@hashtag 
I had to modify insert /etc/asound.conf into the docker image in order for the sound to output properly over HDMI (ie -v /etc/asound.conf:/etc/asound.conf:ro)

Any chance the docker image could be modified to not run Kodi as root?
i.e. in the Dockerfile
RUN useradd --system --create-home --home-dir /home/kodi --shell /bin/nologin --groups video,audio kodi
...
USER kodi
ENTRYPOINT /kodi/bin/kodi

Then you could run the docker with:
docker run --rm -t \
--net=host \
--runtime nvidia \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v /usr/share/zoneinfo:/usr/share/zoneinfo:ro \
-v /etc/asound.conf:/etc/asound.conf:ro \
--device /dev/snd \
--device /dev/nvhost-nvdec \
-v $HOME/.kodi:/home/kodi/.kodi \
aliubimov/kodi-tegra:latest

In addition rather than xhost +, use something like xhost +SI:localuser:root which would be more secure.

My setup:
Jetson Nano 4GB
JetPack 4.6 L4T 32.6.1
QEMU VM (Alpine Linux aarch64 v3.14 with lirc) (Needed as the copy of the mceusb kernel driver in the 4.9 kernel has bugs which have been fixed in later kernels, or I would need to backport the changes to the 4.9 kernel)
Docker image aliubimov/kodi-tegra:latest
lirc which points to the daemon in the VM
irxevent - translate lirc events to X keyboard inputs (as Kodi in the docker image isn't compiled with lirc support)

I cross compiled the kernel to build in KVM acceleration however I get PMU errors when running qemu, so right now the VM runs without acceleration - not a big deal as its just running lirc. I think I need to patch qemu itself and compile that for it to work. Right now everything is working, so will probably put that on hold. Once CEC support is working I can do away with lirc.

H264 and H265 videos work fine, other codecs like VC1 and Xvid do not play, assume it isn't falling back to software decoding.
Log from an Xvid attempt
https://paste.kodi.tv/ewecaluqex.kodi
Reply
(2021-09-14, 11:09)AceSailor Wrote:
(2021-09-08, 11:18)MicTie Wrote:  
Are you playing a movie from the sd card or network when you get these artifacts? Are you on the latest JetPack?
Using the latest docker image I can stream an 80Mbit H265 file with no problems when hard wired on Ethernet on a Jetson Nano 4GB.
 

The movies are either on a directly connected USB-HDD or on a LAN-connected NAS. Both show the same issues.
My Nano is running Ubuntu 20.04.3 LTS (GNU/Linux 4.9.201-tegra aarch64) from USB, JetPack 4.5.1 (LAT 32.5.1) is installed.

I am running 2 different Kodi-installations alternatively:
   1) currently for testing: the one provided by  https://github.com/aliubimov/xbmc.git   and 
   2) for daily use: a installation w/o using the GPU. Here I see no issues with H264 movies, but some stuttering with H265 movies together with 100% CPU-load
Based on this, I assume my problems are not caused by data-access.

Maybe I'll find some time to update my Nano to the most recent JetPack

Thanks!
Reply
(2021-09-07, 16:11)hashtag Wrote:
(2021-09-07, 10:54)MicTie Wrote:  

 If you can upload small video with artifacts, it would be helpful. I did my testing, and can't reproduce it on my device.
After a complete new installation with Ubuntu 18.04 and the most recent Jetpack4.6 I am able to narrow down the artifacts issue.
Changing the Player Settings to Videos -> Playback -> Adjust display refresh rate -> Off: no artifacts in most videos, some artifacts in streamed videos (eg YouTube ...). 
All other (Always, On start/stop, On start) show strong artifacts.

I am happy to have a working setup
Thanks
Reply
Whats the status on this device? I still have this thing sitting around and would love to put it to good use and recycle my rpi for server duties. 

Do recent kodi builds work with hardware acceleration?
Reply
Resurrecting this ancient thread.

I now have the Jetson Nano playing my 4k Movies just fine.

https://youtu.be/6HQmJ_JsTp0

I had to install lineageOS and then I just installed kodi through the play store. Seems to be able to play everything the Nvidia Shield can play. So if you have one and need another kodi device it works fine now.
Reply
(2022-12-19, 01:18)calev Wrote: Resurrecting this ancient thread.

I now have the Jetson Nano playing my 4k Movies just fine.

https://youtu.be/6HQmJ_JsTp0

I had to install lineageOS and then I just installed kodi through the play store. Seems to be able to play everything the Nvidia Shield can play. So if you have one and need another kodi device it works fine now.

Does it handle HDR10 and HLG OK?
Reply
(2022-12-19, 14:31)noggin Wrote: Does it handle HDR10 and HLG OK?

The YT video guy says something about that here : https://www.youtube.com/watch?v=6HQmJ_JsTp0&t=432s
If all of HDR is supported IDK.
Reply
Should be pretty similar to the nvidia shield in playback ability. tbh I get uhd and hdr confused in the video. If you want to send me a sample I can test it and report back.
Reply
(2022-12-19, 15:41)calev Wrote: Should be pretty similar to the nvidia shield in playback ability. tbh I get uhd and hdr confused in the video. If you want to send me a sample I can test it and report back.

No worries - I've got a Nano, I'll probably give it a go myself and report back if I do.

What's the easiest way of installing to a Nano?  *** No worries - watching the video that has instructions! ***
Reply
The tricky parts is getting it in recovery by jumping these two cables and running the flash.sh script. If the pins are connected like the picture i'm attaching though it boots right up to recovery. And you got to remember to flash gaaps, version 18.1 android tv or you won't be able to install any apks. Of course you'll need a linux machine and adb.

Image
Reply
(2022-12-20, 18:44)calev Wrote: The tricky parts is getting it in recovery by jumping these two cables and running the flash.sh script. If the pins are connected like the picture i'm attaching though it boots right up to recovery. And you got to remember to flash gaaps, version 18.1 android tv or you won't be able to install any apks. Of course you'll need a linux machine and adb.

Image

Thanks - my plan is to use a Pi 4B or Pi 400 to do the initial set-up - that should work fine shouldn't it?

** EDIT - aah - looks like the Google Linux adb and fastboot download zip is for Intel not Arm 32 or 64 bit... **
Reply
Yeah, you need to run Nvidia and google binaries that are already compiled so you'll need a real amd_64 computer running linux. I think I read it won't work well in a virtual machine either. Has problems communicating over usb through the vm.
Reply
Hi, Newbie here who joined the kodi forum because I have a NVIDIA Jetson TX2 sitting around that I would like to use as a Kodi box instead of buying new hardware.
I mainly use Kodi for streaming live tv - some 4k channels via IPTV Simple client add on.
From what I have read above, it seems like the TX2 is same/similar to the NVIDIA shield.

What is best recommended installation method ?

Docker image: https://hub.docker.com/r/aliubimov/kodi-tegra

Build from source: https://github.com/aliubimov/xbmc/tree/f...ra-support

Install via apt repo on Ubuntu 20.04 using the image: https://forums.developer.nvidia.com/t/xu...ano/121768

Will I get 4K hardware decoding? HDR?

I have read Dolby Atmos True HD audio passthough works on this device too

Thanks
Reply
  • 1
  • 7
  • 8
  • 9
  • 10(current)
  • 11

Logout Mark Read Team Forum Stats Members Help
Nvidia Jetson Nano, superfast Kodi device?0