You are not logged in.

Dear visitor, welcome to QtForum.org. 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.

1

Wednesday, June 8th 2011, 11:33pm

Using ffmpeg as built in lib

Hi.
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
tnx

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


mrdebug

Trainee

  • "mrdebug" is male

Posts: 102

Occupation: Developer

  • Send private message

2

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
make

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/libavcodec.so
LIBS += ../../ffmpeg-0.8.2/libavdevice/libavdevice.so
LIBS += ../../ffmpeg-0.8.2/libavfilter/libavfilter.so
LIBS += ../../ffmpeg-0.8.2/libavformat/libavformat.so
LIBS += ../../ffmpeg-0.8.2/libavutil/libavutil.so
LIBS += ../../ffmpeg-0.8.2/libswscale/libswscale.so

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.
---
www.denisgottardello.it
Skype: mrdebug
Videosurveillance and home automation!
http://www.denisgottardello.it/DomusBoss/DomusBoss.php

Similar threads

Used tags

c++, ffmpeg