The Following is my Answer to
this and
this, again wrongly posted in my FF
Play4Laz-Thread...
@BosseB
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 path
They are not. You've put them into the Folder, where Programs are typically installed on Windows.
The FFmpeg-CLIs (=
Command
Line
Interfaces) need no Installation (unlike 'VLC').
You simply put them, where You need them.
ffmpeg will be used as found on the path
Generally, Windows searches for a File in the following Sequence, when no Path is specified:
1. The Directory from which the Program loaded (<- This is, what I describe.)
2. The current Directory
3. The Windows SystemDirectories (= [C:\WINDOWS\system], [C:\WINDOWS\system32])
4. The Windows Directory (= [C:\WINDOWS])
5. The Directories, that are listed in the PATH EnvironmentVariable. (<- This is, what You tried.)
You may put the FFmpeg-CLIs wherever You want. For me, the first Option is the easiest one.
desktop caption ... (Chrome playing a YouTube video)
You can only record
or the entire Screen
or a Region
or an App's Window.
Your CommandLine tries to tell 'FFmpeg' to record a Region (815x443 at 60/200)
and the Firefox-Window at the same Time.
How should this work ?
Apart from this, there is no Output-File specified - So, where should 'FFmpeg' record to ?
Last but not least, Your CommandLine has no Arguments to record Audio, neither.
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:
http://www.ffmpeg.org/ffmpeg-all.html.
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'.
Summary:Try this FFmpeg-CommandLine with RunFFmpeg's [Grab]:
-f gdigrab -framerate 25 -offset_x 60 -offset_y 200 -video_size 815x443 -show_region 1 -i desktop -f dshow -i audio="Sound Blaster Audigy" -vcodec libx264 -pix_fmt yuv420p -preset ultrafast "grabbed.mkv",
where You have to replace
"Sound Blaster Audigy" with
Your Soundcard's Name.
To get Your Soundcard's Name, use 'ffmpeg.exe' directly:
(May not work with 'RunFFmpeg' - don't know, why.)
ffmpeg
-list_devices true -f dshow -i dummy -reportAnd for Details about a particular Device (here "Your Soundcard"), run this:
ffmpeg
-f dshow -list_options true -i audio="Your Soundcard" -reportBoth create a LogFile in the
same Directory, where You run 'ffmpeg.exe', which contain
all Infos about AudioDevices, that are installed on Your System (and supported by 'FFmpeg').
Hope, I could help You.