Extraction of Overlay Data from Video File

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

Extraction of Overlay Data from Video File

PRADEEP NALAWADE

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade


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

Re:Extraction of Overlay Data from Video File

胡珩
i think you can't. because the text has became pixels mixed with video frames. why not backup the text before textoverlay?

At 2016-12-23 13:07:50, "PRADEEP NALAWADE" <[hidden email]> wrote:

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade


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

Re:Extraction of Overlay Data from Video File

胡珩
In reply to this post by PRADEEP NALAWADE
i think you can't. because the text has became pixels mixed with video frames. why not backup the text before textoverlay?

At 2016-12-23 13:07:50, "PRADEEP NALAWADE" <[hidden email]> wrote:

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade


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

Re: Extraction of Overlay Data from Video File

PRADEEP NALAWADE

Thanks for your reply.

Is there any other way to overlay text onto the video, so that it can be extracted later from the video.


On Friday 23 December 2016 12:09 PM, 胡珩 wrote:
i think you can't. because the text has became pixels mixed with video frames. why not backup the text before textoverlay?

At 2016-12-23 13:07:50, "PRADEEP NALAWADE" [hidden email] wrote:

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade



_______________________________________________
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: Extraction of Overlay Data from Video File

Krutskikh Ivan
You can use subtitles

2016-12-23 10:11 GMT+03:00 PRADEEP NALAWADE <[hidden email]>:

Thanks for your reply.

Is there any other way to overlay text onto the video, so that it can be extracted later from the video.


On Friday 23 December 2016 12:09 PM, 胡珩 wrote:
i think you can't. because the text has became pixels mixed with video frames. why not backup the text before textoverlay?

At 2016-12-23 13:07:50, "PRADEEP NALAWADE" [hidden email] wrote:

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade



_______________________________________________
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



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

Re: Extraction of Overlay Data from Video File

PRADEEP NALAWADE

Thanks for your reply.

I am new to the gstreamer. So can you please share how to overlay subtitles instead of textOverlay and how to extract the subtitles from the video.


On Friday 23 December 2016 01:05 PM, Krutskikh Ivan wrote:
You can use subtitles

2016-12-23 10:11 GMT+03:00 PRADEEP NALAWADE <[hidden email]>:

Thanks for your reply.

Is there any other way to overlay text onto the video, so that it can be extracted later from the video.


On Friday 23 December 2016 12:09 PM, 胡珩 wrote:
i think you can't. because the text has became pixels mixed with video frames. why not backup the text before textoverlay?

At 2016-12-23 13:07:50, "PRADEEP NALAWADE" [hidden email] wrote:

Hi,

I am using the following command to overlay text onto the video and store it.

gst-launch-1.0 -e imxv4l2videosrc ! textoverlay text="Video 1" valignment=top halignment=left font-desc="Sans, 60" ! timeoverlay ! vpuenc_h264 ! mp4mux ! filesink location=video_264.mp4

Now I have to extract the overlay information from the stored video file. Is there any command available to extract the overlay information from the stored video.

Thanks & Best Regards,

Pradeep Nalawade



_______________________________________________
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
_______________________________________________
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: Extraction of Overlay Data from Video File

Mikl
Hi

I am using matroska container to add subtitles to the video.
Inserting using buffer of appsrc.
Extract from buffer of appsinc, previously link it it "NewPadAdded" event

record pipeline:
appsrc ! text/x-raw ! matroskamux ! filesink

extract pipeline:
filesrc ! matroskademux ! text/x-raw format=pango-markup ! appsink


Try it yourself. And if no luck, i will send you my source code. :)

Mikl
Reply | Threaded
Open this post in threaded view
|

RE: Extraction of Overlay Data from Video File

PRADEEP NALAWADE
Thanks Mikl.

-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Mikl
Sent: 04 January 2017 06:26 PM
To: [hidden email]
Subject: Re: Extraction of Overlay Data from Video File

Hi

I am using matroska container to add subtitles to the video.
Inserting using buffer of appsrc.
Extract from buffer of appsinc, previously link it it "NewPadAdded" event

record pipeline:
appsrc ! text/x-raw ! matroskamux ! filesink

extract pipeline:
filesrc ! matroskademux ! text/x-raw format=pango-markup ! appsink


Try it yourself. And if no luck, i will send you my source code. :)

Mikl



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Extraction-of-Overlay-Data-from-Video-File-tp4681235p4681331.html
Sent from the GStreamer-devel mailing list archive at 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: Extraction of Overlay Data from Video File

mudassar
This post was updated on .
In reply to this post by Mikl
Hi Mikl,

I working on a project where we need to multiplex live subtitles in a live stream and then consume those subtitles on the reader side as metadata. so for this I am working on similar lines as you described.

 However, my application does not generate a playable file. My code translates to following pipeline


uridecodebin ! videoconvert ! video/x-raw format=I420 ! queue ! vp8enc ! mux. appsrc ! application/x-subtitle format={pango-markup, utf8 } stream-type=0 format=3 is-live=true do-timestamp=true ! subparse ! kateenc category=SUB ! queue ! mux. webmmux name=mux ! queue ! filesink

I tried replacing webmmux with matroskamux but with no success.

I also get this warning sometimes: <subparse> could not convert string from 'UTF-8' to UTF-8: Invalid byte sequence in conversion input



It might help if you could share your code which seams to be doing similar thing.

Regards,
M

Reply | Threaded
Open this post in threaded view
|

Re: Extraction of Overlay Data from Video File

Mikl

Hello,


Here it is.


But, i am using different container for my subtitles.


Mikl


From: mudassar [via GStreamer-devel] <ml+[hidden email]>
Sent: Wednesday, May 10, 2017 11:59:11 AM
To: Michael Yarochkin
Subject: Re: Extraction of Overlay Data from Video File
 
Hi Miki,

I working on a project where we need to multiplex live subtitles in a live stream and then consume those subtitles on the reader side as metadata. so for this I am working on similar lines as you described.

 However, my application does not generate a playable file. My code translates to following pipeline


uridecodebin ! videoconvert ! video/x-raw format=I420 ! queue ! vp8enc ! mux. appsrc ! application/x-subtitle format={pango-markup, utf8 } stream-type=0 format=3 is-live=true do-timestamp=true ! subparse ! kateenc category=SUB ! queue ! mux. webmmux name=mux ! queue ! filesink

I tried replacing webmmux with matroskamux but with no success.

I also get this warning sometimes: <subparse> could not convert string from 'UTF-8' to UTF-8: Invalid byte sequence in conversion input



It might help if you could share your code which seams to be doing similar thing.

Regards,
M




If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Extraction-of-Overlay-Data-from-Video-File-tp4681235p4682970.html
To unsubscribe from Extraction of Overlay Data from Video File, click here.
NAML

GStreamer.7z (13K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Extraction of Overlay Data from Video File

mudassar
Great ! Thanks Mikl.