[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: Extraction of overlay data from stored video
From:       Nicolas Dufresne <nicolas () ndufresne ! ca>
Date:       2016-12-31 13:12:23
Message-ID: CAKQmDh83-uv9B=mYhP-sHH0Q6pN_G2d-unzA0gYOSjRipwR0KA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Le 28 déc. 2016 12:41 AM, "PRADEEP NALAWADE" <
pradeep.nalawade@funambolo.co.in> a écrit :

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.


The pipeline you are using render the overlay directly on the image. It is
not possible to extract it afterward. What you could do instead is to use a
subtitle stream.

Nicolas

Pradeep Nalawade

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

[Attachment #5 (text/html)]

<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 28 \
déc. 2016 12:41 AM, &quot;PRADEEP NALAWADE&quot; &lt;<a \
href="mailto:pradeep.nalawade@funambolo.co.in">pradeep.nalawade@funambolo.co.in</a>&gt; \
a écrit  :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_-4082186891524607838post-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=&quot;Sample Video&quot; valignment=position halignment=position
            xpos=1 ypos=1 font-desc=&quot;Sans, 20&quot; ! 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></div></div></blockquote></div></div></div><div \
dir="auto"><br></div><div dir="auto">The pipeline you are using render the overlay \
directly on the image. It is not possible to extract it afterward. What you could do \
instead is to use a subtitle stream.</div><div dir="auto"><br></div><div \
dir="auto">Nicolas</div><div dir="auto"><br></div><div dir="auto"><div \
class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
bgcolor="#FFFFFF" text="#000000"><div class="m_-4082186891524607838post-text"><font \
color="#888888">  <p>Pradeep Nalawade</p>
    </font></div>
  </div>

<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
 <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" \
rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
 <br></blockquote></div><br></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic