Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, June 13, 2017 6:13:25 AM(UTC)
Turnoaks

Groups: Registered
Posts: 1


Hi all.

I’m looking to extract still images (jpg) from an RTSP video feed from either a IP camera or a Digital Video Recorder. The key feature I’m looking for is quite rapid extraction on the fly of still images.

Ideally I’m looking for creating about 4 still images per second, 6 would be nice if its achievable.

Can anyone recommend what to look at?

Thank you in advance.

Paul
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, June 16, 2017 9:25:08 AM(UTC)

Aaron  
Aaron

Groups: Registered, Tech Support, Administrators
Posts: 71

Was thanked: 3 time(s) in 3 post(s)

Hi,

The LEADTOOLS Multimeda SDK contains multiple Multimedia controls that can be used to capture audio/video from multiple devices:

PlayCtrl:
Plays audio/video from sources including disk files, URL or UDP addresses (including RTSP).

https://www.leadtools.co...playctrl-sourcefile.html

CaptureCtrl:
Captures audio/video from devices physically connected to the machine (The devices will need to support either DirectShow or Media Foundation to function with LEADTOOLS). This control allows you to save to captured audio/video to multiple different formats.

https://www.leadtools.co...turectrl-targetfile.html

ConvertCtrl:
Captures audio/video from sources including disk files, URL or UDP addresses (including RTSP) like the PlayCtrl does but the ConvertCtrl will allow you to convert that input audio/video into other formats including disk files, URL or UDP addresses (including RTSP).

https://www.leadtools.co...vertctrl-sourcefile.html
https://www.leadtools.co...vertctrl-targetfile.html

All of these controls have the ability to use any of our DirectShow filters to manipulate/compress the video data in many different ways:
https://www.leadtools.co.../v19/multimedia/filters/

For your task of creating still images from the video stream (if you don't have to save the audio/video stream back out), I would recommend using the PlayCtrl for the RTSP streams and the CaptureCtrl if your Digital Video Recorder devices are attached to the machine. We ship demos with the source code for multiple programming languages with the SDK that demonstrate how you can use both controls:

<Install Directory>\LEADTOOLS Multimedia 19\Shortcuts\Multimedia\Capture
<Install Directory>\LEADTOOLS Multimedia 19\Shortcuts\Multimedia\Playback

Once you have the controls capturing your audio/video properly, then you can attach the LEAD Video Callback Filter to the control:
https://www.leadtools.co.../leadvideocallbackfilter(2-0).html

The LEAD Video Callback Filter will provide you with the data for every frame of the video that passes through the control. In the callback that is fired you can take that frame data and save it to any image format that wish. You could also use the LEADTOOLS Imaging SDK to save the image data to any of the 150+ image formats that LEADTOOLS supports.

Here is a link to a HOW TO post on our forums that shows how you can use the LEAD Video Callback Filter to capture the image data of each frame from a video stream that you can use as a reference:

https://www.leadtools.co...nize-barcodes-via-webcam

We also ship demos containing the source code in multiple programming languages demonstrating how to use the LEAD Video Callback Filter:

<Install Directory>\LEADTOOLS Multimedia 19\Examples\Multimedia\ltmm\Cpp\Callback
<Install Directory>\LEADTOOLS Multimedia 19\Examples\Multimedia\ltmm\Dotnet\CS\Callback
<Install Directory>\LEADTOOLS Multimedia 19\Examples\Multimedia\ltmm\Dotnet\VB\Callback

The number of images you can save in a second is going to depend on your hardware itself, but you should be able to achieve the speed you are looking for. The callback filter itself is going to capture the image data at the rate that the audio/video is coming through the control. The functionality that is going to slow down the processing is going to be how you save the images within the callback filter, so you may want to look into making that step as efficient as possible to achieve your goal of 6 still images saved per second.

If we can be of any further assistance please let us know.
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2017, Yet Another Forum.NET
This page was generated in 0.242 seconds.