5

I have the latest version of Raspbian on the Pi 3.

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux

I have never been able to play a video (mp4, avi). I am using omxplayer. Even the test video does not work.

omxplayer /opt/vc/src/hello_pi/hello_video/test.h264
Video codec omx-h264 width 1920 height 1080 profile 77 fps 25.000000
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@25.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0

H264 codec is enabled:

pi@raspberrypi:~ $ vcgencmd codec_enabled H264
H264=enabled

Anything I can do to fix this?

  • The simplest possible test I can think of with omxplayer is to navigate your terminal to the directory containing the file you want to play (to avoid any possible problems from unqualified paths), then using omxplayer myfile.mp4. Could you try that and report back? – goobering May 30 '17 at 15:19
  • My Raspberry is still telling me to have a nice day. pi@raspberrypi:/opt/vc/src/hello_pi/hello_video $ omxplayer test.h264 Video codec omx-h264 width 1920 height 1080 profile 77 fps 25.000000 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: 1920x1080@25.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0 have a nice day ;) – Jonathan May 30 '17 at 15:37
  • Can you define "does not work"? – Luca Carlon Jun 16 '17 at 18:47
  • By "does not work", I mean that a black screen is shown when the video should be playing. There is no sound. The video counter counts up the time as though the video is playing. – Jonathan Jun 19 '17 at 2:57
  • Try changing the GPU memory split in the /boot/config.txt file. raspberrypi.org/documentation/configuration/config-txt/… – Michael McMahon Jun 27 '17 at 22:10
2

Try Reinstalling:
sudo apt-get purge omxplayer; sudo apt-get install omxplayer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.