How to capture jpeg-pictures from a live video stream

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

How to capture jpeg-pictures from a live video stream

katariinaT
Hi! I'm working on a project where I'm supposed to capture jpeg-pictures from
a live video stream. I've been reading and researching for some time now,
but haven't found any useful guides.
I'm using multiple IP-cameras, so the goal would be to capture a
jpeg-picture from each camera for example every 10 seconds. Does anyone have
aby good advice or idea how to implement or approach a problem like this?
At the moment I'm able to connect and stream video from multiple IP-cameras,
but the rest is yet unsolved.
Thanks beforehand,
Katariina



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to capture jpeg-pictures from a live video stream

Nicolas Dufresne-5
Le mardi 19 juin 2018 à 02:50 -0700, katariinaT a écrit :
> Hi! I'm working on a project where I'm supposed to capture jpeg-pictures from
> a live video stream. I've been reading and researching for some time now,
> but haven't found any useful guides.
> I'm using multiple IP-cameras, so the goal would be to capture a
> jpeg-picture from each camera for example every 10 seconds. Does anyone have
> aby good advice or idea how to implement or approach a problem like this?

This isn't much GStreamer specific. Some cameras have an HTTP capture
interface. So all you would have to do is wget <URI> (or similar) every
10s.

>  
> At the moment I'm able to connect and stream video from multiple IP-cameras,
> but the rest is yet unsolved.

If instead you want to do that from RTSP streams, you could create a
playback pipeline, and every 10s, read the last-sample property of you
display sink. With gst_video_convert_sample() you'll be able to convert
it to JPEG. Another option would be to do that in your pipeline.

 ... ! decodebin ! videorate drop-only=1 ! video/x-raw,framerate=1/10 !  jpegenc ! multifilesink location="capture-%d.jpeg"

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

signature.asc (201 bytes) Download Attachment