Is it possible to use this project to create screen recording software?see https://forum.lazarus.freepascal.org/index.php/topic,26666.msg373412.html#msg373412 (https://forum.lazarus.freepascal.org/index.php/topic,26666.msg373412.html#msg373412)
I want to create a video/audio capture app with Lazarus/Fpcsee https://forum.lazarus.freepascal.org/index.php/topic,26666.msg382591.html#msg382591 (https://forum.lazarus.freepascal.org/index.php/topic,26666.msg382591.html#msg382591)
Is it needed to use a 32 bit Lazarus/Fpc as mentioned in descriptions?No, the SourceCode of 'RunFFmpeg' should compile to 64-bit, too.
What are the caveats when not using 64 bit?There, aren't. With Win10, You can use both, 64-bit and 32-bit Programs.
the ffmpeg binaries are not found. But they are on my pathThey are not. You've put them into the Folder, where Programs are typically installed on Windows.
ffmpeg will be used as found on the pathGenerally, Windows searches for a File in the following Sequence, when no Path is specified:
desktop caption ... (Chrome playing a YouTube video)You can only record or the entire Screen or a Region or an App's Window.
I wonder if there is not a possibility to define the source window using its handle instead?Never tried that - Check the FFmpeg-Documentation, if WindowHandles are allowed, too:
Otherwise is there a flag to tell ffmpeg to use a partial match for the title?Never tried that - Check the FFmpeg-Documentation for that, too.
And where is the grabbed video file supposed to wind up?If the Output-File has no a Path (like "grabbed.mkv"), it will be created in the same Directory, where the 'ffmpeg.exe' is.
What do I do then???First of all: Read and follow my Instructions for how to use 'RunFFmpeg'.
If I use ffmpeg to extract..., both in secondsI'm a bit astonished, that "Seconds" are precise enough for Editing Movies.
It seems to always contain something before the clip start pointTake a Look at the FFmpeg-Documentation (http://ffmpeg.org/ffmpeg-all.html):
Are mp4 videos quantized such that there is a video "atom" which cannot be dividedEvery Video is a Series of Images with Timestamps (and other Data) to get them decoded in the right Order and synchronized.
When I try this then the cut is clean but takes a very long time to dosetpts and asetpts change the PTS of the Video-/AudioFrames.
to do it during the download but without successFor what You want to do, the recorded File is the Input, which
unrecognized option itoffsetMeans, that the FFmpeg-Option does not support this Argument.
trying to move the capture part to Linux, but so far I only get black video'gdigrab' is a VideoDriver for Windows; for LINUX You should use one of these, listed under "LINUX" (https://trac.ffmpeg.org/wiki/Capture/Desktop).
Here is the reply I got.Perfect !
So it is probably caused by the CPU load...It's quite easy to differ, where this AudioLatency comes from: