This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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: |