News for hackers. Stuff that matters.
Re:Ask HN: Most interesting tech you built for just yourself? by JKCalhoun on Friday April 28, 2023 @09:32AM (#35741088)
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.

Re:Ask HN: Most interesting tech you built for just yourself? by giantrobot on Friday April 28, 2023 @03:41PM (#35746143)
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).

Re:Ask HN: Most interesting tech you built for just yourself? by JKCalhoun on Friday April 28, 2023 @05:11PM (#35747153)
Thank you! I will do that.
Re:Ask HN: Most interesting tech you built for just yourself? by unsane on Saturday April 29, 2023 @07:57PM (#35758475)
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.