Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfeMovie (video & audio playback library with many codecs)  (Read 129800 times)

0 Members and 1 Guest are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #195 on: May 10, 2015, 09:32:42 pm »
Some big news:
- Seeking is now fully supported! More details here
- MinGW binaries are no more more provided. The only supported build toolchain on Windows is now Visual Studio 2013

Also, I just noticed that I forgot to post about it here last december: sfeMovie has switched to C++11. More details here.
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie (video & audio player library with many codecs)
« Reply #196 on: May 24, 2015, 07:02:19 pm »
News again: sfeMovie builds on Windows are now fully done with Visual C++, no more MinGW involved! More details here
« Last Edit: May 24, 2015, 07:58:23 pm by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #197 on: September 30, 2015, 11:13:46 pm »
Hello, will I be able to compile sfeMovie with VS 2015?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #198 on: October 01, 2015, 09:01:33 pm »
Hi iride,

It's not possible yet: current FFmpeg version doesn't build fine with VS2015. So provided FFmpeg version needs to be updated. Will check it but it'll take a bit of time.
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #199 on: October 04, 2015, 06:45:46 pm »
Iride,
FFmpeg version used by sfeMovie has been updated and full build has been successfully tested with Visual Studio 2015. There are no binaries for this version yet but at least you can build from sources for MSVC 2015.

See Getting Started page for how to build.
Want to play movies in your SFML application? Check out sfeMovie!

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #200 on: October 11, 2015, 03:24:59 am »
Sweet! Thank you so much!!
« Last Edit: October 11, 2015, 05:16:23 am by iride »

sfUser

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #201 on: December 30, 2015, 11:32:24 pm »
Hi there,

I would like to add a OpenFromStream to sfeMovie, using something like this:
https://stackoverflow.com/questions/19785254/play-a-video-from-memorystream-using-ffmpeg
http://www.codeproject.com/Tips/489450/Creating-Custom-FFmpeg-IO-Context
Using SFML's InputStream interface.

I seems simple, so I was thinking of implementing it myself, so I downloaded the master branch from github and followed the guide to compile but I get an error compiling ffmpeg.

Can someone provide a link to a fully compiled CMAKE generated project for vs2013 or vs2015 with all the libs already built, so that I only need to compile my changes to the sfeMovie project, instead of the whole solution?

Thanks in advance.

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #202 on: December 31, 2015, 02:07:19 pm »
There will be, o can be a port for android of sfeMovie?
I would like a spanish/latin community...
Problems building for Android? Look here

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #203 on: December 31, 2015, 02:20:38 pm »
@sfUser: I don't want to give prebuilt version to solve your specific case, I prefer to fix what's going wrong. What error do you get?

@DarkRoku: it is not planned. Feel free to fork the project if you want to start the port. I can provide you with support for questions you'd have about sfeMovie itself :)
Want to play movies in your SFML application? Check out sfeMovie!

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #204 on: December 31, 2015, 02:29:46 pm »
I have plans to port it.

The main issue will be FFmpeg.

The seccond is if sfeMovie don´t use inputStream, or provide a virtual class the movie only can be readed from the memory/SDCard of the phone but no from the assets or raw/res folder.
I would like a spanish/latin community...
Problems building for Android? Look here

sfUser

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #205 on: December 31, 2015, 04:54:57 pm »
I get this error:

cl is unable to create an executable file.
If cl is a cross-compiler, use the --enable-cross-compile option.

which is common and documented on ffmpeg's website, however, cl is pointing to the right bin.
If i do "where cl" I get the proper path of vs 2013. I also deleted link as suggested on ffmpeg's website to avoid conflits, but I still fail here.

tar -C "/tmp" -xjf "/sfeMovie/sfeMovie-master/FFmpeg/ffmpeg-2.8.tar.bz2"
/tmp/ffmpeg-2.8/configure  --disable-programs --disable-doc --disable-network --disable-decoders --disable-muxers --disable-encoders --yasmexe="/msys32/usr/bin/yasm.exe" --enable-shared --disable-static  --enable-memalign-hack --toolchain=msvc

That's why I asked for a pre-built ffmpeg .lib that allows me to build sfeMovie + examples without building ffmpeg. I then tried ffmpeg's latest version (2.8.4) and got the same error.
« Last Edit: December 31, 2015, 04:57:10 pm by sfUser »

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #206 on: January 01, 2016, 12:43:36 am »
I do it.

I succesfully port sfeMovie to android!!! And it works.

Let clean the project for make a build system.
I would like a spanish/latin community...
Problems building for Android? Look here

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #207 on: January 01, 2016, 01:22:34 pm »
@sfUser can you check the config.log file from FFmpeg-objects directory in your build directory? At some point it should give more details on why "cl is unable to create an executable file".
You should not need to delete link.exe as building from VS puts VS utilities first in PATH. You're building from VS2013 or 2015, right? With MSYS2 installed?

@DarkRoku so fast :p I guess you built your own FFmpeg binaries for Android then told CMake to use these when configuring sfeMovie build?
« Last Edit: January 01, 2016, 01:29:24 pm by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #208 on: January 01, 2016, 03:01:12 pm »
@DarkRoku so fast :p I guess you built your own FFmpeg binaries for Android then told CMake to use these when configuring sfeMovie build?

No.

First i build static libraries for Android. (Dynamic at least for me don´t worked=
The i make my own Android.mk for sfe::Movie the link to the project.

Later i will provide binaries and steps to get compiled.
I would like a spanish/latin community...
Problems building for Android? Look here

sfUser

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: sfeMovie (video & audio playback library with many codecs)
« Reply #209 on: January 01, 2016, 04:21:20 pm »
OK, so I was able to build everything.

The log you mentioned gave me an error which led me to open a visual studio 2013 command prompt and then open msys2_shell.bat. This way the msys2 shell lib paths are properly set (were missing).
Then, I ran the build_ffmpeg.sh windows 1
afterwards, some packages were missing from msys, namely diffutils and pkg-config
And that's it.