Skip to content

Instantly share code, notes, and snippets.

@dowodenum
dowodenum / gist:176b045d982391a9a25d85166c3a9ed1
Last active May 15, 2022 08:19
Streamlink on GrapheneOS (Android 12) via Termux, Liveproxy, MPV
Adapted from a reddit post: https://www.reddit.com/r/Streamlink/comments/cfno18/guide_streamlink_on_android_termux_vlc/
Prerequisites (below F-Droid links, but you can also install it from Gulagle Play Store)
* [Termux](https://f-droid.org/en/packages/com.termux/
* [MPV](https://f-droid.org/en/packages/is.xyz.mpv/)
* or [VLC](https://www.f-droid.org/en/packages/org.videolan.vlc/)
* For step 6: some kind of GUI text editor (ACode?), or use nano
After installing Termux and its API addon, we can proceed installing the packages required through Termux's own package manager.
create redshift.bat in the same folder as redshift, edited with location. Note -m wingdi, necessary for Windows (over randr)
redshift.bat contents:
.\redshift.exe -m wingdi -l LAT:LON
create redshift.vbs in the same folder as redshift.bat, this will make it run invisibly.
redshift.vbs contents:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & ".\redshift.bat" & Chr(34), 0
Set WshShell = Nothing