FFmpeg Win32 built with Eclipse and MinGW/MSYS PDF Print E-mail

It took me some time and a lot of research on Google to setup a fully automated FFmpeg IDE on a Windows machine. A lot of documents are available but none of them is comprehensive of all the steps required, from configuration to installation.

 

INDEX


REQUIREMENTS

FFmpeg is C++ code oiginally developed on/for *nix machines, but despite this it remains highly portable and cross platform. On Windows computers C/C++ code can be compiled with the GNU compiler GCC which requires a UNIX-like development environment, in this case provided by MinGW (and MSYS)

Instructions, how-to, installers and other resources you need to setup such environment are available from the respective web pages and are frequently updated (that's why not directly linked from here). Various pages with installation instructions are available in REFERENCES.

Please read carefully FFmpeg's RELEASE NOTES about specific MinGW/MSYS versions required to succesfully build the program.

Once MinGW/MSYS is installed you are provided with a set of command line development tools; next you need to speed up coding/debugging with a full featured C/C++ IDE such as Eclipse. If it's your first time using Eclipse download Eclipse IDE for C/C++ Developers otherwise you can simply downloand/install the CDT Eclipse plugin.

FFmpeg source code needs configuration prior to build or install and this is done via shell configuration file/script; as optional step might be handy to have installed a shell editor such as ShellEd (simply download and unzip into the Eclipse installation folder).

 

REFERENCES

I found some very helpful pages on the net and here they go as a reference for you too:

 

DOWNLOAD FFmpeg

Once the IDE is ready you can go on with FFmpeg. As stated in the FFmpeg web page, no official builds are provided; the only way to go is compile the source code either downloading the latest snapshot zip file or checking the code out from repository.

Best method depends of course on your needs, but if your plan is develop always with the latest FFmpeg  available, checkout from repository is the right choice. I found this method preferable also because you can change to old revisions just in a click. Again SVN functionality will be available in Eclipse installing the Subclipse plugin.

Create a new SVN project in Eclipse via File->New->Other... menu. Define a new repository location that point to svn://svn.mplayerhq.hu/ffmpeg/trunk and select the revision you want to checkout (default is HEAD revision); click on Finish, the wizard create your project and fill it with files from the repository.

 

CONFIGURE FFmpeg

At this point MinGW/MSYS and Eclipse are installed, and FFmpeg project set up: next, the required configuration must be done. You can launch MSYS, change to FFmpeg source folder and run the following command:

 

./configure --disable-mmx --enable-shared --shlibdir=. --enable-memalign-hack

 

You can choose any flag available looking directly at the configure script for help. The proposed line in particular creates FFmpeg shared libraries (dll).

If you want to configure different FFmpeg or if you have very long flag sequences this method could be really time consuming.

Better way to do configuration is let Eclipse manage the overall process: in Eclipse with C/C++ view selected click on Run menu then select External Tools->External Tools Configuration so a dialog like the following would show up

 

ext_tools

 

Create a new Program and fill in the fields as above; change Location field to point to sh.exe into your MSYS bin location, Apply and Run. The configuration is done automatically. Then you can recall it anytime by the Run External Tools button/dropdown.

You can also save as many configurations as you need (typically with different Arguments field).

 

BUILD/INSTALL FFmpeg

Eclipse CDT has a view called Make targets in which you can link all targets from a makefile; once you have your makefile inside the project folder just right-click on it then go to Make targets->Create and fill in name and target fields. Usually you create more tha one targets for make, make install, distclean, etc.

Double clicking on the make target hopefully should build FFmpeg.

Comments

avatar fta
0
 
 
Great post
Thanks
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar casino en ligne
0
 
 
I are following your blogposts lately, just need to say many thanks for all informative stuff i have observed here, helped me learn alot lately. 1 point I like to review is I'm not fond in the way you press yourself also significantly into the article itself.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
This is amazing. I have been following this also and these topics are so complicated, it blows my mind.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar bondage kit
0
 
 
This is the really a good website with some lovley post.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar NIKE AIR MAX
0
 
 
I am glad to talk with you and you give me great help! Thanks for that, I am wonderring if i can contact you via email when i meet problems?
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar west nile virus
0
 
 
Let me inform me if you got the email address...

Thanks in advance
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Orange Bedding
0
 
 
I, too, would like to email you if necessary. How can I do that? Thanks!
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar NoemiWynn
0
 
 
That's well known that money makes us free. But how to act when somebody does not have money? The only one way is to get the loans or just secured loan.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar online papers
0
 
 
Yes it is very easy to get disappointed if you are looking for one single rule for blogging success. Different masters give different pieces of guidance and many controvert one another. For example all students have a great opportunity to type buy paper and get help.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar online essays
0
 
 
I admit it now! You can check multiple orders. This company is for certain superior with alacritous delivery. They was there when I required it the most. Now I can breather quiet knowing I can depend on essay service for my future demands.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar sitemap
0
 
 
The college essay or custom research papers creation could take very long period of time, but time supposes to be a valuable thing, hence this would be worth to order term paper to save a lot of time.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar ringtones
0
 
 
Every girl in the our world likes to become unique, but does not get know the simple way to do that. But billions of guys look for the ringtones or just cell phone ringtones to become original.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar website design
0
 
 
I managed to start building FFMPEG from Wascana through your building process but when it starts to build itself, I got an error message.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Yes lol this was the same case that happened here...it was showing the error I was trying to find the solution for this....
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Samuel
0
 
 
Thanks a lot for the explanation. It can help me a lot. As for me, I try to optimize my work as well as it is possible, that is why I follow all such posts. But at the same time I hate errrors which are inevitable when you try smth new. That is why I always find as much information as I can. I find even tutorials and guidelines, usually I successfully use for it pdf search engine http://pdf.rapid4me.com . Though I spend time for learning but then I am glad to work with it. That is why thanks a lot for a nice explanation.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Seo nepal
0
 
 
wow this is great post and very informative.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar ipod to itunes
0
 
 
Thanks for the information. thanks for posting the steps and requirements.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar ipod to itunes
0
 
 
Thanks for the information. thanks for posting the steps and requirements.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
I've tried the steps, but it didn't work. Please help me..
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
I have tried it but there are problems occured?
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar pressure walls
0
 
 
Thanks for the information it really helped a lot :)
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
The information you provided is quite simple and clear for knowledge seeker. Thanks for your research anyways.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
This was the really great software that I have used...thanks a lot
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
It's quite a useful application. Thanks for sharing this information. It will surely helps me a lot.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Thanks for the information it really helped a lot :)
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Custom Papers
0
 
 
I think I may need my tech wiz of a cousin to help me with this one. This looks a bit complicated.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Great Post.I like the link.Now expecting some good ideas from your upcoming post.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Hi Like Your Post.Great stuff and new ideas.So keep it up.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
So good I found your post, I really need your resource for my work.
Thanks for sharing your work with us.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar MBT Chapa
0
 
 
Great info.I like all your post.I will keep visiting this blog very often.It is good to see you verbalise from the heart and your clarity on this important subject can be easily observed. Thanks again!
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar gucci handbags
0
 
 
I have learned a lot from your blog. I have been a copywriter and I really loved to see your blog. Well done!
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Thanks for the information, Normally i play the video in media player but some videos didn't work in it...... now i got the info why it happens....

Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
I admit, I have not been on this webpage in a long time... however it was another

joy to see It is such an important topic and ignored by so many, even

professionals. I thank you to help making people more aware of possible issues.
Great stuff as usual...
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar air max 90
0
 
 
For this matter, once I discussed with one of my friends, not only about the

content you talked about, but also to how to improve and develop, but no results.

So I am deeply moved by what you said today.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar tomato pests
0
 
 
thanks for showing this short method. i couldnt download this software on my Pc for a long time.thanks for showing this.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Hey man, was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Rover Spares
0
 
 
Your application is a great one.
It is really interesting to do and try.
Thanks for sharing you fabulous project.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar prada outlet
0
 
 
Hhe article's content rich variety which make us move for our mood after reading this article. surprise, [url=http://www.prada-outlet-st ore.com]cheap prada[/url] here you will find what you want! Recently, I found some wedsites which commodity is colorful of fashion. Such as xxxxxxxx that worth you to see. Believe me these websites won't let you down.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
are you sure this will work
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar nike air max
0
 
 
It looks good,I have learn a recruit!Recently,I found an excellent online store, the XX are completely various, good quality and cheap price,nike air max shoes it’s worth buying!
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Interesting how it was developed. That is absolutely incredible.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel

Talk about [URL=http://www.hotsalewatch.com]discount watches[/URL] .My mum goto buy
[URL=http://www.myceramicwatch.org]ceramic watch[/URL].But I like
[URL=http://www.mydiscounthandb ags.com]discount handbags[/URL] more.
Where do I could buy
[URL=http://www.mydiscountwatch es.org]discount watch[/URL].
Let's go to buy
[URL=http://www.thedesignerwatc hes.org]Designer Watches[/URL].
Find the
[URL=http://www.theledmanufactu rer.org]led manufacturer[/URL] from China.
Do you want to purchase for low price
[URL=http://www.wholesalejewelr ywatches.net]wholesale jewelry[/URL]
that is what I want.
I want to be [URL=http://www.benwon.com]led strip lights[/URL] designer.
My father want to find [URL=http://chinaelectrade.com]China Electronics[/URL] supplier.

[URL=http://www.themarcjacobsha ndbags.org]Marc Jacobs Handbags[/URL] This is the one I want to

buy.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Best SEO
0
 
 
thanks for providing the whole list of urls and the article was very nice, i loved reading them.
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar casinò online
0
 
 
è uno dei casino online più amati e frequentati del web. Offre bonus adatti ad ogni tipo di giocatori e tutti i classici giochi come dadi casino online http://www.casinoonlinevip.it
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar essay help
0
 
 
Thanks for the interesting information. I will add your blog to my rss reader...
Adam
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Last Updated on Wednesday, 07 April 2010 21:03