# SuperKabuki
# SCTE-35 Inserter
# SCTE-35 Ad Insertion
# SCTE-35 Packet Injection for MPEGTS.
#### Latest Version is `v.0.0.63` Released `Wed Jun 5 08:50:29 PM EDT 2024`
## Install
```js
python3 -mpip install superkabuki
```
## Cli Options
```js
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.
```js
superkabuki -i your_video.ts -o output.ts -t -p 0x197
```
* verify with threefive ( _installs with superkabuki_ )
```js
threefive output.ts
```
## Sidecar Files
* Load scte35 cues from a Sidecar file.
```js
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==`
* 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
* [ Two Step SCTE-35 Encoding for MPEGTS](https://github.com/futzu/threefive/blob/master/EasyEncode.md)
* [Encoding](https://github.com/futzu/scte35parser-threefive/blob/master/Encoding.md)
* [Encoding | more ](https://github.com/futzu/scte35parser-threefive/blob/master/EncodingPipeMore.md)
Raw data
{
"_id": null,
"home_page": "https://github.com/futzu/superkabuki",
"name": "superkabuki",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Adrian of Doom",
"author_email": "spam@iodisco.com",
"download_url": "https://files.pythonhosted.org/packages/70/20/a094809771b2139e5ec87bb15b26089a121933e0134e509bd4217e062bf0/superkabuki-0.0.63.tar.gz",
"platform": "all",
"description": "\n\n\n\n# SuperKabuki\n# SCTE-35 Inserter\n# SCTE-35 Ad Insertion \n# SCTE-35 Packet Injection for MPEGTS.\n#### Latest Version is `v.0.0.63` Released `Wed Jun 5 08:50:29 PM EDT 2024`\n\n\n\n## Install\n```js\n\npython3 -mpip install superkabuki\n```\n## Cli Options\n```js\na@debian:~/SuperKabuki$ superkabuki -h\n\nusage: superkabuki [-h] [-i INPUT] [-o OUTPUT] [-s SIDECAR] [-p SCTE35_PID] [-t] [-v]\n\noptions:\n -h, --help show this help message and exit\n \n -i INPUT, --input INPUT\n Input source, like \"/home/a/vid.ts\" or \"udp://@235.35.3.5:3535\" or\n \"https://futzu.com/xaa.ts\" (default sys.stdin.buffer)\n \n -o OUTPUT, --output OUTPUT\n Output file (default sys.stdout.buffer)\n \n -s SIDECAR, --sidecar SIDECAR\n Sidecar file for SCTE35 (default sidecar.txt)\n \n -p SCTE35_PID, --scte35_pid SCTE35_PID\n Pid for SCTE-35 packets, can be hex or integer. (default 0x86)\n \n -t, --time_signals Flag to insert Time Signal cues at iframes.\n \n -v, --version Show version\n\n\n```\n\n * Use Superkabuki to insert time signal cues at every iframe.\n\n ```js\n superkabuki -i your_video.ts -o output.ts -t -p 0x197\n ```\n * verify with threefive ( _installs with superkabuki_ )\n ```js\n\nthreefive output.ts\n```\n\n \n## Sidecar Files\n* Load scte35 cues from a Sidecar file.\n \n ```js\na@debian:~/x9k3$ cat sidecar.txt\n\n38103.868589, /DAxAAAAAAAAAP/wFAUAAABdf+/+zHRtOn4Ae6DOAAAAAAAMAQpDVUVJsZ8xMjEqLYemJQ== \n38199.918911, /DAsAAAAAAAAAP/wDwUAAABef0/+zPACTQAAAAAADAEKQ1VFSbGfMTIxIxGolm0= \n```\n\n* line format for sidecar file is __insert_pts, cue__ ,\n * like `38103.868589, /DAxAAAAAAAAAP/wFAUAAABdf+/+zHRtOn4Ae6DOAAAAAAAMAQpDVUVJsZ8xMjEqLYemJQ==`\n\n* pts is the insert time for the cue, cue can be base64,hex, int, or bytes.\n\n* The __insert_pts has to be valid for the video__, meaning if your insert_pts is 38103.868589, the video PTS has to be \nless than 38103.868589 for the cue to be inserted.\n\n\n* SuperKabuki with a sidecar file sidecar.txt, and SCTE-35 pid 0x86 \n```\nsuperkabuki -i input_file -s sidecar.txt -p 0x86\n```\n \n## Encoding SCTE-35 Cues\n * [ Two Step SCTE-35 Encoding for MPEGTS](https://github.com/futzu/threefive/blob/master/EasyEncode.md) \n\n * [Encoding](https://github.com/futzu/scte35parser-threefive/blob/master/Encoding.md)\n * [Encoding | more ](https://github.com/futzu/scte35parser-threefive/blob/master/EncodingPipeMore.md)\n\n",
"bugtrack_url": null,
"license": null,
"summary": "superkabuki is SCTE-35 Packet injection for mpegts streams",
"version": "0.0.63",
"project_urls": {
"Homepage": "https://github.com/futzu/superkabuki"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "161cd6b2e1c7a8f4d93e0155d4caef00d0d44d299e40ffb64517cf220a9554f9",
"md5": "a55926010a8dfe41212651113aa62bf9",
"sha256": "f6875d0541777d3ff113a70872c198f2f972cda2d36a511c28e71d5f97d58331"
},
"downloads": -1,
"filename": "superkabuki-0.0.63-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a55926010a8dfe41212651113aa62bf9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7507,
"upload_time": "2024-06-06T00:51:51",
"upload_time_iso_8601": "2024-06-06T00:51:51.406967Z",
"url": "https://files.pythonhosted.org/packages/16/1c/d6b2e1c7a8f4d93e0155d4caef00d0d44d299e40ffb64517cf220a9554f9/superkabuki-0.0.63-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7020a094809771b2139e5ec87bb15b26089a121933e0134e509bd4217e062bf0",
"md5": "aad32ca818de3f98b0916d3212c8c021",
"sha256": "0b7e3c36ebe7f1d5a8af072e402327b28d23fc8441e26e5c46471b43481f33d0"
},
"downloads": -1,
"filename": "superkabuki-0.0.63.tar.gz",
"has_sig": false,
"md5_digest": "aad32ca818de3f98b0916d3212c8c021",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7017,
"upload_time": "2024-06-06T00:51:58",
"upload_time_iso_8601": "2024-06-06T00:51:58.013039Z",
"url": "https://files.pythonhosted.org/packages/70/20/a094809771b2139e5ec87bb15b26089a121933e0134e509bd4217e062bf0/superkabuki-0.0.63.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-06 00:51:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "futzu",
"github_project": "superkabuki",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "superkabuki"
}