Playing video (ex_video.c) in Allegro 5.
nshade

I'm trying to compile/run the example file for video playback and it's not working. al_open_video() is returning a NULL pointer. The file is a valid, playable ogg file, and I know it's in the right folder. The function will not open the video at all. Opening with al_fopen() works fine, so it's not a filesystem issue. Is there limitations to the ogg file I have to know about? I attached what VLC reports about my file.

I'm using VS2015 with the NuGet package.
I'm using the ex_video.c file from git.
All the relevant add-ons are active.

SiegeLord

Could you check out the logs? You can enable them by calling al_set_config_value(al_get_system_config(), "trace", "level", "debug") before calling al_init. It'll place the logs in the current working directory.

The codec seems fine, btw.

nshade

Logs have nothing
I attached logs and the(Slightly modified) code.

Edgar Reynaldo

EDIT
nm it is a video. Try renaming it to .ogv.

nshade

That was it... Now it's working.

SiegeLord

Nice. Added a logging statement to the video addon, so next the the logs will identify this issue: https://github.com/liballeg/allegro5/commit/59bc38a977fabe24723f530295976012aa3e07f5

Edgar Reynaldo

I'm just curious, how did the file come to be named .ogg?

Thread #617426. Printed from Allegro.cc