Saving image from video stream pipeline
sergio.r.agostinho at gmail.com
Mon Dec 22 15:57:33 PST 2014
If you do not mind having a lot of useless frames being dumped to your hdd, take a look at multifilesink. http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesink.html <http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesink.html>
If you want to capture a frame from a live video feed at your request, you’re gonna need to delve into the SDK. Take a look at these snippets
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html <http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html> (Grabbing data with appsink section)
http://gstreamer-devel.966125.n4.nabble.com/Strange-behavior-from-gst-sample-unref-td4669770.html <http://gstreamer-devel.966125.n4.nabble.com/Strange-behavior-from-gst-sample-unref-td4669770.html> (Modification to the original example now using the gstreamer’s video library to convert samples to different formats)
> On 22 Dec 2014, at 11:31, Gokul Vellingiri <vgokul129 at gmail.com> wrote:
> I tried video streaming in command prompt by using the following pipeline and
> its working fine.
> gst-launch-1.0 -v filesrc location=./video.mp4 ! decodebin ! x264enc !
> rtph264pay ! udpsink host=192.168.7.103 port=6005
> gst-launch-1.0 -v udpsrc port=6005 caps = "application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
> payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
> How do i modify the above pipeline to grab that instant video frame from my
> stream and save as image file in my local directory.
> To add to this,i'll be using Ubuntu-12.04 and gstreamer-1.0
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Saving-image-from-video-stream-pipeline-tp4669998.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel