superkabuki is SCTE-35 Packet injection for the people
Project description
SuperKabuki
SCTE-35 Packet Injection for MPEGTS.
Latest is v.0.0.59
Released Fri Mar 29 07:27:51 AM EDT 2024
Install
python3 -mpip install superkabuki
Cli Options
a@debian:~/SuperKabuki$ superkabuki -h
usage: superkabuki [-h] [-i INPUT] [-o OUTPUT] [-s SIDECAR] [-p SCTE35_PID] [-t] [-v]
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input source, like "/home/a/vid.ts" or "udp://@235.35.3.5:3535" or
"https://futzu.com/xaa.ts" (default sys.stdin.buffer)
-o OUTPUT, --output OUTPUT
Output file (default sys.stdout.buffer)
-s SIDECAR, --sidecar SIDECAR
Sidecar file for SCTE35 (default sidecar.txt)
-p SCTE35_PID, --scte35_pid SCTE35_PID
Pid for SCTE-35 packets, can be hex or integer. (default 0x86)
-t, --time_signals Flag to insert Time Signal cues at iframes.
-v, --version Show version
- Use Superkabuki to insert time signal cues at every iframe.
superkabuki -i your_video.ts -o output.ts -t -p 0x197
- verify with threefive ( installs with superkabuki )
threefive output.ts
Sidecar Files
- Load scte35 cues from a Sidecar file.
a@debian:~/x9k3$ cat sidecar.txt
38103.868589, /DAxAAAAAAAAAP/wFAUAAABdf+/+zHRtOn4Ae6DOAAAAAAAMAQpDVUVJsZ8xMjEqLYemJQ==
38199.918911, /DAsAAAAAAAAAP/wDwUAAABef0/+zPACTQAAAAAADAEKQ1VFSbGfMTIxIxGolm0=
-
line format for sidecar file is insert_pts, cue ,
- like
38103.868589, /DAxAAAAAAAAAP/wFAUAAABdf+/+zHRtOn4Ae6DOAAAAAAAMAQpDVUVJsZ8xMjEqLYemJQ==
- like
-
pts is the insert time for the cue, cue can be base64,hex, int, or bytes.
-
The insert_pts has to be valid for the video, meaning if your insert_pts is 38103.868589, the video PTS has to be less than 38103.868589 for the cue to be inserted.
-
SuperKabuki with a sidecar file sidecar.txt, and SCTE-35 pid 0x86
superkabuki -i input_file -s sidecar.txt -p 0x86
Encoding SCTE-35 Cues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
superkabuki-0.0.59.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for superkabuki-0.0.59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37ab53312aa05ca86116f715b310cecf26c7482335cc39c204fd4bd25709dd5 |
|
MD5 | b3172a4f5f62aaa6e5475016d3cd865d |
|
BLAKE2b-256 | 966d42a15fea337af5b1ab28546adaf604f740cfa8193afb2d0dafa973ce808d |