Qt ffmpeg wrapper example not working out of the box (solved)
-
Hi and welcome to devnet,
AFAIR you need to install the development package of ffmpeg, it's really just a wrapper.
-
That's normal, you just installed ffmpeg, not the development package
-
Thanks!
apt-get install libavutil-dev libavformat-dev libswscale-dev libavcodec-dev
did the trick for those errors, now I have about 71 errors involving the function calls to those libraries.
output:
undefined reference to 'avcodec_init'
undefined reference to 'avformat_version'
etc..
etcWhat's going on here?
-
Wild guess: the wrapper was written for an old version of ffmpeg. You'll have to update the code a bit
-
Downloading the latest build of qt ffmpeg wrapper fixed all the errors, but left about 70 warnings about deprecated functions and comparing unsigned and signed ints. After fixing all those, there are no errors left and QT builds and exits without any problems.
However, I can't find a file to run after building. The example is called simpleencdec and I can't run
./simpleencdec
in the build directory. Any suggestions?
-
Did you open and build the example project ?
-
If you are building with Qt 4 you don't have the widgets module
You're welcome !