<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="post-text" itemprop="text">
<p>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.</p>
<p>I am using the following command to overlay text onto the
stream and store it.</p>
<blockquote>
<p><b>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</b></p>
</blockquote>
<p>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?</p>
<p>Thanks in advance.</p>
<p>Pradeep Nalawade</p>
</div>
</body>
</html>