Page 1 of 1

LibVLC_SampleCode_SDL just displays a black window

Posted: 15 Feb 2019 20:24
by Domarius
I'm trying to get this sample code to work; https://wiki.videolan.org/LibVLC_SampleCode_SDL/
I'm using CodeBlocks on Ubuntu and linking with "-lSDL2 -lvlc" and the program compiles.

However, running the program and specifying a video file, I get a black window. Pressing Space will exhibit the expected functionality of outputting "Pause toggle" to the console, but the window always stays black.

I get the following output to the console, but the 2 error lines only happen for some file types, not others.

Code: Select all

VLC_PLUGIN_PATH=(null) [00007f8324002120] main filter error: Failed to create video converter [00007f8324002120] main filter error: Failed to create video converter
For reference, the following code sample works for me and plays a video, but it doesn't use SDL or provide a window, and lets LibVLC make its own window (which is not what I want) https://stackoverflow.com/questions/101 ... ing-libvlc

Re: LibVLC_SampleCode_SDL just displays a black window

Posted: 16 Feb 2019 11:10
by Jean-Baptiste Kempf
You need to give more logs.

Re: LibVLC_SampleCode_SDL just displays a black window

Posted: 16 Feb 2019 23:22
by Domarius
Sorry, clearly I missed something first time around, because I've re-done everything and am getting a new (better?) error. I'll open a new thread.