You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Wednesday, June 8th 2011, 11:33pm

Using ffmpeg as built in lib

I'm no0b in C++, and i started learning cpp with Qt, i call this way Q++ :D
So i have a question about working with ffmpeg as buit in library!
For example in console(temrinal) we can do amazing stuff with ffmpeg commands, but i couldn't found a way to doing that stuff in source code.
Of course i can work with QProccess, but it's not my point.
There is a some way to do that, like include ffmpeg library in source code and send argument & parameters like in Console?
If not, i think i have to wrestling with libavcode :P

This post has been edited 1 times, last edit by "Alir3z4" (Jun 9th 2011, 6:05am)



  • "mrdebug" is male

Posts: 102

Occupation: Developer

  • Send private message


Tuesday, August 30th 2011, 5:05pm

In order to use ffmpeg in Qt as external libraries I have compile ffmpeg in thi mode:

./configure --enable-shared

In the .pro files I have added these rows:

LIBS += -Wl,-rpath=\\\$$ORIGIN/libs

INCLUDEPATH += ../../ffmpeg-0.8.2/

LIBS += ../../ffmpeg-0.8.2/libavcodec/
LIBS += ../../ffmpeg-0.8.2/libavdevice/
LIBS += ../../ffmpeg-0.8.2/libavfilter/
LIBS += ../../ffmpeg-0.8.2/libavformat/
LIBS += ../../ffmpeg-0.8.2/libavutil/
LIBS += ../../ffmpeg-0.8.2/libswscale/

In order to run the program, I have created a directory called "libs" in the program directory. In it I have put the ffmpeg libraries.

Are you a good ffmeg developer? I have a big problem with "av_open_input_stream" can you help me? I not understood how to use it.
Skype: mrdebug
Videosurveillance and home automation!

Similar threads

Used tags

c++, ffmpeg