adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
452 stars 239 forks source link

Video not always starting and pause not always pausing #232

Open Nickman87 opened 4 hours ago

Nickman87 commented 4 hours ago

I am using GPIO pins to trigger playing video's and I want to be able to pause them aswell so I am using the following configuration: gpio_pin_map = "13":"video_1.mp4","11":"video_2.mp4","37":"video_3.mp4","35":"video_4.mp4","33":"video_5.mp4","31":"video_6.mp4","29":"K_SPACE"

Most of the time, my video start playing without issues, but for some reason video_5 and video_6 seem to be having issues, even though the format of the video's is all identical. I've had nothing happening, or blank screen with audio playing. Also "pressing" pause does not seem to work every time, but I cannot seem to find a specific scenario in which this occurs.

I've looked in the runtime logs so see if there would be an issue in the GPIO not triggering, but the output shows me that the actions (play and pause) are actually being executed in the video_looper main script, so the only thing I can assume is that the communication with the omxplayer is going wrong?

What steps could I take to further debug this issue? I have ran out of options to try and get this to a more stable setup. As when everything works, the setup is perfect, but it's not reliable right now, so I can't really put this in production.

christiansievers commented 4 hours ago

To rule out that something is wrong with the videos, try renaming them like this. Give a problematic video the name of a „good“ one and vice versa. Does that change anything?