![]() |
|
Playing video (ex_video.c) in Allegro 5. |
nshade
Member #4,372
February 2004
|
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. |
SiegeLord
Member #7,827
October 2006
![]() |
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. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
nshade
Member #4,372
February 2004
|
Logs have nothing |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
EDIT My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
nshade
Member #4,372
February 2004
|
That was it... Now it's working. |
SiegeLord
Member #7,827
October 2006
![]() |
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 "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
I'm just curious, how did the file come to be named .ogg? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|