videomixer alpha transparency does not work on NVIDIA Jetson

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

videomixer alpha transparency does not work on NVIDIA Jetson

GStreamer-devel mailing list
Hi All,

I'm trying following pipeline videomixer with 2 videotestsrc with alpha
channels.
This pipeline is from
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-alpha.html

gst-launch-1.0 videotestsrc pattern=snow ! mixer.sink_0 \
  videotestsrc pattern=smpte75 ! alpha method=green ! mixer.sink_1 \
  videomixer name=mixer sink_0::zorder=0 sink_1::zorder=1 ! \
  videoconvert ! video/x-raw,format=I420 ! xvimagesink

The pipeline works on my laptop linux machine.
However, does not work on Jetson TX2 and Xavier.

The main difference is cpu.
laptop is x86_64 but Jetson use arm cpu.

Anyone have information related to this?

Result picture:
laptop linux machine
https://imgur.com/a/ilxnvpg
Jetson TX2/Xavier
https://imgur.com/a/K2TqUEU

Thank you in advance.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: videomixer alpha transparency does not work on NVIDIA Jetson

MaZderMind
Hi

you could test compositor, which is another implementation of the
videomixer interface. It would also be interesting to know if the
greenscreen-alpha is working of if it is already broken at that point.
ypu might want to use pngenc / multifilesink or similar to save the
resulting iamges to pngs, checking their alpha channel.

Peter


Am 14.02.19 um 06:14 schrieb rary via gstreamer-devel:

> Hi All,
>
> I'm trying following pipeline videomixer with 2 videotestsrc with alpha
> channels.
> This pipeline is from
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-alpha.html
>
> gst-launch-1.0 videotestsrc pattern=snow ! mixer.sink_0 \
>   videotestsrc pattern=smpte75 ! alpha method=green ! mixer.sink_1 \
>   videomixer name=mixer sink_0::zorder=0 sink_1::zorder=1 ! \
>   videoconvert ! video/x-raw,format=I420 ! xvimagesink
>
> The pipeline works on my laptop linux machine.
> However, does not work on Jetson TX2 and Xavier.
>
> The main difference is cpu.
> laptop is x86_64 but Jetson use arm cpu.
>
> Anyone have information related to this?
>
> Result picture:
> laptop linux machine
> https://imgur.com/a/ilxnvpg
> Jetson TX2/Xavier
> https://imgur.com/a/K2TqUEU
>
> Thank you in advance.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: videomixer alpha transparency does not work on NVIDIA Jetson

rary
Hi

Sorry for late reply.
I run following pipeline to see raw data has correct alpha value.
gst-launch-1.0 videotestsrc num-buffers=1 ! alpha method=green !
video/x-raw,format=RGBA ! filesink location=tmp.rgba

result for green regions was
On Linux laptop: RGBA(0, 0, 0, 0) as expected
On Jetson : RGBA(0, 0, 0, FE)

I tried method=blue and method=custom target-r=255 target-g=0 (red to
transparent) .
And it worked in both environment.

Maybe, there is some bug, I'll look into source code.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel