PlayVideo original size ignored? "sorted" but not with game_start()

Started by Peder 🚀, Sat 04/09/2010 02:42:06

Previous topic - Next topic

Peder 🚀

Hi, I have just started coming back into AGS coding and started using version 3.X
I am having a problem with the PlayVideo.

I get the video file to play BUT it doesn't play in its original size, seems like it is being resized..
My game is set to 640x480 and the video file is the same resolution.

Code: ags
PlayVideo("logo.avi",eVideoSkipNotAllowed, 1);


Any ideas what it could be?

Best regards,
Peder Johnsen.

GarageGothic

Um, could be that you're telling it to?

From manual:
Quote0: the video will be played at original size, with AVI audio
1: the video will be stretched to full screen, with appropriate
   black borders to maintain its aspect ratio and AVI audio.
10: original size, with game audio continuing (AVI audio muted)
11: stretched to full screen, with game audio continuing (AVI audio muted)

in other words:

Code: ags
PlayVideo("logo.avi",eVideoSkipNotAllowed, 0);


:)


Peder 🚀

Quote from: GarageGothic on Sat 04/09/2010 02:57:52
Um, could be that you're telling it to?

From manual:
Quote0: the video will be played at original size, with AVI audio
1: the video will be stretched to full screen, with appropriate
   black borders to maintain its aspect ratio and AVI audio.
10: original size, with game audio continuing (AVI audio muted)
11: stretched to full screen, with game audio continuing (AVI audio muted)

in other words:

Code: ags
PlayVideo("logo.avi",eVideoSkipNotAllowed, 0);


:)



Ahh, sorry posted the wrong code, I tried with 1 to see if it had any difference but no.
Whichever I try it still shows the video in the same size and its sized down..


Peder Johnsen.

GarageGothic

Ok, then I suppose it can be your screen settings or video codec. Avi files are played with whatever codecs you have installed, so results may differ between users. If you want to be on the safe side you can encode the file in OGG Theora format that always uses AGS built-in codec for playback.

Peder 🚀

Ok :).
Is there anywhere to easily convert to OGV(OGG Theora) format that you know of? :).


Peder Johnsen.

GarageGothic

Good question actually, haven't tried it, but MediaCoder looks like it could do the job.

Peder 🚀

#6
After some searching I found this:
http://www.mirovideoconverter.com/

Which seems to be the best one out there ;).
Maybe this app should be stickied or added to a thread relative to PlayVideo for others..

[edit]
Though even as .ogv it still get resized...
It gets the right size in width but the height still becomes wrong....

[edit 2]
Ok, so when I run the function that runs the clip within game_start() it resize its height but when I run the same function from interacting with a hotspot it actually shows the way it is supposed too!
So how come it does not do it right when being called within game_start()??

[edit 3]
Ok, so when I run the function for the logo clip within a room with the "custom" black background it does the same as when I run it through game_start(). So I assume that is the problem..
Anyways if I just add a background in 640x480 to the room I run the logo clip now it works perfectly so my problem is sorted. Though it still does not work through game_start() so I guess it could be something to look into?


Peder Johnsen.

Dualnames

The best? Maybe, but I use this:

http://tinyurl.com/2vps8wo

(2MB) of goodness IMHO.

You just drag the files on it, and they get converted. (A new ogg file is created next to the directory of the original.) Its very easy to use. It also uses a command line, but that was never needed for me. As it is, it converts 1:1 from wmv/avi to ogv.

I don't remember where I got it . I think GG suggested it, but I'm not too sure about that.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Peder 🚀

That is indeed a huge step better than what I found ;).
But it WAS the best one I found lol :P.

Thanks duals!

SMF spam blocked by CleanTalk