Kodi Community Forum
using gstreamer as a video player? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: VideoPlayer Development (https://forum.kodi.tv/forumdisplay.php?fid=240)
+---- Thread: using gstreamer as a video player? (/showthread.php?tid=344905)



using gstreamer as a video player? - calev - 2019-06-24

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?


RE: using gstreamer as a video player? - a1rwulf - 2019-06-28

I don't know about the gstreamer stuff, but omxplayer for raspberry pi will soon be history - we work towards a generic pipeline.


RE: using gstreamer as a video player? - da-anda - 2019-06-28

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.


RE: using gstreamer as a video player? - RockerC - 2019-06-28

(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-abandoned/xbmc/cores/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-abandoned/xbmc/cores/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.



RE: using gstreamer as a video player? - calev - 2019-07-08

(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?


RE: using gstreamer as a video player? - a1rwulf - 2019-07-08

@lrusak might know.
Jetson nano is from nvidia - there's a great possibility that it doesn't work.


RE: using gstreamer as a video player? - calev - 2019-07-09

(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/1056985/jetson-nano/v4l2-kernel-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.


RE: using gstreamer as a video player? - calev - 2019-07-09

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/nvidiajetsonnanVv4L2example/blob/master/00_video_decode/video_decode_main.cpp


RE: using gstreamer as a video player? - lrusak - 2019-08-15

(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/nvidiajetsonnanVv4L2example/blob/master/00_video_decode/video_decode_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.


RE: using gstreamer as a video player? - tutu - 2023-02-12

Why was the gstreamer video player abandoned? Did it ever work?


RE: using gstreamer as a video player? - Dukar - 2023-07-31

(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.