using gstreamer as a video player?
#1
Any guides on how to use gstreamer as a video player? Don't shoot me if this has been asked a billion times. I want to try to get kodi to work on my jetson nano. I tested playing 4k files with gstreamer and they play find but pretty much not on anything else. Isn't this how kodi works on raspberry pi with omxplayer?
Reply
#2
I don't know about the gstreamer stuff, but omxplayer for raspberry pi will soon be history - we work towards a generic pipeline.
Reply
#3
with KODI v19 we are working towards a v4l2 pipeline for anything linux based. So if the chipset of your jetson nano will have proper linux kernel support in regards to v4l2, KODI will run just fine with it.
Reply
#4
(2019-06-24, 17:13)calev Wrote: Any guides on how to use gstreamer as a video player? 

No guide but if you are a C++ developer then you could check out this old abandoned code for "gstplayer" which was a GStreamer based internal video player core for Kodi that ended up never being merged into mainline Kodi upstream.

https://forum.kodi.tv/showthread.php?tid=140496

https://github.com/theuni/xbmc/tree/cex-.../gstplayer

https://github.com/theuni/xbmc/commits/cex-abandoned

I believe that GStreamer based internal video player core for Kodi was originally created to add hardware video decoding on some Intel CEx hardware and then later also ported to do the same on proprietary hardware video decoding on some Sigma Designs SoC

https://forum.kodi.tv/showthread.php?tid=140496

https://forum.kodi.tv/showthread.php?tid=237686&page=4
(2015-11-26, 18:56)MrMC Wrote: slackers Smile

https://github.com/theuni/xbmc/commits/cex-abandoned

https://github.com/theuni/xbmc/tree/cex-.../gstplayer
(2015-12-04, 18:36)MrMC Wrote: GStreamer 'stuff' was not trivial to do. It was only there because requirements from Sigma. FFMpeg could be present but it had to be via GStreamer.
Reply
#5
(2019-06-28, 10:05)da-anda Wrote: with KODI v19 we are working towards a v4l2 pipeline for anything linux based. So if the chipset of your jetson nano will have proper linux kernel support in regards to v4l2, KODI will run just fine with it.

thanks da-anda. Any suggestions on how I can test to see if V4L2 works on this board?
Reply
#6
@lrusak might know.
Jetson nano is from nvidia - there's a great possibility that it doesn't work.
Reply
#7
(2019-07-08, 15:11)a1rwulf Wrote: @lrusak might know.
Jetson nano is from nvidia - there's a great possibility that it doesn't work.

Well I asked over at their forums. https://devtalk.nvidia.com/default/topic...l-support/

I tried playing a video with mplayer with mplayer driver=v4l2 and it did not play well so I'm guessing it doesn't support it.
Reply
#8
From that question I posted on their forum,
Quote:The Jetpack software does support hardware video encoding/decoding through the V4L2 API.
Which specific codecs and profiles are supported depends on the specific hardware (Xavier is up-to-date, Nano is a quite old GPU.)
Also, the details of V4L2 codec interactions are somewhat under-specified, which means that "generic" code is unlikely to work without at least a little bit of tweaking for the specific hardware it runs on.

The examples in the /usr/src/nvidia directory show how to encode/decode H264 using the hardware V4L2 interface.

 


So I took a look in that directory on my Jetson nano and I do see example code of video decode with references to V4L2. I couldn't find where they are hosting the code so I uploaded it to my git hub if anyone is curious and wants to look at it. 

https://github.com/camccar/nvidiajetsonnanVv4L2example

And specifically the example video decode code https://github.com/camccar/nvidiajetsonn...e_main.cpp
Reply
#9
(2019-07-09, 19:41)calev Wrote: From that question I posted on their forum,
Quote:The Jetpack software does support hardware video encoding/decoding through the V4L2 API.
Which specific codecs and profiles are supported depends on the specific hardware (Xavier is up-to-date, Nano is a quite old GPU.)
Also, the details of V4L2 codec interactions are somewhat under-specified, which means that "generic" code is unlikely to work without at least a little bit of tweaking for the specific hardware it runs on.

The examples in the /usr/src/nvidia directory show how to encode/decode H264 using the hardware V4L2 interface.

 


So I took a look in that directory on my Jetson nano and I do see example code of video decode with references to V4L2. I couldn't find where they are hosting the code so I uploaded it to my git hub if anyone is curious and wants to look at it. 

https://github.com/camccar/nvidiajetsonnanVv4L2example

And specifically the example video decode code https://github.com/camccar/nvidiajetsonn...e_main.cpp 

This doesn't use v4l2 for decoding. The V4L2 stuff included in this repo only include V4L2 to capture video from a camera and encode via Nvidia's CUDA framework.

V4L2 requires a kernel driver for it to work. CUDA is exclusively userspace.
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
#10
Why was the gstreamer video player abandoned? Did it ever work?
Reply
#11
(2019-06-24, 17:13)calev Wrote: Any guides on how to use gstreamer as a video player? Don't shoot me if this has been asked a billion times. I want to try to get kodi to work on my jetson nano. I tested playing 4k files with gstreamer and they play find but pretty much not on anything else. Isn't this how kodi works on raspberry pi with omxplayer?

GStreamer as a video player guide: Use GStreamer with pipelines for video playback, customize with filters, and code integration. For Kodi on Jetson Nano, check compatibility, install, and configure GStreamer backend.
Reply

Logout Mark Read Team Forum Stats Members Help
using gstreamer as a video player?0