Can't play .Ogv videos

Started by -Squall-, Sun 31/10/2010 13:25:32

Previous topic - Next topic

-Squall-

Hi!

I have a problem with playing .ogv format videos. I placed them into game main folder (video01.ogv, etc), but when I run the game, videos result in a black screen (though I hear the videos music). I used PlayVideo command.
I've tried to install the new AGS version (3.2), and I changed the resolution of the videos, but still had the same problem.
I changed drive codec to direct 3D 9 too. My game's resolution is 800x600 with 32 bits.
(In .AVI they work fine, but other people can't play them, that's because i'm trying to use ogv format and build them into the EXE)

Any suggests?
Thank you very much!

mode7

does it work in direct draw 5?

-Squall-

Quote from: mode7 on Sun 31/10/2010 14:47:16
does it work in direct draw 5?

No :( The same black screen in both drivers.

mode7

which encoder did you use? can you playback the ogv in another media player?

-Squall-

Quote from: mode7 on Sun 31/10/2010 18:43:17
which encoder did you use? can you playback the ogv in another media player?
I used Theora Converter, and they work fine with VLC player.

arj0n

#5
known problem...
They don't play normal using winsetup->D3D9?

-Squall-

Quote from: Arj0n on Mon 01/11/2010 09:44:31
known problem...
They don't play bormal using winsetup->D3D9?
No, I can hear the music but I only see the black screen :(

arj0n

#7
This might work:

1. make video in AfterEffects
2. save in MOV format, with the Sorenson compression set to the highest quality...
3. use the program GF (ffmpeg2theroa) 2007.2 to convert that MOV file to "ogg"...

Converter: ffmpeg2theora-0.27
Frontend: GFrontend (ffmpeg2theora) v2007.2 Final

4. rename "ogg" file manually to "ogv".

[Step 1 can of course be done with other programs and step 2 can be saved in another format]

;)

-Squall-

Quote from: Arj0n on Mon 01/11/2010 22:24:39
This might work:

1. make video in AfterEffects
2. save in MOV format, with the Sorenson compression set to the highest quality...
3. use the program GF (ffmpeg2theroa) 2007.2 to convert that MOV file to "ogg"...

Converter: ffmpeg2theora-0.27
Frontend: GFrontend (ffmpeg2theora) v2007.2 Final

4. rename "ogg" file manually to "ogv".

[Step 1 can of course be done with other programs and step 2 can be saved in another format]

;)

Thank you very much, but it doesn't work... the same black screen. Should I try other resolutions? I can upload a video if needed ...

arj0n

Can you upload it so I can place it in ags and compile to see if it works on my pc?

-Squall-

Quote from: Arj0n on Mon 01/11/2010 23:51:13
Can you upload it so I can place it in ags and compile to see if it works on my pc?
Here is: http://www.megaupload.com/?d=U2HG6SNH

And this is my code:

function room_Load()
{
PlayVideo("video01.ogv",3, 11);
FadeIn(1);
gMenu.Visible = true;
}

Thank you!

arj0n

Using your part of code and OGV file it does show the OGV video properly at my pc... :)

Wyz

#12
Hmmmm, try this:

Code: ags

function room_Load()
{
FadeIn(1);
PlayVideo("video01.ogv",3, 11);
gMenu.Visible = true;
}
Life is like an adventure without the pixel hunts.

-Squall-

I tried to change "room_Load" for "room_FirstLoad" and it worked!

Thank uou very much!  ;)

arj0n

Room_Load & Room_FirstLoad both work at my pc.
Anyway, goodluck!

Wyz

I think I know what happened there:
First you do a fade out then you start the video, after the video is done you do a fade in. The problem is, also the video is affect by the fade out, so you'll have a black screen. I once had the same problem and it took me ages to find a way around it but I came up with this solution:

Code: ags

FadeOut(1);
FadeIn(10000);
PlayVideo("video01.ogv",eVideoSkipNotAllowed,11);
FadeOut(10000);
FadeIn(1);
Life is like an adventure without the pixel hunts.

Khris

Arj0n, are you positive you saw the video even when it was played in "player enters screen before fadein" (room_Load)?

Anyways, the way to do this would be to use a featureless black room or set the screen transition to instant, then play the video in the "after fadein" event.

arj0n

Khris: sorry, it was After Fade-In, my bad...

SMF spam blocked by CleanTalk