Screen Recorder Programming - Release Issues

I need a recording screen (by capturing 15 pictures per second). This is the part that I know how to do. But I donโ€™t know how to record this in some popular video format. The best option I found is to write frames to split PNG files and use Mencoder with a command line that can convert them to many output formats. But maybe someone has another idea?

Requirements:

  • There must be multi-platform solutions (I use Free Pascal / Lazarus). Windows, Linux, MacOS
  • There are several libraries for this?
  • It can be a complex command-line application that also records for me, but I should be able to edit frames before converting all the raw data into popular video formats.
  • All materials that can give me some idea are welcome. APIs, libraries, anything, even in languages โ€‹โ€‹other than FPC (I would try to rewrite it or find some equivalent)
  • I also considered writing frames in RAW video format, and then use Mencoder (it can handle it) or another solution, but cannot find any API / doc file for RAW video

Hi

+8
delphi freepascal lazarus video-processing
source share
2 answers

Argalatyr already mentioned ffmpeg.

There are two ways you can work:

  • Without creating a new process. All you have to do is prepare the correct input (maybe, for example, a series of jpeg images) and the correct command line parameters. After that, you simply call ffmpeg.exe and wait for it to complete.

  • ffmpeg uses some dll that does the actual work. You can use these dlls directly from the Delphi application. This is a bit more because it is lower level, but in the end it will give you finer control over what happens and what you show the user during processing.

Here are some validation solutions:

+4
source share

It was previously discussed with the Delphi component here . This is a very simple component that sometimes generates some weird movies. Perhaps the beginning.

-one
source share

All Articles