Today I setup my new RPI3 B+ with raspbian stretch as a desktop (OpenGL enabled 128 mem split). I use RPIs for some time as servers but not as desktop. I tried to play video (with avc codec) with omxplayer but no windows appeared. I compiled the most recent version of omxplayer from git but everything was the same.
omxplayer Autumn_leaves_4.mp4
Video codec omx-h264 width 1280 height 720 profile 100 fps 29.970030
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: [email protected] interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
have a nice day ;)
No error and no window appears. If I use legacy not OpenGL in raspi-config it can play video well but desktop graphic does not look so well. I also tried to use mpv
mpv --vd=h264_mmal Autumn_leaves_4_720p.mp4
which use 25% CPU against when I use
mpv --vd=h264 Autumn_leaves_4_720p.mp4
which use 100% CPU. My question is whats the best way to use hw acceleration to play videos on raspbian desktop? Is something wrong with my omxplayer that it doesn't work while OpenGL is enabled? Chromium also plays h264 quite laggy if I play file directly
file:///home/pi/Downloads/Autumn_leaves_4.mp4
in chrome://gpu/ is
Video Decode: Hardware accelerated
Why the video cant be played at least as good as with mpv -vd=h264_mmal?