How to overlay a text onto the h264 stream and store it using GStreamer so that overlay text can be extracted later. I need to extract the overlay text from the video.
I am using the following command to overlay text onto the stream and store it.
gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Sample Video" valignment=position halignment=position xpos=1 ypos=1 font-desc="Sans, 20" ! timeoverlay ! vpuenc_h264 ! matroskamux ! filesink location=video.mp4
Is it possible to extract the text overlay from the video generated using above command? If not, how to overlay a text, so that it can be extracted later?
Thanks in advance.
Pradeep Nalawade