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

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

0 Members and 4 Guests are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #15 on: October 30, 2012, 06:53:48 pm »
Indeed sfeMovie needs the FFmpeg .lib files in order to be built so you either have to build these libraries or get a prebuilt compatible version (sfeMovie 1.0 uses FFmpeg 0.11.1). I've been asking Zeranoe to get a link to this specific build, so if you wait a little bit you'll get binaries. Otherwise you can follow the directions on the "Getting started" page.

By the way, what isn't clear about the build steps explained on this page?
I know the build process for sfeMovie is a pain at the moment but you should get it to build if you follow the directions.

Also note that I've never tested sfeMovie with VS11.
And sfeMovie cannot be compiled as static library for now.

Don't hesitate if you have any other question :) .

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

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #16 on: October 30, 2012, 07:09:14 pm »
Indeed sfeMovie needs the FFmpeg .lib files in order to be built so you either have to build these libraries or get a prebuilt compatible version (sfeMovie 1.0 uses FFmpeg 0.11.1). I've been asking Zeranoe to get a link to this specific build, so if you wait a little bit you'll get binaries. Otherwise you can follow the directions on the "Getting started" page.

By the way, what isn't clear about the build steps explained on this page?
I know the build process for sfeMovie is a pain at the moment but you should get it to build if you follow the directions.

Also note that I've never tested sfeMovie with VS11.
And sfeMovie cannot be compiled as static library for now.

Don't hesitate if you have any other question :) .

Ceylo

Well I'm going to be transferring back to VS 2010 because a lot with V11 seems to still be sort of a grey area as far as comparability goes. Besides, I honestly see no big difference between 2010 and 2012 with the express editions. ^^;;

I'll let you know how it goes when I try it on 2010.

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #17 on: October 30, 2012, 09:53:28 pm »

So I got it working for the most part on 2010 without issue. But I have a problem now.

I get:
Quote
First-chance exception at 0x773d4b32 in Genesis.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0107f0e4..
First-chance exception at 0x773d4b32 in Genesis.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0107e8a0..
First-chance exception at 0x773d4b32 in Genesis.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
Unhandled exception at 0x773d4b32 in Genesis.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0107e8a0..

Every time it reaches:

        if(!CS.openFromFile("Resource/SplashScreen/PredawnStudios/predawn_splash.theora.ogv"))
        {
                ConsoleLog.info("Unable to open splash video file! Returning...");
                return;
        }
 

Any ideas?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #18 on: October 30, 2012, 10:28:14 pm »
Hmm, make sure you're linking everything dynamically AND in release mode. sfeMovie is not provided as debug library for now.
Want to play movies in your SFML application? Check out sfeMovie!

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #19 on: October 30, 2012, 10:34:07 pm »
Hmm, make sure you're linking everything dynamically AND in release mode. sfeMovie is not provided as debug library for now.

So all of SFML has to be linked dynamically as well then?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #20 on: October 30, 2012, 10:41:43 pm »
Yes. This will prevent different versions of SFML from being loaded (although I admit this is an issue only because I explicitly link against SFML 2.0 RC), and as sfeMovie is dynamically linked to SFML, in any case you'll need to provide the SFML dlls.
Want to play movies in your SFML application? Check out sfeMovie!

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #21 on: October 30, 2012, 10:46:06 pm »
Yes. This will prevent different versions of SFML from being loaded (although I admit this is an issue only because I explicitly link against SFML 2.0 RC), and as sfeMovie is dynamically linked to SFML, in any case you'll need to provide the SFML dlls.

Well if I'm including the .dll's, I may as well just set it to dynamic then.  ;D

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #22 on: October 30, 2012, 10:46:59 pm »
What does "including a DLL" means?
Want to play movies in your SFML application? Check out sfeMovie!

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #23 on: October 30, 2012, 10:47:57 pm »
What does "including a DLL" means?

Including as in, the .dll's come with the .exe right next to it so that the program runs with dynamically linked libraries.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #24 on: October 30, 2012, 10:49:48 pm »
Oh, sure, it's absolutely fine :) .
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 Project [v1.0 released]
« Reply #25 on: November 02, 2012, 03:09:01 pm »
So did you finally get it to work?

As for the Windows binaries provider, he still did not answer for now :-\.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #26 on: December 23, 2012, 11:23:24 pm »
Hi

I've finally got around to trying to build sfeMovie. I am having some problems configuring the paths in MSVC. The distribution I got of sfeMovie has a version of SFML - but I want to build sfeMovie against my latest version of SFML.

What do I need to do? All the linker paths reference the supplied version of SFML...and it looks like changing it will be a nightmare :(

Ed
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released]
« Reply #27 on: December 25, 2012, 05:43:32 pm »
Hello slotdev,

I'm trying to completely remove the provided SFML, I hope to provide a usable revision this evening.

Ceylo
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 Project [v1.0 released]
« Reply #28 on: December 26, 2012, 01:35:56 am »
You *should* be able to use your own SFML version now. I successfully tested the new configuration on Mac OS X and Linux, but I couldn't understand what I should do with SFML_DIR and such on Windows for now. I'm a bit newbie with it :D and I feel sleepy right now. If you're used to this there should be no problem.
« Last Edit: December 26, 2012, 01:38:17 am by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Re: sfeMovie Project [v1.0 released]
« Reply #29 on: December 26, 2012, 10:33:12 pm »
Thanks Ceylo, I'll give it a try now :)

Whilst I think about it, what is the reason that sfeMovie can't be static linked?
« Last Edit: December 26, 2012, 10:50:43 pm by slotdev »
SFML 2.1