kwlii
Posts: 12
Joined: Wed May 31, 2017 10:31 pm

omxplayer won't display video

Sun Jun 04, 2017 2:32 pm

I am working on some tutorials on programming the PiCamera. I have captured a .h264 file as well as going through the process of converting it to an mp4 file. However when I try to run it using the latest version of omxplayer all i get is the following

pi@lzonepi:~/dev/py
$ omxplayer kvid.mp4
Video codec omx-h264 width 1440 height 900 profile 100 fps 25.000000
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1440x900@25.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
have a nice day ;)

or

pi@lzonepi:~/dev/py
$ omxplayer video.h264
Video codec omx-h264 width 1440 height 900 profile 100 fps 25.000000
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1440x900@25.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
have a nice day ;)

I have read other articles as to why, but most point to having the latest build of omxplayer.
I know I have updated it because I get

pi@lzonepi:~/dev/py
$ sudo apt-get -y install omxplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
omxplayer is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Anyone be able to suggest my next step?

K

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: omxplayer won't display video

Sun Jun 04, 2017 3:41 pm

Did you change the GPU memory setting? I think the suggested value is 256M although you might get away with 160M.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

kwlii
Posts: 12
Joined: Wed May 31, 2017 10:31 pm

Re: omxplayer won't display video

Sun Jun 04, 2017 7:23 pm

I may have found the issue. I was using VNC session to get to the Pi. It seems when I plug in my nice new HDMI screen with the appropriate resolution to show the video it played successfully. That might be relate to the memory for displaying video?

Anyway, thanks for the response.

K

User avatar
rpdom
Posts: 17171
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: omxplayer won't display video

Sun Jun 04, 2017 7:39 pm

omxplayer will only display on the local screen. It access the hardware layer directly.

Return to “Beginners”