Re: Need help using gst-launch to display a PNG image, part 2

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

Re: Need help using gst-launch to display a PNG image, part 2

Bill West

Message: 1
Date: Wed, 11 Aug 2010 19:24:54 +0100
From: Tim-Philipp M?ller <[hidden email]>
Subject: Re: [gst-devel] Need help using gst-launch to display a PNG
       image
To: [hidden email]
Message-ID: <1281551094.13195.4.camel@zingle>
Content-Type: text/plain; charset="UTF-8"

On Wed, 2010-08-11 at 11:08 -0700, Bill West wrote:

> My problem:  from what I can tell, I need to type something like this:
>
>
>         gst-launch -v filesrc location=overlay.png ! pngdec !
>         imagefreeze ! autovideosink

> But when I do, I get this:

>         stream stopped, reason not-negotiated

This is a bug of some sort in autovideosink really.

Try:

 gst-launch-0.10 filesrc location=overlay.png ! pngdec !
ffmpegcolorspace ! videoscale ! imagefreeze ! autovideosink

(or try using ximagesink instead of autovideosink)

Cheers
 -Tim

Thanks Tim!
 
Thanks Tim!  That did the trick!
 
So, I tried to be self sufficient, and do the next step, which is to display video thru the alpha part of the PNG file.  From googling around, it appears I should do something like this:
 

gst-launch-0.10 filesrc location=overlay.png ! pngdec ! ffmpegcolorspace ! videoscale ! imagefreeze ! videomixer name=mix ! autovideosink videotestsrc ! video/x-raw-yuv, width=320, height=240 ! mix

But when I do, all I get is this:

WARNING: erroneous pipeline: no element "mix"

 
Has videomixer changed, or am I doing something wrong?
 
More general question:  where can I look up this stuff, so I don't have to keep bugging you guys?  :)

thanks (again),
 
Bill.

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Need help using gst-launch to display a PNG image, part 2

Luciana Fujii Pontello
On Wed, 2010-08-11 at 18:05 -0700, Bill West wrote:

>
>         gst-launch-0.10 filesrc location=overlay.png ! pngdec !
>         ffmpegcolorspace ! videoscale ! imagefreeze ! videomixer
>         name=mix ! autovideosink videotestsrc ! video/x-raw-yuv,
>         width=320, height=240 ! mix
>        
>        
> But when I do, all I get is this:
>         WARNING: erroneous pipeline: no element "mix"

To refer to an element created before in gst-launch you need to use the
name of the element with a dot. You're lacking the dot in it, it should
end with "mix.".
 
> More general question:  where can I look up this stuff, so I don't
> have to keep bugging you guys?  :)

I don't know where to find gst-launch documentation, I'm wondering here
how I learned the syntax. Have you tried man gst-launch? Seems to have
enough information for me.

You can find documentation for videomixer in the gst plugins-good
reference. This and many more manuals and references in
http://gstreamer.freedesktop.org/documentation/.

Regards,

Luciana Fujii


------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel