Skip to content
forked from whichken/hdhr-ac4

This project aims to emulate an HDHomerun tuner that supplies ATSC 3.0 programs with AC3 audio.

License

Notifications You must be signed in to change notification settings

mefbgil/hdhr-ac4

 
 

Repository files navigation

hdhr-ac4.js

This is a fork of johnb-7/hdhr-ac4, converted from python to nodejs.

What does this do?

This is a docker container that proxies requests from an ATSC 3.0 compatible HDHomeRun tuner, but uses the ffmpeg binary from Emby media server to transcode the AC4 audio to AC3 so Plex and other apps can decode it. Read more on the original project: johnb-7/hdhr-ac4.

I've only tested with Plex and VLC.

Changes in this fork

  • Converted to javascript.
  • Made the proxy more transparent to make it more resilient to changes.
  • Supports not running on port 80 so it can run on a system like unraid.
  • Always reverses the device ID (so the emulated tuner can coexist with the real one in Plex).
  • Simplified configuration (only the HDHR_IP variable needs to be set).

How to build the docker image

docker build -t hdhr-ac4 .

The docker build will download an Emby release and extract ffmpeg from it. You may need to update the URL in the future if it changes.

How to run the docker container

docker run -p 5003:80 -p 5004:5004 -e HDHR_IP=192.168.0.123 hdhr-ac4

You can use any host port you want for port 80, but port 5004 can't be changed.

Now go to Plex and add a new tuner. Enter the container IP and your chosen port (ex. 192.168.0.234:5003) as the tuner address. Plex should see and add it without issue.

Possible future enhancements

  • Optimize the final image size (currently sits around 1.1GB)
  • Set up an automatic build and push the image to a public repo.

License

Like the original project, this is released under the Apache 2.0 license.

About

This project aims to emulate an HDHomerun tuner that supplies ATSC 3.0 programs with AC3 audio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.9%
  • Dockerfile 20.1%