Add images before and after video stream

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

Add images before and after video stream

Ormi
Hi guys!

I have an idea to make pipeline for making videos from conferences.
I already have a pipeline which can link 2 videos altogether in one frame, one video of speaker, one video of slides and also small image of presentation topic.
But What I am thinking next is link one intro picture before the video and one after the video. So far I couldn't find any references about this in gstreamer.
My idea is like 5 seconds of one intro picture, then video playback (55 second) and the one last final picture of references for example 5 seconds.

Does anybody have an idea if it is possible, to add this capabilities to my pipeline?

Thanks a lot
Ormi
Reply | Threaded
Open this post in threaded view
|

Re: Add images before and after video stream

dedsx
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Add images before and after video stream

Sean DuBois
On Mon, Mar 27, 2017 at 11:36:00PM +0530, Ronit Zagade wrote:

> this is not possible
>
> On 27-Mar-2017 11:22 PM, "Ormi" <[hidden email]> wrote:
>
> > Hi guys!
> >
> > I have an idea to make pipeline for making videos from conferences.
> > I already have a pipeline which can link 2 videos altogether in one frame,
> > one video of speaker, one video of slides and also small image of
> > presentation topic.
> > But What I am thinking next is link one intro picture before the video and
> > one after the video. So far I couldn't find any references about this in
> > gstreamer.
> > My idea is like 5 seconds of one intro picture, then video playback (55
> > second) and the one last final picture of references for example 5 seconds.
> >
> > Does anybody have an idea if it is possible, to add this capabilities to my
> > pipeline?
> >
> > Thanks a lot
> > Ormi
> >
> >
> >
> > --
> > View this message in context: http://gstreamer-devel.966125.
> > n4.nabble.com/Add-images-before-and-after-video-stream-tp4682412.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

Hi Ormi,

I don't know if you can do this with gst-launch, but it wouldn't be very
hard with the actual GStreamer API (I have done it before)

It sounds like you are using the videomixer/compositor? You can very
easily add/remove inputs from it at runtime while using the API. You
would just need to do a timeout and then add/remove the Pads you want.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Add images before and after video stream

Nicolas Dufresne-5
In reply to this post by Ormi
Le dimanche 26 mars 2017 à 23:43 -0700, Ormi a écrit :

> I have an idea to make pipeline for making videos from conferences.
> I already have a pipeline which can link 2 videos altogether in one frame,
> one video of speaker, one video of slides and also small image of
> presentation topic.
> But What I am thinking next is link one intro picture before the video and
> one after the video. So far I couldn't find any references about this in
> gstreamer.
> My idea is like 5 seconds of one intro picture, then video playback (55
> second) and the one last final picture of references for example 5 seconds.
>
> Does anybody have an idea if it is possible, to add this capabilities to my
> pipeline?
Unlike the previous answer, this is possible. If you are doing this
work in post-processing, then you should probably use gst-editing-
services library (or PiTiVi GUI).

For live, recording, you'll have to use the layers in compositor (or
glvideomixer). Create a base layer with the fixed image. Let that run
for 5 seconds, as it's live, the one image should be used over and over
by the compositor. You'll have to use "identity sync=1" to make it
live, and you'll need a pad probe that drop EOS here. Then link the
other videos on top, to completely occlude the intro image. When you
know that images have started passing through the other video (some
sort of custom preroll), you can discard that pad to avoid the extra
overhead. Later on, before you stop the video, do the opposite. Add a
an occluded final picture, and remove the other video streams (which
will make the final image show up.

It's a bit difficult but totally feasible unlike what Ronit Zagade
pretend. I haven't think through this method, there is likely few
shortcuts I didn't think about, or more optimization.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment