Nvidia Jetson Nano, superfast Kodi device?
(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


Messages In This Thread
RE: Nvidia Jetson Nano, superfast Kodi device? - by AceSailor - 2021-09-14, 11:09
Logout Mark Read Team Forum Stats Members Help
Nvidia Jetson Nano, superfast Kodi device?0