Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Cannot find movie clip error  (Read 3695 times)

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« on: December 18, 2005, 07:30:26 AM »

When I run the demo, it seems to work fine, but when I put it in my game, and link it through my resources.cfg, I get some weird errors...

ExternalTextureSourceManager::SetCurrentPlugIn(ENUM) failed setting texture plugin.

and

Texture: ../../media/video/cheer.ogg: Loading 1 faces(PF_B8G8R8, 352x240x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8, 352x240x1.
Latency: 2.97215
bool AudioClip::openAudioStream()
End of movie file reached

the second one isn't really an error, but I was thinking that is the end of movie file is reached, it should've played something!

My material file looks like this:

Code: [Select]
material Example/VideoTest
{
  technique
  {
    pass
    {
      texture_unit
      {
        texture_source video
        {
          filename cheer.ogg
          play_mode play
          sound_mode on
        }
      }
    }
  }
}


and I changed all the calls in MovieLogic.cpp to save the movie file to Example/VideoTest... Can anyone help me out? Spot the problem?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Cannot find movie clip error
« Reply #1 on: December 18, 2005, 09:36:35 AM »

You cannot put sound mode on and play video through material script. THis is because you have to register an audiodriver before the first playback. So, you should start paused there, and then register an audio driver in code, then start playback.

The End of movie file reached is really that the end of the file was read to.. this can and will happen long before the actual movie has reached the final frame.. as decoding is faster than playback in most cases.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #2 on: December 18, 2005, 04:35:47 PM »

Ok, so I put it in pause mode in the material file, and put the sound mode off, but it still goes to the "end of clip reached" then crashes... What could the problem be? Any solutions?  :cry:

And still getting the ExternalTextureSourceManager::SetCurrentPlugIn(ENUM) failed setting texture plugin error
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Cannot find movie clip error
« Reply #3 on: December 18, 2005, 05:35:38 PM »

The error would be caused by not having the plugin listed in PLugins.cfg. Though, as you have said, you get log messages out of the plugin.. So, I am not sure what your problem is at the moment.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #4 on: December 18, 2005, 05:37:22 PM »

In my plugins.cfg, I have the line Plugin=Plugin_TheoraVideoSystem, that's the correct way to include the theora plugin, right?  :?

I really need to get this working soon, or I'm in huge trouble. It seems to me like I'm doing everything properly. Should a certain part of the movie playing be in a constant loop until the end of the clip???  :cry:
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #5 on: December 18, 2005, 07:18:18 PM »

I was thinking that I might be getting this problem because right after the clip is loaded, my game continues on with something else. Whereas in the demo it's done in the createscene, so after it's loaded, nothing happens except the movie playback.

So I think I need to find where the end of the movie is. I know you said the Theora message would tell me, but I've been looking all over for it, and can't seem to find it.

Am I on the right track? And would you mind pointing me in the right direction?  :?:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Cannot find movie clip error
« Reply #6 on: December 18, 2005, 09:48:23 PM »

The order of which what happens should have no bearing - so, if the movie is created in create scene or not does not matter. I cannot recal or not if I mentioned it in this thread or another, but ensure that the theora plugin is the last one listed in plugins.cfg.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #7 on: December 19, 2005, 05:55:32 AM »

I still get the ExternalTextureSourceManager::SetCurrentPlugIn(ENUM) failed setting texture plugin error, even though the plugin is listed last in the plugin file. It loads up the game, says End of movie file reached, then crashes... What's going on!? I don't get it! I have less than a week to get this thing working, and it seems like this is an unsolvable problem, since you don't know what could be going wrong... You really don't have any idea of what the problem could be? :cry:

By the way, it seems to stop and crash after the mMovieControl->playMovie("../../media/video/cheer.ogg"); line... I'm trying tp update the mMovieControl, but it just crashes right after that line... Am I forgetting something, some vital step or something???  :?
Logged

M&M

  • Guest
Cannot find movie clip error
« Reply #8 on: December 19, 2005, 07:41:27 AM »

perhaps the plugin you built is corrupt ?
It sounds like its not being loaded properly, ANYTHING you try to do to it will cause it to crash. Try rebuilding the plugin and see if that solves the problem.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Cannot find movie clip error
« Reply #9 on: December 19, 2005, 08:17:07 AM »

I hope you are not using the path like that.. As the plugin uses the Ogre resource system to locate files. Setting the path, should not even work. And, you play the movie based off of the material name, not the movie name - just so you are ware of that, if you are not already.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #10 on: December 19, 2005, 11:31:42 AM »

Ok, a little confused here... should I be using playMovie("cheer.ogg");, or playMovie("Example/Videotest");, and in the Video1.material file have the line filename cheer.ogg, or have playMovie("Video1.material");??? Because none of those seem to work. Could you please clear this up for me? I'll try rebuilding the plugins in the meantime...  :?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Cannot find movie clip error
« Reply #11 on: December 19, 2005, 12:16:22 PM »

All the steps are in the demo. I am not sure where your confusion is coming from... If you look at MovieLogic::playMovie( const String& movieName ) from the demo. It takes the actual file name (no path) = ie. cheer.ogg.

It then calls the plugin's mVideoControl->setInputName( movieName ); - which is the same cheer.ogg string for example. Everything else you deal with are materials - the material name "Example/TheoraVideoPlayer/Play" in that demo. You should follow the logic og the time that the cegui play button is clicked, which creates a new movie.
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #12 on: December 19, 2005, 07:52:04 PM »

I don't understand why I'm having these problems at all!!! Why would:

Code: [Select]
OverlayManager& omgr = OverlayManager::getSingleton();

Ogre::Overlay* movie = OverlayManager::getSingleton().getByName("VideoOverlay1");
movie->show();

OverlayElement* vidContainer;
vidContainer = omgr.getOverlayElement("movieElement");

mMovieControl->playMovie("cheer.ogg");

vidContainer->setMaterialName("Example/TheoraVideoPlayer/Play");


work in the demos main, but

Code: [Select]
mMovieControl = new MovieLogic(mGUIRenderer);

OverlayManager& omgr = OverlayManager::getSingleton();

movie = OverlayManager::getSingleton().getByName("VideoOverlay1");
movie->show();

OverlayElement* vidContainer;
vidContainer = omgr.getOverlayElement("movieElement");

vidContainer->setMaterialName("Example/VideoTest");

mMovieControl->playMovie("cheer.ogg");


Won't work in my game? The plugin is in the plugin.cfg, and the folder where the material file and overlay file are is included in the resources.cfg... This makes no sense! Do I have to update mMovieControl or not? I really don't understand what I'm doing wrong. I followed handlePlay, and found it does the same thing as my game! It seems like I'm doing everything correctly, but yet, it refuses to work... Please someone help! I'm getting sooo desperate...  :cry:  :cry:  :cry:

Also, when I just use playMovie(cheer.ogg); without the path, I get the error:

TheoraVideoController::getMovieClip Tried to find Movie Texture Example/VideoTest. Though, Texture was not anywhere to be found
Logged

Rossman

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
Cannot find movie clip error
« Reply #13 on: December 20, 2005, 06:27:08 AM »

Just to be as specific as possible, it's crashing at the playMovie("cheer.ogg"); line, and giving the

ExternalTextureSourceManager::SetCurrentPlugIn(ENUM) failed setting texture plugin

error, and the

TheoraVideoController::getMovieClip Tried to find Movie Texture Example/VideoTest. Though, Texture was not anywhere to be found

error. I'm using the same dll TheoraAudioPlugin that was used in the demo, which works, and linking the same h and lib files used in the demo... Does anyone have any idea of what's happening here?  :?:
Logged