Recent

Author Topic: mp4 video programming with Lazarus  (Read 417 times)

stephanweber

  • Jr. Member
  • **
  • Posts: 55
mp4 video programming with Lazarus
« on: March 16, 2025, 04:46:58 pm »
Hi,

what is the best method to do that in 2025? I heard about ffmpeg4laz, but find a download, etc.
I want to do e.g.:

1. Read-in file, pick a frame picture and copy it as the 1st frame
2. Extract the "speed" if changes frame to frame (e.g. due to camera shaking) , and plot it as curve
3. Up-/Down-sample to change the speed, e.g. to get a constant speed, i.e. compensate camera shake

Thanks for your expert hints.

BTW, at the moment I work on a picture (not video) manipulating app. And Lazarus is great for this, much better than what I can with with macros in GIMP or similar programs.

Bye Stephan

Thaddy

  • Hero Member
  • *****
  • Posts: 16763
  • Ceterum censeo Trump esse delendam
Re: mp4 video programming with Lazarus
« Reply #1 on: March 16, 2025, 05:58:48 pm »
Another one is libvlc that comes in the standard packages.
Still needs libvlc binaries from videolan.org of course.

The videolan.org code also contains code for off-line video editting.
« Last Edit: March 16, 2025, 06:09:32 pm by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: mp4 video programming with Lazarus
« Reply #2 on: March 19, 2025, 11:44:03 am »
@stephanweber

Quote
I heard about ffmpeg4laz
Almost. Actually it's FFPlay4Laz, FFInfo4Laz and FFGrab4Laz.

In FFGrab4Laz, You'll find ScreenRecorder2FPC:
It's a Console, that grabs the entire Screen to a VideoFile, using the FFmpeg Libraries.
Maybe this code is helpful for Your project.
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

 

TinyPortal © 2005-2018