Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Blondbraid on Tue 08/11/2016 22:33:30

Title: How to play video
Post by: Blondbraid on Tue 08/11/2016 22:33:30
Hi!
I know that the AGS engine can play different video formats, but I can't figure out how.
I did a movie in MP4-format in Windows movie maker to try this, but when I use this script:
Code (ags) Select
PlayVideo ("mymovie.MP4", eVideoSkipAnyKey, 1);}
I get an error message in the game once the script is triggered:
(http://i.imgur.com/r7t5QQV.png)
The video worked in windows media player.
Title: Re: How to play video
Post by: Blondbraid on Wed 09/11/2016 17:39:43
In case anyone is wondering, the last sentence in the screenshot of the error message is
"The pins cannot connect since they are not supporting the same transport" in English.

Please, does anyone have any idea what's wrong?
I wanted to add a FMV to my game.
Title: Re: How to play video
Post by: Alan v.Drake on Wed 09/11/2016 18:11:04
You might be missing some DirectShow filter for decoding that format.


- Alan
Title: Re: How to play video
Post by: Crimson Wizard on Wed 09/11/2016 18:17:57
Quote from: Alan v.Drake on Wed 09/11/2016 18:11:04
You might be missing some DirectShow filter for decoding that format.
Probably AGS is missing? since Blondbraid said it played in media player.
TBH, since this type of video is played using DirectShow, there are two possible issues:
1) It won't work anywhere but Windows.
2) It may rely on certain components video must have or cannot have. AGS implementation may be way too simplistic to support any possible video format (and was not reviewed for years).

There was a similar problem reported before, and other people usually recommend converting to OGV format, which should be cross-platform too (as far as AGS is cross platform):
http://www.adventuregamestudio.co.uk/forums/index.php?topic=53337.0
Title: Re: How to play video
Post by: Blondbraid on Wed 09/11/2016 20:22:53
Converting the file to OGV format helped,
but confusingly enough Windows media player won't play it. ???

Thank you!