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

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

0 Members and 2 Guests 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 #75 on: May 04, 2014, 11:34:23 am »
I suppose you're using sfeMovie 1.0, as it's fixed in sfeMovie2 branch. Since some Windows or MinGW update the parallel build does no more work fine. So in build.sh, line 11 set jobsCount to 1 and that should do it.
Want to play movies in your SFML application? Check out sfeMovie!

dixondean25

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #76 on: May 04, 2014, 06:39:28 pm »
Alright I set jobsCount =1.
It made progress i think lol, but i still got a lot of warnings. I'm not sure if they can be set to be ignored or not, but at the end it said, "some warning being treated as errors"
                                   "make: ***[libavformat/os_support.o] Error 1
                                   "***an error occurred, aborting."
(see picture)

Is there something else I need to do?
You guys have helped a lot already, thank you so much. I just really want to get videos on my game.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #77 on: May 04, 2014, 10:37:58 pm »
Hmmm… I do remember a few people were having the same issue. I don't know if it's againt related to some MinGW or Windows update.

Anyway, the error is related to network support in FFmpeg, which sfeMovie does not need.
So, at line 325 of build.sh, where you have the definition of 'args', add --disable-network before --disable-ffmpeg.

I'mma do this fix in sfeMovie2 branch too, just to avoid any further issue with this. Sorry for the inconvenience.
Want to play movies in your SFML application? Check out sfeMovie!

dixondean25

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #78 on: May 05, 2014, 03:38:53 pm »
So, at line 325 of build.sh, where you have the definition of 'args', add --disable-network before --

Did this, and it worked, and also made the sfeMovie.sln solution I needed.
So then i opened the solution, set ALL_BUILD as the StartUp project, and tried to build it.
I got errors(see picture), but again I'm not sure if I should worry about them or not.

Sorry for the inconvenience.

I should be the one apologizing to you for bothering you! I'm sorry! But seriously, you're awesome for even helping me this much, thank you!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #79 on: May 05, 2014, 06:53:09 pm »
So, at line 325 of build.sh, where you have the definition of 'args', add --disable-network before --

Did this, and it worked, and also made the sfeMovie.sln solution I needed.
So then i opened the solution, set ALL_BUILD as the StartUp project, and tried to build it.
I got errors(see picture), but again I'm not sure if I should worry about them or not.
Yes you should ;D As shown in your screenshot, some targets failed to build.

Here the issue is just that you're trying to build debug libraries whereas sfeMovie 1.0 only supports release builds. It's not even stated on sfeMovie's "Getting started" guide so it wasn't obvious to guess this (now I added it to the build guide :) ). So just set 'Release' as the active mode in Visual Studio.

Sorry for the inconvenience.

I should be the one apologizing to you for bothering you! I'm sorry! But seriously, you're awesome for even helping me this much, thank you!
As the main author of sfeMovie, I say I'm sorry because it's a shame that you encounter so many issues just to build the library. I wanted to make it the most simple possible to use but, as of version 1.0, there have been many issues and non-obvious steps. Hopefully the upcoming sfeMovie version fixes all the issues you got (till now). I just hope there won't be new annoying ones ;)
Want to play movies in your SFML application? Check out sfeMovie!

dixondean25

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #80 on: May 05, 2014, 07:38:19 pm »
I wanted to make it the most simple possible to use but, as of version 1.0, there have been many issues and non-obvious steps. Hopefully the upcoming sfeMovie version fixes all the issues you got (till now). I just hope there won't be new annoying ones ;)
Well I hope I've helped by sharing my issues!

Also, AT THE END OF THE BUILD, I got a pop-up error saying it can't start ALL_BUILD because it can't find the file specified or something like that(see picture), it wasn't included in the "Output" section of Visual Studio.
But at the end of the "Output" section all it had was...
========== Build: 9 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
which is a good thing. So I don't think i should worry about the pop-up error. What do you think?

I ran it again, the pop up came up again, but the output changed to...
========== Build: 2 succeeded, 0 failed, 7 up-to-date, 0 skipped ==========
Which i think is still okay.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #81 on: May 05, 2014, 07:45:51 pm »
Well, the ALL_BUILD target is just a target that aggregates other targets. That way you build ALL_BUILD and all interesting targets are built at once. So the ALL_BUILD target does not produce an executable itself, that's why you get this (normal) message.
Want to play movies in your SFML application? Check out sfeMovie!

dixondean25

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #82 on: May 05, 2014, 08:42:28 pm »
Alright thank you so much! Should I continue posting my problems(if I ever have any) & questions(if I ever have any) here or is there another place you'd rather me do it?

dixondean25

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #83 on: May 05, 2014, 09:53:26 pm »
Can I never do debug if I implement sfeMovie in my game?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #84 on: May 06, 2014, 12:58:08 am »
You can continue posting here :) . There is no independent forum or section for sfeMovie.

As for running your program in debug mode, it's indeed not possible with sfeMovie 1.0. That's why a new version is being developped. But it's not completely finished, which is why I didn't post about it yet.

If you're interested you can have a look at the sfeMovie2 branch and http://sfemovie.yalir.info/start.php. I'm really interested in feedbacks about any issue.

Currently what's left:
- find and get rid of a memory leak
- hide the internal API so that you only need Movie.hpp
Want to play movies in your SFML application? Check out sfeMovie!

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #85 on: June 06, 2014, 04:48:49 am »
I linked sfml2.1 and sfe correctly in vs 2012.
Now i wanted to build the sample code in release mode, all dlls are provided in the right folder aswell.

The problem is, that i cannot compile it, because a few functions cant be found, at example
movie.fit(0, 0, width, height);
sfe::Status
case sfe::Stopped: return "Stopped"; break;
movie.update();
sfe::Playing

Most of the other stuff works just fine.

Any suggestions what i could possibly do wrong? Because there isnt so much that actually could cause that error in my opinion xD

Samplecode i am talking about:
https://github.com/Yalir/sfeMovie/blob/master/sample/main.cpp

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #86 on: June 06, 2014, 05:33:19 am »
Update:
Was able to fix the problems. The functions from the sample seem to have new methods.


Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #87 on: June 07, 2014, 11:26:37 am »
Indeed, what you were trying to use is the new API (not sfeMovie 1.0's one).
Want to play movies in your SFML application? Check out sfeMovie!

feliwir

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #88 on: June 26, 2014, 11:41:06 pm »
How can i build this library for visual studio 2013, the getting started guide isn't up to date anymore (./build.sh) doesn't exist anymore. So i decided to do run "./build_ffmpeg.sh windows vs" to build ffmpeg (i run this command via msys obviously).
After a bit of compiling i get the following:
http://pastebin.com/Qp5biekz

To me it seems like i am doing something incredibly wrong :)
Help is appreciated
Greetings feliwir

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #89 on: June 26, 2014, 11:57:52 pm »
Indeed things changed a little bit since release 1.0 :)
The most up to date instructions to build from the latest sources are at http://sfemovie.yalir.info/start.php
Don't hesitate to ask if something isn't clear.

Greetings
Want to play movies in your SFML application? Check out sfeMovie!