PlayVido AND PlayFlic both not working.

Started by Anomaly, Fri 28/11/2008 04:10:06

Previous topic - Next topic

Anomaly

I've checked the FAQ and Help and searched...

I made 2 files, using After Effects.
one is video.avi and the other is FLIC1.flc

I have both video.avi and FLIC1.flc in my Compiled folder.

to test them, I made a room script function as follows -
for the  video one i put

function hHotspot2_Interact()
{

PlayVideo ("video.avi", 1, 1);

}

the video one gives me an error upon clicking the hotspot saying
"Video playing error: AddMediaStream failed"


for the  flc one i put

function hHotspot2_Interact()
{

PlayFlic(1, 1);

}

the flc one is not responsive.
it does nothing visible.

I've tried to solve this as I solve anything... looking to help and tutorials and searching diligently on forums.. but to no avail.
I'm just testing every function / script, in order to get comfy with all that is scriptable.
These two are functions/scripts I plan to use ALOT.

any help would be great.

thanks.

-
"The room is bright. 
You are likely to be vomited upon by a Shrunk."

Gilbert

I'm not quite sure about the problem, but you may check whether the files are named correctly. Most importantly, make sure that the "hide known extension" option is not checked in Explorer, otherwise it is possible that the files are named incorrectly as video.avi.avi and flic1.flc.flc .

Trent R

#2
I'm confused as to why you don't have an enum option in your playvideo line.... I was unaware that you could use an int in its in-place.

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Gilbert

All enums are just integers, though under normal cases if the parameter could use an enumerated type it is advised to do so, since the integer that each enum represents may change later (e.g. in a newer version of AGS, and in the case of user defined enums they may change whenever you add/remove options from them).

I just checked the manual, there is currently no emumerated types associated with the parameters for PlayVideo() and PlayFlic(), so using integers there is the correct usage.

IMO enums are useful for more oftenly used functions and in the cases when several different functions would take on a parameter with the same kind of options. It is just a mess if there are LOADS of predefined enums for everything, lesser used functions like PlayVideo() don't really need enums.

Trent R

I see, I was confused because there is an enum in the 3.1.1 manual (I always forget that I use beta versions). CJ must have added it along with Theora support.

Sorry for being an idiot.

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Anomaly

Quote from: Gilbet V7000a on Fri 28/11/2008 04:23:19
I'm not quite sure about the problem, but you may check whether the files are named correctly. Most importantly, make sure that the "hide known extension" option is not checked in Explorer, otherwise it is possible that the files are named incorrectly as video.avi.avi and flic1.flc.flc .


no, the files are named properly, and I don't have "hide known extension" on.
I always turn that off as soon as I've done a fresh install of Windows.

thanks though.

Anybody else?


-
"The room is bright. 
You are likely to be vomited upon by a Shrunk."

Dualnames

I've been using playvideo for a long while and had no trouble with it. Though I must admit, I'm using wmv format. And you're using avi. Don't know if it's that. Also videos can't be played on D3D.
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)

Khris

Do both videos play fine when you open them with a media player?

Pumaman

Quote from: Anomaly on Fri 28/11/2008 04:10:06
the video one gives me an error upon clicking the hotspot saying
"Video playing error: AddMediaStream failed"

This indicates some sort of codec problem, what codec did you encode the video with? As KhrisMUC says, does it play properly in other Media Players?

QuoteAlso videos can't be played on D3D.

What do you mean? Why not?

Dualnames

Quote from: Pumaman on Tue 02/12/2008 18:20:50
Quote from: Anomaly on Fri 28/11/2008 04:10:06
the video one gives me an error upon clicking the hotspot saying
"Video playing error: AddMediaStream failed"

This indicates some sort of codec problem, what codec did you encode the video with? As KhrisMUC says, does it play properly in other Media Players?

QuoteAlso videos can't be played on D3D.

What do you mean? Why not?


At least, I can't get them to play. I have an intro for all my games, and I can't play it when the video mode is D3d. It might have something to with the codecs..

http://www.adventuregamestudio.co.uk/games.php?action=download&game=1100&mirror=1

Try and open this(It has an intro video). Using D3D. At least I can't.
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)

Trent R

I downloaded your game Dualnames, and the video played fine for me. I'm running Vista and I have a bunch of codecs installed (I think it's the K-Lite Mega Pack), if that helps any.


~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Dualnames

Have you set mode as D3d? I can run it in Draw..
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)

Trent R

Ahhh, missed that part. Apparently I was up too late last night....

I can hear the audio, but the movie itself doesn't play.


~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Pumaman

Thanks, I can replicate it and I'll get the problem fixed.

Please report any bugs that you find in AGS so that I can fix them, rather than just going round saying that it doesn't work.

SMF spam blocked by CleanTalk