Comment by JKCalhoun

3 years ago

I wrote the app in Python for the Raspberry Pi. For video playback I am using the (now deprecated) omx player.

I tried using VLC instead for video playback (I think the more accepted way to play video from Python now) but when VLC completes showing a video there is a visible flash that I cannot figure out how to get rid of.

I should point out though that it doesn't "stream" — you'll have to find some other solution for that. The Pi is a dedicated "player" hooked to a dedicated TV that is always on, always showing what the Pi has to offer up.

You might look at mpv instead of VLC. I had the same visible flash problem with VLC and mplayer but not with mpv. The other benefit of mpv I just (as in two days ago) found was I can use a loudness normalization audio filter to keep some shows from having blaring audio.

On my system I'm running mpv on top of OpenBox with compton for the compositor. It's been much smoother all around than VLC or mplayer on the same hardware (an AMD mini PC now replacing an RPi I had been using).

VLC has a setting to pause videos when they reach the end, instead of stopping them. Depending on how your system is set up, this might prevent the flashing.