LibVLC_SampleCode_SDL just displays a black window
Posted: 15 Feb 2019 20:24
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.
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
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