Hi, I'm running Ubuntu Mate on a pi2. I have tried playing numerous videos of differing filetypes using the included VLC media player.
The audio plays fine but the video doesn't play and just shows the first frame the whole time.
I have included a screenshot of the codec information of one of the files. It is a .MPG file and is only 12 MB in size. I have also tried playing .MTS and .3gp files.
Generally, this type of challenge rests with display adapter drivers.
Updating your display adapter drivers could fix it; plus you could, perhaps, tweak the VLC settings to make the video work.
I say it is this… based on the fact that we are not talking about a “black screen” scenario - it is, at least, showing the first frame.
If you can’t resolve the video issue via the above exploration, there could be some useful info available from your terminal by running VLC in verbose mode. It is going to spit out a great deal of output.
Start VLC in terminal: vlc -vvv
Scan thru the output - looking, primarily, for any failed plugins.
@Wimpy when I try opening the video using OMX I only get the GUI and nothing plays. If I try adding the video to it and play it, it just flashes a big black screen .
It’s strange that doesn’t work. The error you had with vlc is xv video is not available so when you switch to x11 it would be work. Did you restart vlc after changing video output to x11 ?
Could you post vlc -vvv youvideofile.mpg log after switching to x11 ?
You can try with ffplay too in command line with :
ffplay youvideofile.mpg
There is another post here about Compile VLC with HW Acceleration manifesting that VLC needs to be recompiled to take into account the RPi 2 B hardware specific libraries for its GPU.
I have tried this, however still did not manage to get everything working 100%. I only get OMXPlayer working properly and playing my videos full screen under UbuntuMATE.
If you wanna to watch some video (no HD) you can use ffplay too. You can resize window and go full screen and it work not bad.
You can recompile ffmpeg too with hardware acceleration to have an ffplay version with hardware acceleration. The only difference is the video output it use x11 by default so it will be slow with 1080p video.
I use it everyday because I like to play some widowed video while doing another stuff on my pi
If you have some interest in it I can write some tutorial to recompile ffmpeg with hardware acceleration enabled ?
After looking over dozens of tutorials, it appears that problems can orbit whether or not the source is “HD.” Others say to check CPU usage whilst playing, to see if it is maxed out. Graphics card issues were brought up, and of course hardware acceleration.
A few links which revolve around some of these challenges:
@aworan VLC doesn’t work with x11. I get the same errors as shown in the second screenshot I previously posted. I can’t get the video to play with OMX either ?
The Raspberry Pi 2 has NO accelerated video playback via VLC, ffmpeg, mplayer, etc. The only hardware assisted player in omxplayer which is a command line utility.
OMX GUI use omxplayer.
Si if omxplayer don’t work you cannot use OMX GUI.
omxplayer is the only one which can read HD video smoothly on RPI.
VLC or ffplay are not build with hardware acceleration by default on Ubuntu mate.
For using omxplayer with HD video I think you need to change a default setting in /boot/config.txt
Type in a terminal :
sudo pluma /boot/config.txt
And change the value of gpu_mem to at least 128 :
gpu_mem=128
(Erase the # before gpu_mem if any)
Reboot raspberry pi and try :
omxplayer video.mpg