Ogre-FFmpeg-Videoplayer 1.0 released

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
Zeal
Ogre Magi
Posts: 1260
Joined: Mon Aug 07, 2006 6:16 am
Location: Colorado Springs, CO USA

Re: Ogre-FFmpeg-Videoplayer 1.0 released

Post by Zeal »

Finally had some time to play with this, but running into trouble with the cmake...

Code: Select all

Found FFmpeg: C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib/avcodec.lib;C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib/avformat.lib;C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib/avutil.lib;C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib/swscale.lib  
Boost version: 1.60.0
Found the following Boost libraries:
  thread
Looking for OGRE...
OGRE_PREFIX_WATCH changed.
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found Ogre Ghadamon (1.9.0)
Found OGRE: C:/SDKs/Ogre/build/lib/Debug/OgreMain_d.lib
Looking for OGRE_Paging...
Could not locate OGRE_Paging
Looking for OGRE_Terrain...
Could not locate OGRE_Terrain
Looking for OGRE_Property...
Could not locate OGRE_Property
Looking for OGRE_RTShaderSystem...
Could not locate OGRE_RTShaderSystem
Looking for OGRE_Volume...
Could not locate OGRE_Volume
Looking for OGRE_Overlay...
Could not locate OGRE_Overlay
CMake Error at CMakeLists.txt:57 (target_link_libraries):
  Cannot specify link libraries for target
  "C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib/avcodec.lib" which is
  not built by this project.


Configuring incomplete, errors occurred!
See also "C:/SDKs/ogre-ffmpeg-videoplayer-master/build/CMakeFiles/CMakeOutput.log".
I am using the prebuilt dev package for ffmpeg (https://ffmpeg.zeranoe.com/builds/), will this not work?

*ok I think my problem is how I am telling cmake where to find ffmpeg. In CMakeLists.txt, just below # Find FFMpeg, I included the two following lines...

Code: Select all

SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/include")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:/SDKs/ffmpeg-20160318-git-a7b8a6e-win64-dev/lib")
It 'works', but I assume there is some other way I need to set the variables so cmake can run properly?
User avatar
Zeal
Ogre Magi
Posts: 1260
Joined: Mon Aug 07, 2006 6:16 am
Location: Colorado Springs, CO USA

Re: Ogre-FFmpeg-Videoplayer 1.0 released

Post by Zeal »

Had been playing with the other ffmpeg plugin (TheSHEEPs), not having any luck, so came back to this one. I am now able to get cmake working, and the project compiles ok.

I downloaded the "ffmpeg-2.1.4-win32-dev" package found here...

https://ffmpeg.zeranoe.com/builds/win32/dev/

However, when I try and use the library in my project I would get the following...

Code: Select all

1>App.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
1>avutil.lib(dqcfs00217.o) : error LNK2026: module unsafe for SAFESEH image.
1>avutil.lib(dqcfs00137.o) : error LNK2026: module unsafe for SAFESEH image.
1>avutil.lib(dqcfs00138.o) : error LNK2026: module unsafe for SAFESEH image.
...
Not sure what the heck SAFESH is, but I disabled it (linker->advanced), and everything built finally! However, when running, it is looking for some dlls that are NOT in the ffmpeg-2.1.4-win32-dev package. avutil-52.dll for example. The package contains an avutil-52.def, but no dll.

What the heck?

*edit

dlls are in a separate package here... https://ffmpeg.zeranoe.com/builds/win32/shared/

ok looks like it 'runs' now... testing video playback...
Post Reply