hlssink and textoverlay

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

hlssink and textoverlay

Jerry Geis-2
I have a command like this:

gst-launch-1.0 rtspsrc latency=0 location="$VIDEOSRC" ! rtph264depay ! h264parse ! queue ! mpegtsmux ! hlssink (other options here too)

My command is working fine... However I wish to add in a textoverlay. I have tried to insert it in a couple spots but no-go.  How do I add the textoverlay into this command.

Thanks,

Jerry

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

Re: hlssink and textoverlay

Nicolas Dufresne-5
Le vendredi 12 janvier 2018 à 14:57 -0500, Jerry Geis a écrit :
> I have a command like this:
>
> gst-launch-1.0 rtspsrc latency=0 location="$VIDEOSRC" ! rtph264depay
> ! h264parse ! queue ! mpegtsmux ! hlssink (other options here too)
>
> My command is working fine... However I wish to add in a textoverlay.
> I have tried to insert it in a couple spots but no-go.  How do I add
> the textoverlay into this command.

textoverlay operate on raw frames, that means you'd have to decode !
textoverlay ! encoder ! ... This is a much more expensive operation.
Can't you just add some sub-titles instead ?

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

Re: hlssink and textoverlay

Baby Octopus
Administrator
In reply to this post by Jerry Geis-2
textoverlay is nothing but buring the text on raw video, for which you need
to decode, burnin and then reencode. Without decoding it isn't possible

Another option as Nicolas suggested is to add metadata like subtitle. HLS
recommends WebVTT IIRC. You can try using *webvttenc* and insert the link of
this subtitle file in the HLS manifest file

~BO



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