Help for .OGV not working.

Started by Ninone, Fri 02/10/2009 16:45:05

Previous topic - Next topic

Ninone

2 problems in the same day...
I'm trying to play a theora ogg video file.
If I use a mpg, AGS run it (stretched or normal), if I use the same movie but in .ogg , converted with VLC, AGS says
Error: The bg scene for this room is smaller than the game resolution. If you changed the game resolution, you will need to reimport the background for this room (Room: 4 BG Size: 640x400).
I'm actually working in 1024x768.
There's a better converter? I'm doing something wrong? thank you again.

Ninone

I checked a box for a raw format and now it works...

But in the manual I'm reading that theora it's compressed inside the exe, but it doesn't. If I remove the video from compiled folder, the game need it to play it when I launch the compiled game.

Pumaman

To get it included in the game exe you must name it .OGV, not .OGG

Ninone

#3
Quote from: Pumaman on Sat 03/10/2009 12:42:40
To get it included in the game exe you must name it .OGV, not .OGG

If i rename .ogg with .ogv I can see it in a normal player, but AGS doesn't play it. I mean, it plays the .ogg perfectly, but if renamed in .ogv I obtain a black screen.

Maybe I need something better than VLC, something to convert my video files in a .OGV ...

Edit: Ok i tried with the best solution I think... using Firefogg. The story remain the same... in the player it works, in the game I have only a black screen. I tried a lot of solution, bitrate, without sound... but it doesn't work :(


What i have to do? :(

Gilbert

Hmmm can you upload a small OGV files that's not working for us to investigate?


Gilbert

Okay. I've tried this with V3.12 and I can reproduce the problem.
Playback works under 320x200 and 320x240 (16-bit and 32-bit), but it doesn't work already when the resolution is 640x400 or above (it doesn't matter either whether the D3D9 or DX5 driver is used), even after telling the engine to stretch the clip to the whole screen.
I haven't tested MPEG and AVIs but I'm almost certain that they work (as people didn't complain).

So, there is possibly a bug when OGG videos are played and unless something is already done in V3.2 I suggest CJ may take a look at this (be it a problem of the driver codes the engine uses or other problems).

So, unless you need to use OGG for some reason, I think you may turn to use AVI or MPEG instead, or else, try to wait for V3.2 and see if this is fixed.

arj0n

Quote from: Gilbet V7000a on Mon 05/10/2009 15:40:57
Playback works under 320x200 and 320x240 (16-bit and 32-bit), but it doesn't work already when the resolution is 640x400 or above (it doesn't matter either whether the D3D9 or DX5 driver is used), even after telling the engine to stretch the clip to the whole screen.
I thought it will play using D3D9 but not using DX5  ???

Gilbert

Nope.  Movie playback should work with both modes.

When the resolution of the clip matches with the game it works under both modes, but when they don't match it doesn't work under any of them.

arj0n

#9
Gilbert, how can this happen:

I was testing a demo which uses 4 ogg files. They did play using D3D9 but didn't play using DX5.
Using DX5 causes a frozen black screen.

Game resolution: 1024x768.

Video Analyses:
Video1:   5.00 Mb,   6000 Kbps, 29.970 fps, res. 720*480 (4:3),  MPG2 = MPEG 2 (SVCD/DVD)
Video2:      26 Mb, 31418 Kbps, 29.970 fps, res. 720*480 (4:3),   dvsd = Sony Digital Video
Video3:      26 Mb, 31419 Kbps, 29.970 fps, res. 720*480 (4:3),   dvsd = Sony Digital Video
Video4: 12.33 Mb, 34487 Kbps,     25.0 fps, res. 720*576 (4:3),   dvsd = Sony Digital Video

Thanx  ;)

Midian Design

Quote from: [ Arj0n ] on Mon 05/10/2009 17:09:57
Using DX5 causes a frozen black screen.

Yes that's right, I tried the demo on 3 different pc and configurations but the problem still remain, and hopefully I see this situation it's not only for me :). We'll wait for the update :) Thanks

Pumaman

Quote from: Ninone on Mon 05/10/2009 14:17:34
http://www.easy-share.com/1908020375/try.rar

thank you

Hmm, I tried adding this test video to a 640x480 game in AGS 3.2 RC1, and adding a PlayVideo command to play it (with FLAGS=1). It played fine with both DX5 and D3D drivers.

Can you try out the 3.2 Release Candidate (back up your game first!), and see if that resolves the problem?

Gilbert

Quote from: [ Arj0n ] on Mon 05/10/2009 17:09:57
I was testing a demo which uses 4 ogg files. They did play using D3D9 but didn't play using DX5.
Using DX5 causes a frozen black screen.

As I mentioned before, the clip worked BOTH under DX5 and D3D9 for me. If it does not work for you it's possibly something with your settings and/or the clips you use.

I even tested this again using this crappy office computer, which could only use the DX5 driver but not D3D9 and the clip played even in 8-bit mode under DX5 (though the palette will then be messed up).

HOWEVER, I think I've found the problem with the clip not playing under higher resolution (stupid me).

Ninone, did you happen to use a blank room for playing a clip? If you have a room file that already exists in your game and then you increase the resolution of the game you may have that error when that room is loaded. This is unrelated to the video clip you have to play but because the room's original background is at a lower resolution than the game is set to. Just re-import a 1024x768 all-black image as the room's background and it should work. (I had the same problem because I started testing it at 320x200 and then I increase the resolution. Because of the recent change in AGS that room works only in low res., causing the error. If I start anew by first setting the game to a higher res. and then add a new room the clip plays normally.)

SMF spam blocked by CleanTalk