LibVLC_SampleCode_SDL - no codec is supported?
Posted: 17 Feb 2019 00:07
Just trying to get the code working from here https://wiki.videolan.org/LibVLC_SampleCode_SDL/ I am compiling on Ubuntu 18.04.1 LTS and have installed libsdl2-dev and libvlc-dev, and am linking with -lSDL2 -lvlc (I have also installed VLC itself since apparently on Linux you need to do that to make the plugins available).
Any video file I throw at it, it displays an error saying the codec isn't supported for that format - but I commented out the line that disables sound, and the sound does play at least. But the window remains black.
Here is the output I'm getting. If anyone can tell me how to enable logging, I'll do it. (I couldn't find out how from searching the net.)
I notice it keeps saying VLC_PLUGIN_PATH=(null), what can I do about that?
Any video file I throw at it, it displays an error saying the codec isn't supported for that format - but I commented out the line that disables sound, and the sound does play at least. But the window remains black.
Here is the output I'm getting. If anyone can tell me how to enable logging, I'll do it. (I couldn't find out how from searching the net.)
I notice it keeps saying VLC_PLUGIN_PATH=(null), what can I do about that?
Code: Select all
$ ./test agro.mp4
VLC_PLUGIN_PATH=(null)
[00007f7ed81153c0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
[00007f7ed81153c0] main decoder error: Codec not supported
[00007f7ed81153c0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
$ ./test test.mov
VLC_PLUGIN_PATH=(null)
[00007f22d833acf0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
[00007f22d833acf0] main decoder error: Codec not supported
[00007f22d833acf0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
$ ./test "bonus body language disc.avi"
VLC_PLUGIN_PATH=(null)
[00007f65f8027c50] main decoder error: Codec `mp4v' (MPEG-4 Video) is not supported.
[00007f65f8027c50] main decoder error: Codec not supported
[00007f65f8027c50] main decoder error: VLC could not decode the format "mp4v" (MPEG-4 Video)