Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Need help - Video conversion with libavcodec.dll


  • Please log in to reply
6 replies to this topic
blenderman
  • Members
  • 6 posts
  • Last active: May 15 2008 08:09 PM
  • Joined: 12 Oct 2006
Hello Autohotey Users,

is it possible to use libavcodec.dll to Convert an Quicktime to an mpeg1 Video? Yes? How i have to start?

Thank you,
oli

http://ffmpeg.mplaye...-doc.html#SEC34

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
Interesting software, thanks for giving this link.
Why do you want to use the DLL instead of the command line program?
And were did you get the DLL, the Sourceforce file release page is empty?
Mmm, perhaps the second question answers the first, did you got the DLL from the MPlayer site?

[EDIT] Found Using libavformat and libavcodec article, the C code using the API is complex, with pointers on structures. It will be difficult to transpose this to AutoHotkey...
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

blenderman
  • Members
  • 6 posts
  • Last active: May 15 2008 08:09 PM
  • Joined: 12 Oct 2006
Thanks PhiLho for your fast reply,

libavcodec ist mostly source (license stuff...) I´want to use the dll because i can give out only one Programm. Not install ffmpeg, install the programm and so on...

Your link ist great but i´ts really to difficult for me...

Ive got the libavcodec.dll from ffdshow
http://ffdshow.sourc... ... ticles.php

Source
http://svn.mplayerhq.hu/ffmpeg/trunk/

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
As I expected, ffmpeg is a single file, no install required, I found it at http://ffdshow.faire.../mirror/ffmpeg/
It comes with ffplay, which looks like the same, perhaps with a display wrapper.
Now, it is over 6MB, which is big for a command line utility.
But it is probably much easier to use than the DLL. I won't work on this, sorry, too complex, not much time nor interest.
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

  • Guests
  • Last active:
  • Joined: --
Hey cool, i found the same link...

Thanks for your Time. The command line is realy easy for example:

Quicktime to Mpeg with fixed bitrate
ffmpeg -i input.mov -vcodec mpeg1video -b 3600 output.mpg 

Ever 50frames (-r 0.5) a scaled jpeg picture from a quicktime
ffmpeg -i a.mov -an -r 0.5 -y -s 320x240 video%d.jpg

One Snapshopt at second 3
ffmpeg -i a.mov  -an -ss 00:00:03 -t 00:00:01 -r 1 -y -s 320x240 video%d.jpg


Other Stupid Question: Can i include the ffmpeg.exe in my script.exe?

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
This one I can answer, and I rekon it isn't so easy to find: FileInstall
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

  • Guests
  • Last active:
  • Joined: --
I realy love AutoHotkey... Thanks a lot