Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: arj0n on Mon 22/02/2010 12:54:43

Title: OVG video's result in black screen when playing
Post by: arj0n on Mon 22/02/2010 12:54:43
Can someone tell me why OGG play's fine but OGV results in a black screen using the playvideo command?
Title: Re: OVG video's result in black screen when playing
Post by: barefoot on Mon 22/02/2010 13:33:39
Are you trying to play video? I might be right in saying that its only for audio

QUOTE

File extension OGV description:
Ogg Vorbis is a new audio compression format. It is roughly comparable to other formats used to store and play digital music, such as MP3, VQF, AAC, and other digital audio formats. It is different from these other formats because it is completely free, open, and unpatented.

UNQUOTE

barefoot
Title: Re: OVG video's result in black screen when playing
Post by: GarageGothic on Mon 22/02/2010 13:38:17
Is it simply a matter of naming that makes the difference? I mean, if you rename the .ogv file to .ogg, does it play, or are they different export formats in the encoder?
Title: Re: OVG video's result in black screen when playing
Post by: arj0n on Mon 22/02/2010 14:26:02
GarageGothic:
It's just a matter of renaming.

Barefoot:
It can also be video. From the manual:

Plays an AVI, MPG or OGG Theora file, or any other file type supported by Media Player. The game is paused while the video plays.

There are two distinct type of videos that the PlayVideo function can play.
The first is OGG Theora, which is a recently introduced video file format. AGS has built-in support for playing these videos, so everyone who plays your game will be able to see the video. OGG Theora videos are also built into the game EXE file when you compile the game (just make sure the file has a .OGV extension and is placed in your main game folder).

----
So, when using ogg and using the command playvideo in the script, after compiling the ogg plays fine.
when renaming ogg to ogv and using the command playvideo in the script, after compiling playing the ogg results in a black screen...
Title: Re: OVG video's result in black screen when playing
Post by: Pumaman on Tue 23/02/2010 20:09:03
If the file is named .OGV, AGS uses its internal Theora decoder to play the file. If this is giving a black screen then that sounds like AGS is unable to play the file for some reason. If the file is a reasonable size, would you be able to upload it?

If you name it .OGG, AGS will just use Media Player to play it, which may work for you but will not work for other people if they don't have a Media Player Codec installed for Theora.
Title: Re: OVG video's result in black screen when playing
Post by: arj0n on Wed 24/02/2010 08:13:50
Thanx Puma, I'll upload it when I'm back at home.
Il'll keep that "Media Player Codec for Theora" requirement in mind if choosing for OGG instead of OGV.
But OGV still would be better since it's in the exe...
Title: Re: OVG video's result in black screen when playing
Post by: monkey0506 on Wed 24/02/2010 17:57:54
I've actually encountered a similar problem. I have a Media Player Codec installed and it plays fine externally, but AGS won't seem to play it. The video isn't mine but if you ask general_knox about it he may be able to send you his video.
Title: Re: OVG video's result in black screen when playing
Post by: Knox on Wed 24/02/2010 22:52:45
PM me if you need help with something! I got my vid to play fine from AGS, I can explain it to you if you wish.
Title: Re: OVG video's result in black screen when playing
Post by: arj0n on Thu 25/02/2010 09:26:14
Chris & Knox. I've PM-ed you with a link to the ogg video that turns out to be blackscreened when playing it as OGV within AGS. Hope someone can explain me why this problem occurs... Thanx allready :)
Title: Re: OVG video's result in black screen when playing
Post by: arj0n on Mon 01/03/2010 08:57:29
prova.ogg analyse info:

File:
size: 12.90 MB (12.90 MB), 
duration: 0:00:03, 
type: AVI,  1 audio stream(s), 
quality: 90 %

Video:
size: 12.34 MB, 
bitrate: 34487 Kbps, 
frame rate: 25.0 fps, 
resolution [aspect ratio]: 720*576 (4:3), 
video codec: dvsd = Sony Digital Video.

Audio:
size: 562 KB, 
bitrate: 1536 Kbps, 
fequency: 48000 Hz, 
#channels: 2 channels, 
audio codex: 0x1 = PCM