Forum > Audio and Video

NON(!)-EXE FFPlay4Laz

(1/28) > >>

metis:
@ALL, specially @Fred vS

Inspired by the Thread "Component for retrieving data from video files" in this Forum
http://forum.lazarus.freepascal.org/index.php/topic,22038.0.html,
I started to build up a FFmpeg-MediaPlayer for Lazarus, which
is NOT "only" using FFmpeg's 'ffplay.exe' (= "NON(!)-EXE").

For the FFmpeg-CommandLine-Tools (https://ffmpeg.org/about.html) there are already plenty of
Documentations, CodeSamples and Examples for how to use them, as well as FrontEnds.

But, what's about the cute, little FFmpeg-Libraries ?

For those, who are interested in Stuff like this, the best Entrance, that I found is this:
"An ffmpeg and SDL Tutorial or How to Write a Video Player in Less Than 1000 Lines"
http://dranger.com/ffmpeg/
Whilst this is all C-Code, the Pascal-Counterparts can be found in 'Ultrastar' and 'grape3D'.

Current ProjectState:
- Open/Read/Decode/Close a MediaFile       : done
- Get all Infos about that MediaFile                : done (= "Retrieving Data from VideoFiles" )
- Video-Output via SDL's YUV-Overlay          : done
- Video-Output via SDL's RGB-Surface         : started, but not so important for me
- Video-Output via SDL's Textures                 : done
- Video-Output via the 'LazOpenGLControl'   : done
  (This Part includes the FPC-Codes to X/Y-Shift, Flip horizontally/vertically, Zoom, Rotate with 'OpenGL')
- Audio-Output via SDL-Audio and PortAudio : done
- Threading, AV-Synching, Seeking, Looping : done

BTW:
This Topic is NOT meant to discuss the Pros&Cons of FFmpeg-EXEs/-LIBs, or
do something like "FFmpeg-EXEs vs. FFmpeg-LIBs", because this is evident.

The last Release with SDL v1 (fully-featured Player, CLI+DLL + Test&Demo-GUI with Source) can be downloaded here:
https://forum.lazarus.freepascal.org/index.php/topic,26666.msg337046.html#msg337046

The first Release with SDL v2 (fully-featured ConsoleVersion with SDL2) can be downloaded here:
https://forum.lazarus.freepascal.org/index.php/topic,26666.msg428667.html#msg428667

Have Fun with superior Sound  :)

marcov:
(IIRC Jedi-SDL already had a ffmpeg header. It might be the origin of the ones you found)

metis:
@marcov

Do You refer to the Jedi-SDL, that comes with Ultrastrar-SourceCode ?

I'm not talking about Pascal-Headers for FFmpeg; these indeed already do exist.


@marcow

Maybe, last Time I got You wrong, and You just wanted to tell me, where to get the FFmpeg-Headers from.  :)

Well, I started the Project with the Headers, that come with Ultrastar-SourceCode (= v52.67.2):
http://ultrastardx.sourceforge.net/usdx-downloads/usdx/

Once this works, I'll intend to implement those from FFVCL:
http://www.delphiffmpeg.com/headers/

metis:
@Fred vS

If You are still interested in implementing FFmpeg in Your UOS, to play ANY AudioFormat with it, have a Look at this:
https://github.com/varianus/ovoplayer
-> 'src\audioengine_ffmpeg.pas'  ;)


aradeonas:
Hi,

Is you project have source any where?
I wan to take a look at it,It seems interesting.

Navigation

[0] Message Index

[#] Next page

Go to full version