Re: Re: Re: Re: Overlaying an image on a live stream

Jan Spurný JSpurny at seznam.cz
Wed Mar 7 01:42:35 PST 2012


Hi,

freezeimage is quite new element, so it's normal it's not present.
The problem with ">" is probably my fault - i forgot to end caps string with quotation marks, so just add " at the end, like this:

 multifilesrc location=graph.png caps="image/png,framerate=(fraction)25/1"

- you may also need to escape parentheses, so if the above line produces some error, try this:

 multifilesrc location=graph.png caps="image/png,framerate=\(fraction\)25/1"


------------ Původní zpráva ------------
Od:  <kususe at interfree.it>
Předmět: Re: Re: Re: Overlaying an image on a live stream
Datum: 07.3.2012 10:38:35
---------------------------------------------

First solution returns me there's no "freezeimage" element;
Second one returns  me a ">", like an interactive terminal, nothing more. 
 
regards,
K.
 
 
-----Messaggio originale-----
Da: Jan Spurný <JSpurny at seznam.cz>
Inviato il: 07 Mar 2012 - 09:39
A: Discussion of the development of and with GStreamer 	<gstreamer-devel at lists.freedesktop.org>


Hi,

there are two options:

A) use "freezeimage" element after pngdec,

B)  instead of

 filesrc location=graph.png

use multifilesrc with caps

 multifilesrc location=graph.png caps="image/png,framerate=(fraction)25/1

(of course change to your framerate)

sincerely,
Jan Spurny

>
  ------------ P?vodní zpráva ------------
> Od: kususe 
> P?edm?t: Re: Overlaying an image on a live stream
> Datum: 06.3.2012 20:15:23
> ----------------------------------------
> I modified the presented pipeline to overlay an image onto a video:
> 
> gst-launch filesrc location=video.mpg ! decodebin2 ! videomixer name=mix !
> xvimagesink filesrc location=graph.png ! pngdec ! ffmpegcolorspace ! mix.
> 
> but it stops always in the "prerolling moment" and if I press CTRL-C, it
> returns: 
> 
> (gst-launch-0.10:3775): GStreamer-WARNING **: adding flushing pad 'sink_1'
> to running element 'mix', you need to use gst_pad_set_active(pad,TRUE)
> before adding it.
> 
> 
> Suggestions??
> 
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Overlaying-an-image-on-a-live-stream-tp1745726p4450966.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> 
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



-------------------------------------------------------------------------------
Valore legale alle tue mail
InterfreePEC - la tua Posta Elettronica Certificata
http://pec.interfree.it
-------------------------------------------------------------------------------




More information about the gstreamer-devel mailing list