How to play a video transparent background with gstreamer 1.20.3

hi Expert,
I’m trying to play a video (.webm) with transparent background but it always become black background.
I’m trying on ubuntu 22.04 and gstreamer 1.20.3 on Jetson orin nx with Jetpack 6.2.x
command is gst-launch-1.0 uridecodebin uri=file:///home/nvidia/Videos/test.webm ! decodebin ! nvvidconv ! video/x-raw ! gtksink name=gtksink ignore-alpha=0

Please try the gst-launch-1.0 command and see if the file can be played:

$ DISPLAY=:0 // or 1
$ gst-launch-1.0 filesrc location=test.webm ! matroskademux ! h264parse ! nvv4l2decoder ! nvvidconv ! video/x-raw ! xvimagesink
1 Like

Thanks @DaneLLL ,
Your suggest is work, but I want transparent background of video , I think nvvidconv is not support convert alpha channel. you can see at 1 is transparent support, but 2 is black in image below

Transparent background is not support so it is possible it is not shown as expected on Ori NX. Please try with common video files.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.