Video hangs after first frame (on Nvidia Jetson TX1)
#1
Hi All,

I'm trying to get kodi to run on an NVidia Jetson TX1 (Tegra ARM, http://www.nvidia.com/object/jetson-tx1-dev-kit.html). I compiled everything from scratch. The UI works fine, but whenever I try to play a video it hangs after the first frame. Even the debug output in the top left (FPS/CPU etc.) stops until I kill the program. I tried different streams from the web and different versions of the Big Buck Bunny movie from http://download.blender.org/peach/bigbuckbunny_movies/, and all show the same result.

Any hints welcome...

Thanks!

Info:
Debug Log: http://paste.ubuntu.com/17413827/
Config Log: http://paste.ubuntu.com/17413838/

Sideline: It's dirty because I had to do the following changes to make it compile:

diff --git a/configure.ac b/configure.ac
index 8cc0ba8..554a669 100644
--- a/configure.ac
+++ b/configure.ac
@@ -616,8 +616,8 @@ case $host in
ARCH="arm"
use_arch="arm"
use_neon=yes
- use_gles=yes
- use_gl=no
+ ##use_gles=yes
+ ##use_gl=no
USE_STATIC_FFMPEG=1
;;
aarch64*-*-linux-gnu*|aarch64*-*-linux-uclibc*)
@@ -1545,14 +1545,14 @@ if test "${USE_STATIC_FFMPEG}" = "1"; then
if test "$with_ffmpeg" = "yes" || test "$FFMPEG_FOUND" = "false"; then
# ffmpeg not found with pkg-config, lets install it
AC_MSG_NOTICE("Installing FFmpeg")
- CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ${ffmpeg_build}/autobuild.sh ${FFMPEG_OPTS}
+ CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ${ffmpeg_build}/autobuild.sh ${FFMPEG_OPTS} --arch=${use_arch}
export PKG_CONFIG_PATH="${ffmpeg_build}/ffmpeg-install/lib/pkgconfig:$PKG_CONFIG_PATH"
fi

elif test "$with_ffmpeg" = "force"; then
# always build our ffmpeg
AC_MSG_NOTICE("FFmpeg installation forced by user - installing our version")
- CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ${ffmpeg_build}/autobuild.sh ${FFMPEG_OPTS}
+ CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" ${ffmpeg_build}/autobuild.sh ${FFMPEG_OPTS} --arch=${use_arch}
export PKG_CONFIG_PATH="${ffmpeg_build}/ffmpeg-install/lib/pkgconfig:$PKG_CONFIG_PATH"

elif test "$with_ffmpeg" != "no"; then
diff --git a/m4/xbmc_arch.m4 b/m4/xbmc_arch.m4
index d28f263..b8511d5 100644
--- a/m4/xbmc_arch.m4
+++ b/m4/xbmc_arch.m4
@@ -23,7 +23,7 @@ case $build in
powerpc64-*-linux-gnu*|powerpc64-*-linux-uclibc*)
AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_POWERPC64")
;;
- arm*-*-linux-gnu*|arm*-*-linux-uclibc*)
+ arm*-*-linux-gnu*|arm*-*-linux-uclibc*|aarch64*-*-linux-gnu*|aarch64*-*-linux-uclibc*)
AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
;;
*)
Reply
#2
Quick followup if you need to try this yourself: debugging it looked like it was hanging in glUnmapBuffer, so an OpenGL more than a kodi problem. I had switched to GL because GLES wasn't working, but as it turns out OpenGL ES works fine on the TX1, but you need the following in /usr/lib/arm-linux-gnueabihf/pkgconfig/egl.pc for kodi to compile:

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/arm-linux-gnueabihf
includedir=${prefix}/include

Name: egl
Description: Mesa EGL library
Requires.private: libdrm >= 2.4.24 x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >= 1.1 xxf86vm
Version: 10.1.3
Libs: -L${libdir} -lEGL
Libs.private: -lm -lpthread -ldl
Cflags: -I${includedir}

Also, the configure line is ./configure --host=arm-linux-gnu --disable-vaapi --enable-gles --disable-gl --enable-tegra --disable-vdpau .

Using OpenGL ES everything works fine, and it runs 1080p h265 videos without problems.

Hope it helps... Now moving on to mame... Wink
Reply
#3
Nice.

Probably nice low power use from that thing.

I almost ordered one myself, but stopped when I found out that it didn't support VDPAU.
Livingroom: 65" Panasonic Plasma, Denon AVR-x3300w, Parasound A31, Fronts: RBH SX-6300 Towers, Center: RBH 441-se, Surrounds: RBH 41-se Sub: Dual SVS PC13-Ultra, Source: Custom Kodi Box
Desk: DAC: Schiit Modi Multibit,Headphones: Schiit Jotunheim -> Sennheiser HD650 & Beyerdynamic DT770 Pro, Speakers: Parasound 275v2-> RBH 41-se & SVS SB12-NSD
Reply

Logout Mark Read Team Forum Stats Members Help
Video hangs after first frame (on Nvidia Jetson TX1)0