Recent

Author Topic: Updated ffmpeg headers.  (Read 29419 times)

kamischi

  • Full Member
  • ***
  • Posts: 177
Updated ffmpeg headers.
« 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.
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

hinst

  • Sr. Member
  • ****
  • Posts: 303
Re: Updated ffmpeg headers.
« Reply #1 on: January 06, 2010, 10:47:35 am »
I have no idea about what for could I use headers for ffmpeg  :-[
Too late to escape fate

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Updated ffmpeg headers.
« Reply #2 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
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8729
  • FPC developer.
Re: Updated ffmpeg headers.
« Reply #3 on: January 06, 2010, 02:25:21 pm »
Are these based on the Jedi-SDL headers? IIRC they also had ffmpeg headers.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Updated ffmpeg headers.
« Reply #4 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.
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

btray77

  • New member
  • *
  • Posts: 5
Re: Updated ffmpeg headers.
« Reply #5 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

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #6 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??

Leledumbo

  • Hero Member
  • *****
  • Posts: 8266
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Updated ffmpeg headers.
« Reply #7 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?

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #8 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.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8266
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Updated ffmpeg headers.
« Reply #9 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

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #10 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....

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #11 on: June 14, 2010, 10:27:15 am »
i need example - "get info from video file" - codec, bitrate, duration, video stream, audio stream, etc...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8266
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Updated ffmpeg headers.
« Reply #12 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.

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #13 on: June 15, 2010, 01:11:35 pm »
ok. it's work with .dll.....

how is include a static version into exe?

kba

  • New member
  • *
  • Posts: 6
Re: Updated ffmpeg headers.
« Reply #14 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 ?

 

TinyPortal © 2005-2018