Skip to content

Instantly share code, notes, and snippets.

View 2livebrew's full-sized avatar

2livebrew

View GitHub Profile
@2livebrew
2livebrew / app.js
Created March 4, 2022 18:38 — forked from satori99/app.js
This is a proof-of-concept for using ffmpeg as a HTTP video stream proxy that can reduce the volume of ad-breaks
/**
* This is a proof-of-concept for using ffmpeg as a HTTP video stream proxy
* that can reduce ad volume.
*
* It only works on streams containing SCTE35 data packets.
* You can check a stream using:
*
* ffmpeg -hide_banner -i <SOURCE_URL> 2>&1 | grep scte_35
*
* Start the demo:
let isMouseDown = false
let points
let drawLoop = ()=>{
if(isMouseDown) window.requestAnimationFrame(drawLoop)
draw()
}
let mouseDown = (e)=>{
isMouseDown = true