- ffmpeg
- python 3 (tested on 3.9 and above)
- python libraries (installed via
Makefile
command) gistfile1.py
contains references to custom writtenffmpeg
andffprobe
scripts.
make install
Open two terminal panes (to check traffic on file server)
1st pane:
make run-file-server
2nd pane:
host=<local-ip> port=8080 title='TGS Podcast' dir_to_expose='tgs_podcast' make run-feed-generator
# test
curl <local-ip>:8080/TGS%20Podcast.xml
Enter the url above into the Apple Podcast app.
Your podcast will now appear as subscribed
.
For as long as your <local-ip>
stays the same,
you can use this podcast feed to make episodes
available offline.
cd bin
go build port-forward-80-linux.go -o port-forward-80
sudo chown root:root port-forward-80
sudo chmod u+s port-forward-80
Note: Very specific to my setup (FS layout).
$ cat ~/Movies/Makefile
SHELL := bash
.PHONY: run-file-server
run-file-server:
./.bin/serve-files.sh
$ cat ~/Movies/.bin/serve-files.sh
#!/usr/bin/env bash
set -x
cleanup () {
cd audio-only && git checkout -- bin/run-file-server.sh
set +x
}
trap cleanup EXIT
# shellcheck disable=SC2016
sed -i 's#"$PWD"/etc/nginx/conf.d#"$PWD"/audio-only/etc/nginx/conf.d#' audio-only/bin/run-file-server.sh
./audio-only/bin/run-file-server.sh
$ cd ~/Movies && make
- Make sure to allow full disk access for
/opt/homebrew/bin/bash
,Alacritty.app
,/bin/bash
and/bin/zsh
. - Also be sure to (since Sequoia) allow
Local Network
access toAlacritty.app
(we have to run it withouttmux
in plainAlacritty
otherwise we will not be able to forward ports on this Mac OS version).