RDP1974 40 Posted August 21, 2020 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
FPiette 384 Posted August 21, 2020 Maybe you should tell us more about the intended application. Share this post Link to post
RDP1974 40 Posted August 22, 2020 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
FPiette 384 Posted August 22, 2020 (edited) 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 August 23, 2020 by FPiette Typos Share this post Link to post