Interstitial program to capture and transform a video feed to use as Hyperion LED source
GPL-3.0 License
Interstitial program to capture and transform a video feed to use as Hyperion LED source
NOTE: This is a pre-alpha, work-in-progress, hobby project and does not (yet) work locally, nor is it destined (yet) to work for anybody else.
I have had a Hyperion ambilight installation for several years but when I recently moved to a new 4K HDR tv none of my streaming or local media would play very well on existing sources, and my AVR is not very 4K compatible (only 30fps, no HDR). Furthermore, my TV only has one "good" HDMI port that supports HDR in but also ARC out which further complicates things.
As a result I've ended up playing almost all of my content through the TV's built in apps which are actually very good, but cannot be captured to work with Hyperion.
This is my attempt to circumvent that problem and make an all-source solution to Hyperion by using a RasPi + camera pointing at the TV to capture what is actually on screen and feeding that to Hyperion.
/dev/videoX
interface for Hyperion# python domvid.py | ffmpeg -f rawvideo -s 640x480 -pix_fmt yuyv422 -i - -an -f v4l2 /dev/video0
# python domvid.py | ffmpeg -f rawvideo -s 640x480 -pix_fmt yuv420p -i - -an -f v4l2 /dev/video0
# python domvid.py | ffmpeg -f rawvideo -s 640x480 -pix_fmt uyvy422 -i - -an -f v4l2 /dev/video0
# python domvid.py | ffmpeg -f rawvideo -s 640x480 -pix_fmt bgr24 -i - -an -f v4l2 -pix_fmt uyvy422 /dev/video0
# streamer -f jpeg -s 640x480 -o out_uyvy.jpeg
# v4l2-ctl --all