How to play video

Started by Blondbraid, Tue 08/11/2016 22:33:30

Previous topic - Next topic

Blondbraid

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
PlayVideo ("mymovie.MP4", eVideoSkipAnyKey, 1);}

I get an error message in the game once the script is triggered:

The video worked in windows media player.


Blondbraid

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.


Alan v.Drake

You might be missing some DirectShow filter for decoding that format.


- Alan

Crimson Wizard

#3
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

Blondbraid

Converting the file to OGV format helped,
but confusingly enough Windows media player won't play it. ???

Thank you!


SMF spam blocked by CleanTalk