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

Author Topic: sfeMovie project [v1.0 RC1 available]  (Read 136817 times)

0 Members and 1 Guest are viewing this topic.

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #180 on: July 13, 2012, 02:03:01 am »

So I seem to still get audio, but no video. All that happens video wise, is I originally, right after my WindowEngine launches the render window. I print a "Loading..." to the upper left corner. Something video wise happens because it does flicker a lot. But nothing new renders to the screen at all. I only get 1 unknown skeleton version 4.0 error. I think that may have to do with why there is no video.

I will include a copy of my most up to date code.
#include "stdafx.h"
#include "SplashScreen.h"
#include "WindowEngine.h"
#include <Movie.h>

void SplashScreen::showSplash(sf::RenderWindow& renderWindow)
{
        PredawnStudiosGenesisSplash(renderWindow);
}
void SplashScreen::PredawnStudiosGenesisSplash(sf::RenderWindow& renderWindow)
{
        sfe::Movie PredawnSplash;
        if(!PredawnSplash.openFromFile("Recource/SplashScreen/PredawnStudios/predawn_splash.ogv"))
        {
                return;
        }

        sf::Vector2u WindowSize = renderWindow.getSize();
        sf::Vector2i PredawnSplashSize = PredawnSplash.getSize();

    int PositionX = (WindowSize.x / 4);
    int PositionY = (WindowSize.y / 4);

        int SplashX = PredawnSplashSize.x;
        int SplashY = PredawnSplashSize.y;

        int CenterX = (PredawnSplashSize.x / 2);
        int CenterY = (PredawnSplashSize.y / 2);

        PredawnSplash.setOrigin(CenterX,CenterY);

        if(SplashX > WindowSize.x)
                SplashX = WindowSize.x;
           
        if(SplashY > WindowSize.y)
                SplashY = WindowSize.y;

        PredawnSplash.resizeToFrame(PositionX,PositionY,SplashX,SplashY);
        PredawnSplash.play();
        while(PredawnSplash.getStatus() == sfe::Movie::Status::Playing)
        {
                sf::Event PredawnSplashEvent;
                while(renderWindow.pollEvent(PredawnSplashEvent))
                {
                        if(PredawnSplashEvent.type == sf::Event::Closed)
                        {
                                PredawnSplash.stop();
                        }
                        if(PredawnSplashEvent.type == sf::Event::MouseButtonPressed)
                        {
                                PredawnSplash.stop();
                        }
                        if(PredawnSplashEvent.type == sf::Event::KeyPressed)
                        {
                                PredawnSplash.stop();
                        }
                }
                renderWindow.clear();
                renderWindow.draw(PredawnSplash);
                renderWindow.display();
        }
        return;
}
 

I think I'm going to do some snooping on my video codec's. Do let me know if you have any ideas. :)

Also, kind of off the subject, but do you know how to make it so visual studio can find files and resources while debugging? It doesn't find my video file in debugging mode, yet if I go to the directory and run it manually, it works just fine. Just a little annoying because it makes debugging impossible. Anyway. Let me know what you think.

Also, the video does play perfectly in VLC. So I at least know that it does have a video track. xD

Also, again, if you want a copy of the video for testing let me know. :)

EDIT

found this, I plan to read it, all.
http://roundup.libav.org/issue2600

EDIT Just tried a different encoder, same issue. >_> Though, now it seems I no longer get the skeleton error. So.... Thats fixed, but its still not working. xD
« Last Edit: July 13, 2012, 03:27:49 am by Flash619 »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #181 on: July 13, 2012, 09:30:03 am »
Just to make sure, did you try to play your video with the provided sfeMovie sample (sample/main.cpp in the Git repo or the "src" package) ? Just change the name of the file to load.

If it still doesn't work, can you give me a sample of the video in order to reproduce the issue ?
« Last Edit: July 13, 2012, 09:37:48 am by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #182 on: July 13, 2012, 02:51:58 pm »
Just to make sure, did you try to play your video with the provided sfeMovie sample (sample/main.cpp in the Git repo or the "src" package) ? Just change the name of the file to load.

If it still doesn't work, can you give me a sample of the video in order to reproduce the issue ?

I just did, the example video did the same thing. :/ ...not sure where to go from here.

Fortunettely for now, I can continue working on the engine since you can skip the video by pressing any button ;) Though, I still have to figure out whats wrong, at this point, I havn't a clue.
« Last Edit: July 13, 2012, 04:11:57 pm by Flash619 »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #183 on: July 13, 2012, 06:26:13 pm »
...not sure where to go from here.
I think you do :P :
If it still doesn't work, can you give me a sample of the video in order to reproduce the issue ?
Want to play movies in your SFML application? Check out sfeMovie!

Flash619

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #184 on: July 13, 2012, 07:18:30 pm »
...not sure where to go from here.
I think you do :P :
If it still doesn't work, can you give me a sample of the video in order to reproduce the issue ?

Well I had the same issue with the sample video, which was named "big_buck_bunny_480p_stereo.ogg"

It's too big to upload here, but I downloeded it from your example you posted.

Both, my video, and your video, did the same thing. I'm not sure if its the video anymore. :|

Just the same though, I'll send a PM with a link to a location to download the videos from my website.

Rogof

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #185 on: July 15, 2012, 03:35:56 am »
I've tested the latest source (commit 0ccadac) and the audio plays in sync this time.

Thanks.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #186 on: July 15, 2012, 01:02:12 pm »
I've tested the latest source (commit 0ccadac) and the audio plays in sync this time.

Thanks.
Great!! :D

Thanks for your help too :) .
Want to play movies in your SFML application? Check out sfeMovie!

Rennnyyy

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #187 on: July 21, 2012, 06:38:19 pm »
Hey guys,

I'm definitly new to SFML and sfeMovie, so maybe my question seems stupid or silly.

I installed SFML and sfeMovie on my Windows XP 32bit machine in MSVC+ 2008 Express. Than I compiled and linked the given example for sfeMovie, which you can find on the wiki. But when I closed the SFML Window, everytime an error occured about memory overwrite. I think it comes with sfeMovie and not with SMFL itself, because without adding a movie widget everything works alright. I also tried to compile in Debug and in Release mod, but the error stayed the same.

This is the error message (i try to translate it to English, because at my computer it is German, so don't kill me for my English :) )

Unhandled excaption at point 0x004c53cc in SMFL_Test.exe: 0xC0000005: Access violation while reading at position 0x056ac040.

The editor is not able to show a line in code where it happens. He can only give me the disassembly:

[...]
004C53B3  mov         ecx,dword ptr [esi+10h]
004C53B6  mov         dword ptr [esi+0Ch],1
004C53BD  push        ecx 
004C53BE  call        00495880
004C53C3  mov         eax,dword ptr [esi+8]
004C53C6  mov         dword ptr [esi+10h],edi
004C53C9  mov         dword ptr [esi+0Ch],edi
004C53CC  mov         edx,dword ptr [eax]
004C53CE  add         esp,4
004C53D1  push        eax 
004C53D2  mov         eax,dword ptr [edx+8]
004C53D5  call        eax 
004C53D7  mov         eax,dword ptr [esi+4]
004C53DA  mov         dword ptr [esi+8],edi
004C53DD  cmp         eax,edi
[...]

The error occurs at 004C53CC mov edx, dword ptr [eax].

Is that a error based on my stupidnes or has it to do with the sfeMovie script? Can anyone tell me how to fix?

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #188 on: July 21, 2012, 06:43:11 pm »
Are you mixing release/debug modes or mixing static/dynamic linking for SFML and sfeMovie ?

You should make sure you link everything dynamically in release mode.
Want to play movies in your SFML application? Check out sfeMovie!

Rennnyyy

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #189 on: July 21, 2012, 07:29:31 pm »
Are the sfeMovie *.lib files made for Release or Debug? Than I can answer that :D

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #190 on: July 21, 2012, 07:33:04 pm »
The provided one in the 1.0 RC1 package are made for Release.
Want to play movies in your SFML application? Check out sfeMovie!

Rennnyyy

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #191 on: July 21, 2012, 07:37:59 pm »
Okey, I tried everything what is thinkable (i think :D)

1) sfe-movie.lib with SMFL *.lib on Release
2) sfe-movie.lib with SMFL *-d.lib on Release
3) sfe-movie.lib with SFML *-s.lib on Release
4) sfe-movie.lib with SFML *-s-d.lib on Release

On 3) and 4) the linker returned a lot of errors. When using 2) it crashes while loading the window. And 1) is the described error thing.

And when I'm right I'm linking dynamicly, because I need all the *.dll files to execute the programm.

Am I doing anything wrong?
« Last Edit: July 21, 2012, 07:42:41 pm by Rennnyyy »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #192 on: July 21, 2012, 07:42:14 pm »
Hmmm looks like you didn't do anything wrong. Could you provide a minimal package with everything required to reproduce the crash ? (including your project file)
Want to play movies in your SFML application? Check out sfeMovie!

Rennnyyy

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: sfeMovie project [v1.0 RC1 available]
« Reply #193 on: July 21, 2012, 07:53:41 pm »
Here it is. It includes the VC-Project, the cpp file and the video I used (btw. i tried another one, but nothing changed).

http://www.file-upload.net/download-4583063/SMFL.zip.html

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #194 on: July 21, 2012, 08:32:21 pm »
Ok I remember now. This is related to https://github.com/SFML/SFML/issues/30 and the OpenAL dll. I got it working using the binary from http://kcat.strangesoft.net/openal.html#download (take Win32/soft_oal.dll, rename it to openal32.dll and replace it in your executable's directory).

Tell me if it works for you too :) .
« Last Edit: July 21, 2012, 10:07:00 pm by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!