I am using the below pipeline to save and preview 2 streams. After adjusting the aspect ratio and previewed, The videos are played but the ubuntu desktop is visible in the background.
Hi,
Are you able to disable X11 and run? We suggest do this in gstreamer user guide
It is for TX2, but we suggest do it for other Jetson platforms also.
Hi @DaneLLL ,
I tried this method as in the guide the gdm is disabled but the screen still prints the commands in the background while the video is played.
Can I use the nvcompositor to set the background in black at 1920x1080 resolution and play the videos on it using nvovelaysink?
Hi,
The source code of nvcompositor is public from r32.5.1,. If you use the release, you can check the source code and do customization. The implementation is based on NvBuffer APIs in
You may try the following.
You would need to know your display resolution. You can get it from xrandr. Here I’m using a 3440x1440 display, you would adapt for your case.
The first pipeline uses videotestsrc with black pattern for making the background.
The second and third pipelines simulate your sources, I have adjusted first source width from 959 to 960 as odd widths would generate warnings.
Then nvcompositor does the layout, and this is finally passed to nvoverlaysink for display.
It may not be required for your case, but if having overlapping areas and alpha composing, you would use zorder property of each sink similar as overlay property of nvoverlaysink.