image overlay on video stream in playbin2 from 0.10

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

image overlay on video stream in playbin2 from 0.10

KAO George -EXT

I am using the windows release 0.10 from SDK. I have successfully prototyped it using decodebin2, videomixer, and imagefreeze using gst-launch but I would like to have the functionality of image overlay on the video stream within the pipeline handled with playbin2. Would that be possible?



CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

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

Re: image overlay on video stream in playbin2 from 0.10

Nicolas Dufresne
Le mardi 26 mars 2013 à 12:58 +0000, KAO George -EXT a écrit :
> I am using the windows release 0.10 from SDK. I have successfully
> prototyped it using decodebin2, videomixer, and imagefreeze using
> gst-launch but I would like to have the functionality of image overlay
> on the video stream within the pipeline handled with playbin2. Would
> that be possible?

Sure, you could set a bin to "video-sink" properpy and compose what you
want on top of the video output.
>
> ______________________________________________________________________
>
> CONFIDENTIALITY : This e-mail and any attachments are confidential and
> may be privileged. If you are not a named recipient, please notify the
> sender immediately and do not disclose the contents to another person,
> use it for any purpose or store or copy the information in any medium.

Just a reminder that this is a public mailing list with publicly
available archives.

regards,
Nicolas

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

Re: image overlay on video stream in playbin2 from 0.10

shyam
I am able to build a pipeline with playbin using textoverlay but not able to
display a logo on top of the video. My pipeline is "gst-launch-1.0.exe
playbin uri=rtsp://161.85.89.220:8554/test video-sink='textoverlay
font-desc=Sans,36 text=Hello ! autovideosink' "
How do I modify it to overlay a logo on the image ?

Thanks,
Shyam



--
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: image overlay on video stream in playbin2 from 0.10

Tim Müller
On Tue, 2020-01-14 at 05:48 -0600, shyam wrote:

> I am able to build a pipeline with playbin using textoverlay but not
> able to
> display a logo on top of the video. My pipeline is "gst-launch-
> 1.0.exe
> playbin uri=rtsp://161.85.89.220:8554/test video-sink='textoverlay
> font-desc=Sans,36 text=Hello ! autovideosink' "

There is also a "video-filter" property on playbin, which I would
recommend for this use case.


> How do I modify it to overlay a logo on the image ?

Is the overlay a static image in png or jpeg format (or tiff/bmp or
somesuch)? In that case, gdkpixbufoverlay should do the trick (location
property).

Cheers
 Tim


--
Tim Müller, Centricular Ltd - http://www.centricular.com

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

Re: image overlay on video stream in playbin2 from 0.10

Nicolas Dufresne-5
In reply to this post by shyam


Le mar. 14 janv. 2020 08 h 00, shyam <[hidden email]> a écrit :
I am able to build a pipeline with playbin using textoverlay but not able to
display a logo on top of the video. My pipeline is "gst-launch-1.0.exe
playbin uri=rtsp://161.85.89.220:8554/test video-sink='textoverlay
font-desc=Sans,36 text=Hello ! autovideosink' "
How do I modify it to overlay a logo on the image ?

There is multiple options, but I'll suggest using gdkpixbufoverlay.


Thanks,
Shyam



--
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: image overlay on video stream in playbin2 from 0.10

shyam
I am unable to use gdkpixbufoverlay.
The below command gives warning saying "erroneous pipeline: no element
"gdkpixbufoverlay" "

 gst-launch-1.0.exe playbin uri=rtsp://161.85.89.220:8554/test
video-sink='textoverlay font-desc=Sans,36 text=Hello ! autovideosink'
!gdkpixbufoverlay location=c:/users/ing03879/desktop/info.png

Also, the below command doesnt give any error. But the video doesnt have the
logo overlayed..

gst-launch-1.0.exe playbin uri=rtsp://161.85.89.220:8554/test
video-sink='textoverlay font-desc=Sans,36 text=Hello ! autovideosink
!gdkpixbufoverlay location=c:/users/ing03879/desktop/info.png'

Thanks,
Shyam



--
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: image overlay on video stream in playbin2 from 0.10

shyam
Can you please share a command using gdkpixbufoverlay and playbin?



--
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: image overlay on video stream in playbin2 from 0.10

Nicolas Dufresne-5
Le jeudi 16 janvier 2020 à 05:21 -0600, shyam a écrit :
> Can you please share a command using gdkpixbufoverlay and playbin?

Sure:

gst-launch-1.0 playbin uri=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov \
                       video-filter="gdkpixbufoverlay location=my_logo.png"

Follow this link [0] for more configuration of the overlay. It can
position the overlay, and also scale it.

[0] https://gstreamer.freedesktop.org/documentation/gdkpixbuf/gdkpixbufoverlay.html?gi-language=c#properties
>
>
>
> --
> 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