Lazarus

Announcements => Third party => Topic started by: kamischi on January 05, 2010, 08:25:20 pm

Title: Updated ffmpeg headers.
Post by: kamischi on January 05, 2010, 08:25:20 pm
As part of developing UltraStarDeluxe, the FreePascal headers for ffmpeg libs have been updated according to the changes of the C header files.

You can get the sources here:

http://ultrastardx.svn.sourceforge.net/viewvc/ultrastardx/trunk/src/lib/ffmpeg/

Have fun fighting the beast - MiSchi.
Title: Re: Updated ffmpeg headers.
Post by: hinst on January 06, 2010, 10:47:35 am
I have no idea about what for could I use headers for ffmpeg  :-[
Title: Re: Updated ffmpeg headers.
Post by: kamischi on January 06, 2010, 11:50:49 am
I have no idea about what for could I use headers for ffmpeg  :-[

Use the cross-platform ffmpeg libraries (http://www.ffmpeg.org/) to record, convert and stream audio and video.

MiSchi
Title: Re: Updated ffmpeg headers.
Post by: marcov on January 06, 2010, 02:25:21 pm
Are these based on the Jedi-SDL headers? IIRC they also had ffmpeg headers.
Title: Re: Updated ffmpeg headers.
Post by: kamischi on January 06, 2010, 03:07:49 pm
Are these based on the Jedi-SDL headers? IIRC they also had ffmpeg headers.

As much as I know and see, Jedi-SDL does not contain ffmpeg headers, but smpeg headers. The start of this work has been the header files from Victor Zinetz at http://www.iversenit.dk/dev/ffmpeg-headers/

MiSchi.
Title: Re: Updated ffmpeg headers.
Post by: btray77 on June 04, 2010, 10:38:18 pm
Thanks for this MiSchi.  I have been looking for a platform independent way to create video files.

-Brad
Title: Re: Updated ffmpeg headers.
Post by: kba on June 08, 2010, 01:57:34 pm
rational.pas(80,39) Hint: Converting the operands to "Int64" before doing the subtract could prevent overflow errors.
avcodec.pas(1950,5) Warning: Overriding calling convention "CDecl" with "CDecl"
avcodec.pas(2035) Warning: Library libavcodec.dll not found, Linking may fail !
avformat.pas(79,9) Hint: Type "int" redefinition
avformat.pas(687) Warning: Library libavformat.dll not found, Linking may fail !
Project1.pas(13,1) Error: Import library not found for libavutil
Project1.pas(13,1) Error: Import library not found for libavformat
Project1.pas(13,1) Error: Import library not found for libavcodec
Project1.pas(13,1) Fatal: There were 3 errors compiling module, stopping
---------------------------------------------

How's compile it??
Title: Re: Updated ffmpeg headers.
Post by: Leledumbo on June 09, 2010, 07:36:46 am
Quote
Project1.pas(13,1) Error: Import library not found for libavutil
Project1.pas(13,1) Error: Import library not found for libavformat
Project1.pas(13,1) Error: Import library not found for libavcodec
Do you have any static or dynamic version of those libs?
Title: Re: Updated ffmpeg headers.
Post by: kba on June 09, 2010, 09:54:11 am
Quote
Project1.pas(13,1) Error: Import library not found for libavutil
Project1.pas(13,1) Error: Import library not found for libavformat
Project1.pas(13,1) Error: Import library not found for libavcodec
Do you have any static or dynamic version of those libs?
Yes.
Both dynamic and static.
Title: Re: Updated ffmpeg headers.
Post by: Leledumbo on June 10, 2010, 05:02:37 am
OK, is it located somewhere fpc can find? If not, add -Fo<those libs dir> to the compiler options
Title: Re: Updated ffmpeg headers.
Post by: kba on June 14, 2010, 04:19:03 am
OK, is it located somewhere fpc can find? If not, add -Fo<those libs dir> to the compiler options
Where is that option? Can't find....
Title: Re: Updated ffmpeg headers.
Post by: kba on June 14, 2010, 10:27:15 am
i need example - "get info from video file" - codec, bitrate, duration, video stream, audio stream, etc...
Title: Re: Updated ffmpeg headers.
Post by: Leledumbo on June 15, 2010, 12:01:11 am
Quote
Where is that option? Can't find....
Sorry, should be -Fl. I don't remember coz I'm not at home and I don't have lazarus here. If you can't find it, add in additional compiler option box.
Title: Re: Updated ffmpeg headers.
Post by: kba on June 15, 2010, 01:11:35 pm
ok. it's work with .dll.....

how is include a static version into exe?
Title: Re: Updated ffmpeg headers.
Post by: kba on June 15, 2010, 01:47:58 pm
As part of developing UltraStarDeluxe, the FreePascal headers for ffmpeg libs have been updated according to the changes of the C header files.

You can get the sources here:

http://ultrastardx.svn.sourceforge.net/viewvc/ultrastardx/trunk/src/lib/ffmpeg/

Have fun fighting the beast - MiSchi.
i'm using that headers for a small project. What it's show "mpeg4" for DIVX and XVID codecs ?
Title: Re: Updated ffmpeg headers.
Post by: v4v4n on February 04, 2011, 12:40:13 pm
i've been trying whole day to access this address :

http://ultrastardx.svn.sourceforge.net/viewvc/ultrastardx/trunk/src/lib/ffmpeg/

but it's always fail. i need to download the pascal header on it for my project...
is this address still exist or move to somewhere else ?
somebody knows other links to this file ?

pls help me :(

 
Title: Re: Updated ffmpeg headers.
Post by: DirkS on February 04, 2011, 01:16:28 pm
SVN browse does not seem to work for that project. Other options:
* browse the source GIT repository using http://ultrastardx.git.sourceforge.net/git/gitweb.cgi?p=ultrastardx/ultrastardx;a=tree;f=src/lib/ffmpeg;hb=HEAD (http://ultrastardx.git.sourceforge.net/git/gitweb.cgi?p=ultrastardx/ultrastardx;a=tree;f=src/lib/ffmpeg;hb=HEAD) in your web browser
* use a subversion client (e.g. TortoiseSVN) at https://ultrastardx.svn.sourceforge.net/svnroot/ultrastardx/trunk/src/lib/ffmpeg

Gr.
Dirk.
Title: Re: Updated ffmpeg headers.
Post by: v4v4n on February 04, 2011, 02:22:01 pm
@Dirk thank you very much...... :)
Title: Re: Updated ffmpeg headers.
Post by: mdalacu on February 06, 2011, 01:36:08 pm
Hi, can you play a video file using ffmpeg (ffplay) into a window?  (like mplayer -wid WHandle)
Thank you.
Title: Re: Updated ffmpeg headers.
Post by: starapple on June 11, 2014, 05:29:33 pm
What do I download from the project to access the capability of embedding ffplay in my project?

Thanks.
Title: Re: Updated ffmpeg headers.
Post by: Mike.Cornflake on June 12, 2014, 10:54:33 am
What do I download from the project to access the capability of embedding ffplay in my project?
Using ffplay in your application is not related to the subject "Updated ffmpeg headers".   Additionally, this is a stale thread.  Both mean you're unlikely to get answers to your question.  Start a new thread with the subject line something similar to "Using ffplay to play video in a Lazarus app" and I will answer part of your question there.
Title: Re: Updated ffmpeg headers.
Post by: DJMaster on November 07, 2017, 09:32:48 pm
Fresh FFmpeg headers binding for FPC are available at:

 https://github.com/DJMaster/ffmpeg-fpc

Working in progress, stay tuned!
TinyPortal © 2005-2018