AndroidHDMI for Channels (ah4c): A virtual channel tuner using HDMI Encoder(s) + streaming stick(s)

@bnhf I love this project. I found another way to delay the stream!

A shell script:
delay-script.sh

#!/bin/bash
sleep 3
exec curl -sN "$1"

Then in the .env

CMD1=/opt/scripts/path/to/delay-stream.sh ${ENCODER1_URL}
CMD2=/opt/scripts/path/to/delay-stream.sh ${ENCODER2_URL}
CMD3=/opt/scripts/path/to/delay-stream.sh ${ENCODER3_URL}
CMD4=/opt/scripts/path/to/delay-stream.sh ${ENCODER4_URL}
CMD5=/opt/scripts/path/to/delay-stream.sh ${ENCODER5_URL}
CMD6=/opt/scripts/path/to/delay-stream.sh ${ENCODER6_URL}

I also wrote a Python script inspired by the OliveTin action to generate DirecTV m3u files.

1 Like

Glad to hear it!

What's the advantage in doing it this way vs the ffmpeg approach?

I would have incorporated your script into OliveTin, but it was Windows specific. And actually, I was able to duplicate those couple hundred lines of Python in what's essentially a single jq command. Tools like jq make Bash a pretty sweet way to go for scripts like this.

This has been pushed as bnhf/olivetin:latest (aka bnhf/olivetin:2026.03.29), and the new Create an ah4c DirecTV M3U is available in the classic Dashboard or Project WebUI+.

Actually, my script was written on Mac!
Thank you for implementing that action, though!!

So the reason for delaying the stream that way is it doesn't cut out any video. It literally pauses the execution of the stream by a few seconds.

It's also inherently a slightly lighter weight, but not by much. I'm actually able to let my Ospreys sleep now because I picked up a different USB capture card that doesn't freeze when I let them sleep. It turns out those Elgato Camlink 4Ks freeze when they lose HDMI connection.

I'm going to make a separate post in the LinkPi thread about what I actually did.

I guess when I see PowerShell being used in a script, I don't really think of it as cross-platform, but maybe I'm wrong.

Powershell was for Windows clipboard support. It grabbed off the clipboard on Mac as well. In fact I used it first on Mac and tested onn Windows later!