grabbing frames from running stream

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

grabbing frames from running stream

Andreas Lubensky
Hello,

I want to use gstreamer to play all kinds of video sources, especially
webcams, video files and DVDs.
In the framework i am using, video sources get grabbed image by image in a
loop. Currently, i am not sure how to combine that with gstreamer. My idea is
to write a video sink that always keeps a copy of the last image. But this
seems rather ugly...i thought there might be some way to get a snapshot of a
running stream. That might be no problem with webcams, but i couldn't figure
out yet how to do it with video files.
As i am new to gstreamer, i probably just need a nudge in the right
direction...

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: grabbing frames from running stream

Kapil Agrawal
one way is add an identity element just before sink & using the handoff signal , save the buffer ?
http://www.gstreamer.net/data/doc/gstreamer/0.10.3/gstreamer-plugins/html/gstreamer-plugins-identity.html

Best Luck
Kapil

On Mon, Jan 17, 2011 at 6:52 PM, Andreas Lubensky <[hidden email]> wrote:
Hello,

I want to use gstreamer to play all kinds of video sources, especially
webcams, video files and DVDs.
In the framework i am using, video sources get grabbed image by image in a
loop. Currently, i am not sure how to combine that with gstreamer. My idea is
to write a video sink that always keeps a copy of the last image. But this
seems rather ugly...i thought there might be some way to get a snapshot of a
running stream. That might be no problem with webcams, but i couldn't figure
out yet how to do it with video files.
As i am new to gstreamer, i probably just need a nudge in the right
direction...

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel