Что нового?

Welcome to DUMPz.ws - старейший компьютерный форум (c) 2004-2021

Присоединяйтесь к нашему сообществу сейчас, чтобы получить доступ ко всем функциям форума. После регистрации Вы сможете создавать темы, публиковать ответы, общаться в чате с единомышленниками.
Blue
Red
Green
Orange
Voilet
Slate
Dark

Component Bitmaps2Video

FireWind

Moderator
Регистрация
2 Дек 2005
Сообщения
1,709
Реакции
1,031
Credits
852
Native language | Родной язык
Русский
Bitmaps2Video
A Delphi-class to support encoding of a series of bitmaps and video clips to a video file. It requires the ffmpeg-library and is intended as an easy to use interface to this library. The class has been developed under Delphi 10.3.3, but should work with later versions and some previous versions, too. Please report issues. We concentrate on writing video streams, there is only rudimentary support for adding audio streams. The ffmpeg-library-version and header-file contained here orginate from Как увидеть ссылки? | How to see hidden links?
  • A Delphi-class to support encoding of a series of bitmaps and video clips to a video file
  • Requires the ffmpeg-library and is intended as an easy to use interface to this library
  • Versions for Win32/Win64 and a cross-platform version currently supporting Win32/Win64/Android32/Android64
  • Most popular file formats and codecs supported, more codecs contained in FFMpeg can be registered
  • Rudimentary support for adding an audio-stream
  • Demos for both versions, set up to compile and run "out of the box", as library files and support for their deployment to Android are included
There are 2 versions of the encoder class:

TBitmapEncoder for platforms Win32 and Win64,
relatively stable with H264, Mpeg-4, Mjpeg, Mpeg1/2 encoders and .avi, .mp4 containers.

TBitmapEncoderM for cross platform with less features and less tested.
Demo currently working with Win32, Win64, Android, Android64 thanks to TurboMagic.
Recently more features translated from Win-version, more thoroughly tested under
Android32, better demo.

The cross platform demo requires at least Delphi 10.3.3 as it contains the necessary support for requesting permission to write to external storage at runtime. The video created on Android is stored in public downloads folder and the Android demo compiles for both 32 and 64 bit.

Shared objects for iOS are supplied, but none of the current developers has a working iOS development setup so they have not been added to the deployment manager and it has thus also not been tested on iOS yet. Feel free to do so and create a pull request once you succeeded.

Problem areas:

Error handling needs to be improved.

Win-version:

The added constructor CreateFromVideo (Win version) has some problems.

Cross-platform version:

The H264-encoder does not work under Android (at least not Android32). The use of TBitmap in threads needs to be more stable. Delphi claims thread-safety of TBitmap, but this does not seem to be the case. Some workarounds are in place, but more insight is needed.