- The patch allows you copy a SCTE-35 stream over as SCTE-35, when you're encoding with ffmpeg.
- The patch also adds the SCTE-35 Descriptor (CUEI / 0x49455543) , just to be fancy.
- The patch adds only seven lines of code to two files, libavformat/mpegts.c and libavformat/mpegtsenc.c.
- Everything else works just like unpatched ffmpeg.
in five easy steps.
-
git clone https://github.com/superkabuki/FFmpeg_SCTE35.git
-
cd FFmpeg_SCTE35
-
./configure --enable-shared --extra-version=-SuperKabuki-patch
you can customize configure as needed.
There are a lot of ffmpeg configure options available.
The superkabuki patch doesn't require any special configure options. -
make all
On OpenBSD use gmake
instead of make
.
sudo make install
Use it just like unpatched FFmpeg.
- I build my ffmpeg with libx265 enabled.
--enable-libx265 --enable-nonfree
ffmpeg -copyts -i input.ts -map 0 -c:v libx265 -c:a aac -c:d copy -muxpreload 0 -muxdelay 0 output.ts
ffmpeg -copyts -ss 200 -i input.ts -map 0 -c copy -muxpreload 0 -muxdelay 0 output.ts
Notice the start time and duration have both changed by ~200 seconds.
ffmpeg -i input.ts -map 0:d -f data -y output.bin