LibVLC_SampleCode_SDL just displays a black window

This forum is about all development around libVLC.
Domarius
Blank Cone
Blank Cone
Posts: 17
Joined: 28 Apr 2017 22:22

LibVLC_SampleCode_SDL just displays a black window

Postby Domarius » 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.

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: LibVLC_SampleCode_SDL just displays a black window

Postby Jean-Baptiste Kempf » 16 Feb 2019 11:10

You need to give more logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Domarius
Blank Cone
Blank Cone
Posts: 17
Joined: 28 Apr 2017 22:22

Re: LibVLC_SampleCode_SDL just displays a black window

Postby Domarius » 16 Feb 2019 23:22

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests