Description
While developing an omx based video player for the Pi I observed that sometimes the video signal gets lost when I play videos. I've been able to reproduce it by running these two programs at the same time:
/opt/vc/src/hello_pi/hello_triangle/hello_triangle.bin
omxplayer /opt/vc/src/hello_pi/hello_video/test.h264 --win '0 0 1920 200' --layer 10 --blank
I'm using a NOOBs installed raspbian with all packages updated to the latest version. I updated the firmware files using rpi-update. I observed the above behavior on different screens:
- Dell U2713HM using a HDMI cable with (1920x1080 resolution)
- ACER_V243HQ using DVI with an adapter (1920x1080 resolution)
- ASUS_VS228 using DVI with an adapter (1920x1080 resolution)
- L90D__DVI using DVI with an adapter (1280x1024 resolution). See note
On the last screen it works when I'm using the win
parameters above. But once I change them to 0 0 1280 100
it stops working. I tried different things but I keep getting a blank screen/lost video signal:
- I tried it on a Pi2 and B+.
- I bought a new power adapter with 2.1A. No success.
- I tried different values (0, 4 and 7) of config_hdmi_boost in /boot/config.txt
- I tried an older firmware version (d6e004c61a7a749897c482c860d0b2c28196437e)
- I tried different gpu_mem settings (192 and 384MB)
Using the complete screen space in the win
parameter (or simply omitting it) works. It sometime also works with other win
sizes, but I did not yet find any reliable pattern. It also works when I get rid of the blank layer.
There is also a corresponding thread on http://www.raspberrypi.org/forums/viewtopic.php?f=67&t=105906
It sounds a bit like #286, so I tried running tvservice -s in a loop while the screen goes blank: tvservice keeps reporting the correct resolution. This thread sounds like it might have the same root cause: http://www.raspberrypi.org/forums/viewtopic.php?f=67&t=50126, sadly there is no solution.
Firmware version is
Mar 27 2015 18:51:06
Copyright (c) 2012 Broadcom
version b2109b1c1c8ae8717df455cfaf312a6c1801f45a (clean) (release)
Kernel is
Linux raspberrypi 3.18.10-v7+ #774 SMP PREEMPT Wed Mar 25 14:10:30 GMT 2015 armv7l GNU/Linux
omxplayer versions tested are (from raspbian):
omxplayer - Commandline multimedia player for the Raspberry Pi
Build date: Tue, 10 Feb 2015 01:49:30 +0000
Version : 337004e [master]
Repository: https://github.com/popcornmix/omxplayer.git
and latest version from omxplayer.sconde.net
omxplayer - Commandline multimedia player for the Raspberry Pi
Build date: Thu, 19 Mar 2015 01:49:46 +0000
Version : 7c752d3 [master]
Repository: https://github.com/popcornmix/omxplayer.git