What video formats work on Windows?

Klaus major-k klaus at major-k.de
Sun Oct 13 13:52:33 EDT 2024


Hi Colin,

> Am 13.10.2024 um 19:08 schrieb Colin Holgate via use-livecode <use-livecode at lists.runrev.com>:
> 
> The end goal is to be able to run a standalone, and some cards will have an external video file to play.
> As that doesn’t work, I have a card in LC 10.0 authoring, where a Player object is linked to a local MP4. The MP4 plays fine in the Windows 11 player.
> When I try to play the video file I get a ‘could not create movie reference’ message in the result.
> I have tried set the dontuseqt to TRUE - but that didn’t help. I don’t mind if I end up having to have another copy of the video files to use on Windows, but what file types will work?
> I didn’t find something about installing K-lite, and trying that does make the Player show the last frame of the video, but still the video won’t play, and I can’t assume everyone whose PC I might use would be willing to let me install extra codecs.

unfortunately LC uses the old Windows multimedia engine, not sure how this is called (DirectShow?).
And that cannot play MP4 videos out of the box.

Adding the new and current multimedia engine was promised for LC 10, but did not make it into the last version of LC.
Maybe it is implemented in the new and upcoming LCC (LiveCode Create).

So you are stuck with a small number of supported codecs like MPG 1, WMV and AVI, maybe more, I'm not sure...

There is a free codec collection named "LAV Filters" which will let LC also play MP4 files and a lot of other audio and video formats.
Find and load it here: <https://github.com/nevcairiel/lavfilters/releases>


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list