Jump to content
RDP1974

best library for camera grabbing

Recommended Posts

in your opinion what is the best component /wrapper for camera grabbing to file using VP8/H264 (web) codecs?

Share this post


Link to post
21 hours ago, FPiette said:

Maybe you should tell us more about the intended application.

record from camera saving in H264 file locally, without upload it to a media server

Share this post


Link to post

In the past, I have used a lib from michael@grizzlymotion.com. The units are VFrames.pas and VSamples.pas. I don't remember where I found it but a little search show those two links of interest.

https://github.com/MakeMagazinDE/GRBLize

https://stackoverflow.com/questions/19726643/how-to-get-a-snapshot-from-a-webcam-with-delphi7-using-vframestvideoimage

Using this code, I get raw frames from the camera, then I use FFMpeg tool to compress rawframes with the required codec to produce anyone of the ffmpeg video format. I invoke FFMpeg command line, feeding it with a pipe. My Delphi program write to the pipe and FFMpeg read the pipe.

FFMpeg is available from https://ffmpeg.org/download.html You do need the source code. Prebuild executable is enough since you'll pipe the frames into the utility.

To pipe data, I use my own code. I wrote a blog article: http://francois-piette.blogspot.com/2013/04/inter-process-communication-using-pipes.html

 

Edited by FPiette
Typos

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×