• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11
Nvidia Jetson Nano, superfast Kodi device?
Hey guys, 
I've just tried the latest docker image.
The video playback is abit choppy sometimes ( artifacts, not lost frames ).
Also, the video is always stretched (full screen). Changing the zoom options (4:3, etc.. ) doesn't do anything.
Has anyone noticed these issues? ( Jetson Nano )
Reply
(2021-01-28, 14:25)jaj2020 Wrote: Hey guys, 
I've just tried the latest docker image.
The video playback is abit choppy sometimes ( artifacts, not lost frames ).
Also, the video is always stretched (full screen). Changing the zoom options (4:3, etc.. ) doesn't do anything.
Has anyone noticed these issues? ( Jetson Nano )

Do you have video sample that cause artifacts ? I am hunting this issue for a while.
Zooming feature (4:3) was cut off for a while now (along with tonemap, HDR support and scaling), working on getting it back.
Reply
Sure thing. I'll hunt down a sample and upload it ASAP.
Also, seeking doesn't work well. It freezes most of the times (retrying the seek with a new time-value a few times seems to work).
Thank you for your work.

Edit: Just note that i'm using a Nano in 5W mode ( since I don't have a good enough power supply ).
CPU usage seems to be aroung 50% for both processors. No dropped frames.
Reply
(2021-01-28, 16:15)jaj2020 Wrote: Sure thing. I'll hunt down a sample and upload it ASAP.
Also, seeking doesn't work well. It freezes most of the times (retrying the seek with a new time-value a few times seems to work).
Thank you for your work.

Edit: Just note that i'm using a Nano in 5W mode ( since I don't have a good enough power supply ).
CPU usage seems to be aroung 50% for both processors. No dropped frames.

Seeking is on my list too. Here is bug report.
I suspect, that artifacts show up because of frame ordering, not a frame drop as decoder is quite powerful.
Reply
So I must be doing something wrong here, I can compile fine but when launching kodi-x11 i'm getting the error "Unable to create gui"

Steps Taken to compile:
  1. git clone --branch features/tegra-support https://github.com/aliubimov/xbmc.git
  2. mkdir xbmc-build
  3. cd xbmc-build
  4. cmake -G "Ninja" /build/xbmc -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
  5. ninja
  6. ./kodi-x11
Reply
(2021-02-03, 20:23)MobiSlick Wrote: So I must be doing something wrong here, I can compile fine but when launching kodi-x11 i'm getting the error "Unable to create gui"

Steps Taken to compile:
  1. git clone --branch features/tegra-support https://github.com/aliubimov/xbmc.git
  2. mkdir xbmc-build
  3. cd xbmc-build
  4. cmake -G "Ninja" /build/xbmc -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
  5. ninja
  6. ./kodi-x11

Sorry, cant find out how to edit a post. I got it working by using the command 'xhost +' followed by running as sudo. if I dont run as sudo it just locks up at the splash screen.

On another note, anyone know where I would begin adding libretro support to this?
Reply
(2020-12-29, 22:47)MM31 Wrote: Can someone confirm if it is possible to passthrough HDR10 video using the Jetson Nano and KODI on Linux?

Thanks in advance.
I'd love to know the answer to that as well. Did you ever come across a solid answer?
Reply
I am using https://github.com/aliubimov/xbmc (release 27.01.2021) on my Nano running Ubuntu20.04 from here, and in general it's working fine.

The only strange problem I am facing is that some videos from my handphone stutter and video and sound is not synchronized during playback.
These video clips are typically MP4, 1920x1080, 30Fps and H264 or H265. 
Movies on the same Disk with the same MP4, 1920x1080, 30Fps and H264 or H265 run smoothly.

JTOP shows the 4 CPUs at app 95% @ 1.5MHz, the GPU  at 50% @ 250-300MHz, all HW-Engines OFF, and also no CUDA. JetPack 4.3 (L4T 32.3.1) installed - so I assume I am using pure SW for decoding.
The cmake command I used was: 
Code:
 cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl

When I compile with these commands a few posts up: (just using cmake instead of ninja):
Code:
cmake ../kodi -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=/usr/local    and
cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
kodi starts, but I cannot play any movies/videos.
The log shows:   ERROR <general>: CNVV4LBuffer::Map failed to mmap buffer id:0 fd:1828717675 offset:0 : Bad file descriptor


As I am not really familiar with cmake, can someone please tell me what is the right cmake commands for me.

Thanks
Reply
(2021-03-01, 12:09)MicTie Wrote: I am using https://github.com/aliubimov/xbmc (release 27.01.2021) on my Nano running Ubuntu20.04 from here, and in general it's working fine.

The only strange problem I am facing is that some videos from my handphone stutter and video and sound is not synchronized during playback.
These video clips are typically MP4, 1920x1080, 30Fps and H264 or H265. 
Movies on the same Disk with the same MP4, 1920x1080, 30Fps and H264 or H265 run smoothly.

JTOP shows the 4 CPUs at app 95% @ 1.5MHz, the GPU  at 50% @ 250-300MHz, all HW-Engines OFF, and also no CUDA. JetPack 4.3 (L4T 32.3.1) installed - so I assume I am using pure SW for decoding.
The cmake command I used was: 
Code:
 cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl

When I compile with these commands a few posts up: (just using cmake instead of ninja):
Code:
cmake ../kodi -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=/usr/local    and
cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
kodi starts, but I cannot play any movies/videos.
The log shows:   ERROR <general>: CNVV4LBuffer::Map failed to mmap buffer id:0 fd:1828717675 offset:0 : Bad file descriptor


As I am not really familiar with cmake, can someone please tell me what is the right cmake commands for me.

Thanks
To get HW acceleration in Kodi, you certainly have to include
Code:
-DENABLE_V4L2=ON -DENABLE_NVBUFFER=ON -DAPP_RENDER_SYSTEM=gles
in a build settings. 

I am not sure if non standard Linux build will have work properly. NVidia have done a lot of Kernel customizations. Please, try to compile sample code from JetPack and check it you getting video played. Also please attach
Code:
dmesg
output, it might have some clues, why mmap failed.
Reply
(2021-02-24, 05:33)teriyaki Wrote:
(2020-12-29, 22:47)MM31 Wrote: Can someone confirm if it is possible to passthrough HDR10 video using the Jetson Nano and KODI on Linux?

Thanks in advance.
I'd love to know the answer to that as well. Did you ever come across a solid answer?

Not with a current build. HDR10 is on my todo list.
Reply
(2021-03-15, 06:33)hashtag Wrote:
(2021-03-01, 12:09)MicTie Wrote:  
To get HW acceleration in Kodi, you certainly have to include
Code:
-DENABLE_V4L2=ON -DENABLE_NVBUFFER=ON -DAPP_RENDER_SYSTEM=gles
in a build settings. 

I am not sure if non standard Linux build will have work properly. NVidia have done a lot of Kernel customizations. Please, try to compile sample code from JetPack and check it you getting video played. Also please attach
Code:
dmesg
output, it might have some clues, why mmap failed.
Thanks for your reply!
I recompiled Kodi exactly with the code given at Github
:
# 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
the result stays the same: Kodi starts normally, but I cannot play any movies/videos.
The behavior seems identical to this post. although I don't the same error messages.
My kodi.log shows:   ERROR <general>: CNVV4LBuffer::Map failed to mmap buffer id:0 fd:1828717675 offset:0 : Bad file descriptor

The dmesg output is here, and kodi.log is here

If I compile Kodi with
:
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl
videos play fine but without HW-acceleration.


Thanks for your help!
Reply
(2021-03-15, 14:25)MicTie Wrote:  
I recompiled Kodi exactly with the code given at Github

:
# 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
the result stays the same: Kodi starts normally, but I cannot play any movies/videos.
The behavior seems identical to this post. although I don't the same error messages.
My kodi.log shows:   ERROR <general>: CNVV4LBuffer::Map failed to mmap buffer id:0 fd:1828717675 offset:0 : Bad file descriptor

The dmesg output is here, and kodi.log is here

If I compile Kodi with
:
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl
videos play fine but without HW-acceleration.


Thanks for your help!

Looks like issue here with JetPack, try to compile samples NVidia have in multimedia package and play test video file.  Reference this for more details
Reply
(2021-03-15, 14:45)hashtag Wrote:
(2021-03-15, 14:25)MicTie Wrote:  
Looks like issue here with JetPack, try to compile samples NVidia have in multimedia package and play test video file.  Reference this for more details
Thanks!
As some Nvidia libraries seem missing from my Ubuntu-build, I decided to start from scratch - i.e. a new SD-card image with Jetpack 4.5.1.
Kodi was build based on the instructions found on Github.

1) Issues encountered with old Kodi 19 RC (uploaded Jan26):
  • Videos with 450p (SD) don't play (tried some .avi and .mp4)
  • Videos in Portrait-mode are displayed in Landscape-mode. Rotation during playing is not working

2) Issues encountered with new Kodi 20 alpha (uploaded Mar17):
  • Videos with 450p (SD) don't play (tried some .avi and .mp4)
  • Videos in Portrait-mode are displayed in Landscape-mode. Rotation during playing is not working
  • (Video)Plugins are not working / are not found
    Code:
    ERROR <general>: Control 55 in window 10025 has been asked to focus, but it can't
    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.nhklive/
    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhklive/) failed

I hope that the move to Kodi 20 Alpha, does not bring a lot new bugs and make the build more or less unusable ...

Will upload some logs on the 450p and Portrait-mode issue, when I find some more time to test

Thanks
Reply
(2021-03-18, 07:07)MicTie Wrote:
(2021-03-15, 14:45)hashtag Wrote:
(2021-03-15, 14:25)MicTie Wrote:  
Looks like issue here with JetPack, try to compile samples NVidia have in multimedia package and play test video file.  Reference this for more details
Thanks!
As some Nvidia libraries seem missing from my Ubuntu-build, I decided to start from scratch - i.e. a new SD-card image with Jetpack 4.5.1.
Kodi was build based on the instructions found on Github.

1) Issues encountered with old Kodi 19 RC (uploaded Jan26):
  • Videos with 450p (SD) don't play (tried some .avi and .mp4)
  • Videos in Portrait-mode are displayed in Landscape-mode. Rotation during playing is not working

2) Issues encountered with new Kodi 20 alpha (uploaded Mar17):
  • Videos with 450p (SD) don't play (tried some .avi and .mp4)
  • Videos in Portrait-mode are displayed in Landscape-mode. Rotation during playing is not working
  • (Video)Plugins are not working / are not found
    Code:
    ERROR <general>: Control 55 in window 10025 has been asked to focus, but it can't
    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.nhklive/
    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nhklive/) failed

I hope that the move to Kodi 20 Alpha, does not bring a lot new bugs and make the build more or less unusable ...

Will upload some logs on the 450p and Portrait-mode issue, when I find some more time to test

Thanks

Where is the 450p video coming from - that's a really odd resolution.  The SD resolutions you usually see are 480i/p, 576i/p and 540p. (540p is often 16:9 1080p content that has had its horizontal and vertical resolution halved, or 4:3 720x480/576 that has been rescaled vertically to square pixels as 720x540, rather than horizontally to 640x480 or 768x576)

 You also get some 360p and 432p where letterboxed SD stuff has been cropped.
Reply
(2021-03-18, 10:53)noggin Wrote:
(2021-03-18, 07:07)MicTie Wrote:
(2021-03-15, 14:45)hashtag Wrote:  
Where is the 450p video coming from - that's a really odd resolution.  The SD resolutions you usually see are 480i/p, 576i/p and 540p. (540p is often 16:9 1080p content that has had its horizontal and vertical resolution halved, or 4:3 720x480/576 that has been rescaled vertically to square pixels as 720x540, rather than horizontally to 640x480 or 768x576)

 You also get some 360p and 432p where letterboxed SD stuff has been cropped.
Kodi calls it '450p' ...
Eg. an .avi-file with a resolution of 576x432, you can download from here (Dropbox)

Here is a part the log for this file:
Code:

2021-03-18 12:09:07.929 T:7549     INFO <general>: VideoPlayer::OpenFile: /mnt/dns327/TEMP/AC3 Dolby digital 5.1ch Sound Test.avi
2021-03-18 12:09:07.934 T:8257     INFO <general>: Creating InputStream
2021-03-18 12:09:07.946 T:8257     INFO <general>: Creating Demuxer
2021-03-18 12:09:07.999 T:8257     INFO <general>: Opening stream: 0 source: 256
2021-03-18 12:09:07.999 T:8257     INFO <general>: [WHITELIST] Searching the whitelist for: width: 576, height: 432, fps: 29.970, 3D: false
2021-03-18 12:09:08.000 T:8257     INFO <general>: Display resolution ADJUST : HDMI-0: 1920x1080 @ 59.95Hz (18) (weight: 0.000)
2021-03-18 12:09:08.048 T:7549     INFO <general>: CWinSystemX11::SetFullScreen - calling xrandr
2021-03-18 12:09:08.048 T:7549     INFO <general>: VideoPlayer: OnLostDisplay received
2021-03-18 12:09:08.048 T:7549  WARNING <general>: CDVDMessageQueue(video):Tongueut MSGQ_NOT_INITIALIZED
2021-03-18 12:09:08.050 T:7549     INFO <general>: XRANDR: /home/michael/xbmc/build/kodi-xrandr --screen 0 --output HDMI-0 --mode 0x18e
2021-03-18 12:09:08.203 T:7556  WARNING <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
2021-03-18 12:09:08.204 T:7556     INFO <general>: Found 1 Lists of Devices
2021-03-18 12:09:08.204 T:7556     INFO <general>: Enumerated PULSE devices:
2021-03-18 12:09:08.204 T:7556     INFO <general>:     Device 1
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_deviceName      : Default
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_displayName     : Default
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_deviceType      : AE_DEVTYPE_PCM
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_channels        : FL, FR
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_streamTypes     : No passthrough capabilities
2021-03-18 12:09:08.204 T:7556     INFO <general>:     Device 2
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_deviceName      : alsa_output.platform-sound.analog-stereo
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_displayName     : Built-in Audio Analog Stereo
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_displayNameExtra: Analog Output (PULSEAUDIO)
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_deviceType      : AE_DEVTYPE_PCM
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_channels        : FL, FR
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
2021-03-18 12:09:08.204 T:7556     INFO <general>:         m_streamTypes     : No passthrough capabilities
2021-03-18 12:09:08.295 T:7549     INFO <general>: GLES: Maximum texture width: 16384
2021-03-18 12:09:08.296 T:8257     INFO <general>: Creating video codec with codec id: 16
2021-03-18 12:09:08.296 T:8257     INFO <general>: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2 Microsoft variant version 3
2021-03-18 12:09:08.296 T:8257     INFO <general>: Creating video thread
2021-03-18 12:09:08.297 T:8257     INFO <general>: Opening stream: 1 source: 256
2021-03-18 12:09:08.297 T:8257     INFO <general>: Finding audio codec for: 86019
2021-03-18 12:09:08.298 T:8257     INFO <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2021-03-18 12:09:08.298 T:8257     INFO <general>: Creating audio thread
2021-03-18 12:09:08.298 T:8272     INFO <general>: running thread: video_thread
2021-03-18 12:09:08.299 T:8273     INFO <general>: running thread: CVideoPlayerAudio:Tonguerocess()
2021-03-18 12:09:08.318 T:7549     INFO <general>: VideoPlayer: OnLostDisplay received
2021-03-18 12:09:08.393 T:7557     INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-03-18 12:09:08.411 T:7557     INFO <general>: PulseAudio: Opened device alsa_output.platform-70030000.hda.hdmi-stereo in pcm mode with Buffersize 150 ms Periodsize 50 ms
2021-03-18 12:09:08.425 T:7556  WARNING <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail

And there is a lot of old movies I downloaded/ripped from DVD / .. 10yrs ago - none of them is playing.
The screen turns black - like the movie starts to play, and after a few seconds a spinning-wheel appears and stays
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11

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