Page 1 of 1

omxplayer won't display video

Posted: Sun Jun 04, 2017 2:32 pm
by kwlii
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

Re: omxplayer won't display video

Posted: Sun Jun 04, 2017 3:41 pm
by MaxK1
Did you change the GPU memory setting? I think the suggested value is 256M although you might get away with 160M.

Re: omxplayer won't display video

Posted: Sun Jun 04, 2017 7:23 pm
by kwlii
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

Re: omxplayer won't display video

Posted: Sun Jun 04, 2017 7:39 pm
by rpdom
omxplayer will only display on the local screen. It access the hardware layer directly.