obs2hacktv is a Go-based utility that bridges OBS Studio streaming to an analog TV transmitter using hacktv. It listens for an RTMP stream from OBS, optionally transcodes the input, and pipes it live to hacktv for analog transmission.
- Dynamic scaling: By default, output matches whatever resolution OBS feeds. You can override with environment variables.
- Frequency selection: Specify the transmission frequency in MHz via the
--freq
command line flag. - Audio control: Enable or disable audio transmission with
--audio
(enabled by default). - Simple usage: Provides helpful instructions if run without flags.
Add a custom RTMP output in OBS:
- URL:
rtmp://localhost:1935/live/stream
- Stream Key: (leave blank or set as desired)
If you run the program without any flags, you'll see usage instructions and the RTMP URL to add in OBS.
./obs2hacktv
Example output:
No arguments provided.
To use this transmitter, add the following RTMP URL as a custom output in OBS Studio:
rtmp://localhost:1935/live/stream
Then run this program with:
--freq <frequency in MHz> [--audio=<true|false>]
Example:
./obs2hacktv --freq 471.25 --audio=false
The minimum required flag is --freq
(frequency in MHz):
./obs2hacktv --freq 471.25
To disable audio transmission:
./obs2hacktv --freq 471.25 --audio=false
You can override scaling, frame rate, and pixel format with environment variables:
SCALE_WIDTH
andSCALE_HEIGHT
– Output resolution.FPS
– Frames per second (default: 15).PIX_FMT
– Pixel format (default: yuv420p).
Example:
SCALE_WIDTH=720 SCALE_HEIGHT=480 FPS=30 ./obs2hacktv --freq 471.25
- Go (to build/run obs2hacktv)
- ffmpeg (must be in your PATH)
- hacktv (must be built and available as
./hacktv
)
- Listens for an RTMP stream from OBS.
- Transcodes the video (if needed) using ffmpeg.
- Pipes the output to hacktv for analog TV transmission at your specified frequency.