3 ms·
This sounds amazing! Did you use a USB TV tuner or an online source? Is there chance you could open source the code?
by jakecopp 8y ago
This sounds amazing! Did you use a USB TV tuner or an online source?
Is there chance you could open source the code?
- satori99 8y agoI used an online stream source; A HLS stream that one of my local TV stations broadcasts online. My method will only work with streams that have SCTE35 packets embedded. This is normally used for local ad insertion on cable networks, so it may not always be available on OTA streams. There is not much code because it is mostly ffmpeg that does the work. I used nodejs to manage an ffmpeg child process, read its output streams (one stream over a unix domain socket for the video, and the stdout stream for the SCTE35 packets) and pipe them to a HTTP client. My code parses the SCTE packets and then sends commands into the running ffmpeg child process to change the audio levels. I am happy to share it when I get home in a few hours.
- satori99 8y agohttps://gist.github.com/satori99/2cb06938bfe8532ecc00e60906509052 https://gist.github.com/satori99/2cb06938bfe8532ecc00e609065... Keep in mind it's PoC code, I stopped when it worked the first time :P