{"id":25175935,"url":"https://github.com/superkabuki/superkabuki-ffmpegscte35patch","last_synced_at":"2025-04-04T01:27:35.778Z","repository":{"id":276217963,"uuid":"928608656","full_name":"superkabuki/SuperKabuki-FFmpegSCTE35patch","owner":"superkabuki","description":"Patch ffmpeg to let  SCTE-35 streams pass through as SCTE-35","archived":false,"fork":false,"pushed_at":"2025-02-08T17:41:05.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T18:30:20.469Z","etag":null,"topics":["adrianofdoom","adtech","ffmpeg","patched","scte-35","scte35","threefive3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superkabuki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T23:08:39.000Z","updated_at":"2025-02-08T17:41:09.000Z","dependencies_parsed_at":"2025-02-08T18:41:03.231Z","dependency_job_id":null,"html_url":"https://github.com/superkabuki/SuperKabuki-FFmpegSCTE35patch","commit_stats":null,"previous_names":["superkabuki/ffmpegscte-35patch","superkabuki/superkabuki-ffmpegscte35patch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2FSuperKabuki-FFmpegSCTE35patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2FSuperKabuki-FFmpegSCTE35patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2FSuperKabuki-FFmpegSCTE35patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superkabuki%2FSuperKabuki-FFmpegSCTE35patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superkabuki","download_url":"https://codeload.github.com/superkabuki/SuperKabuki-FFmpegSCTE35patch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237951347,"owners_count":19392681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adrianofdoom","adtech","ffmpeg","patched","scte-35","scte35","threefive3"],"created_at":"2025-02-09T13:15:22.027Z","updated_at":"2025-02-09T13:15:22.865Z","avatar_url":"https://github.com/superkabuki.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SuperKabuki SCTE35 patch for FFmpeg\n### FFmpeg changes mpegts SCTE-35 Streams (__0x86__) into bin data Streams (__0x06__).  \n### This is a patch for FFmpeg to let SCTE-35 mpegts Streams copy over as SCTE-35 Streams.\n---\n\n## How does it work?\n\n* The patch is only nine lines of code, it allows you copy a SCTE-35 stream over as SCTE-35, when you're encoding with ffmpeg.\n* The patch also adds the SCTE-35 Descriptor __(CUEI / 0x49455543)__ , just to be fancy.\n* Everything else works just like unpatched ffmpeg.\n---\n\n## How to use:\n\n### These are all super important. \n\n* map the SCTE-35 stream to the output file like  `-map 0` or maybe `-map 0:d` etc..\n* Set the SCTE-35 stream to copy like `-dcodec copy` or `-c copy` etc..\n* Use `-copyts` if you want your SCTE-35 and PTS to stay aligned \n* Use `-muxpreload 0` and  `-muxdelay 0` to avoid the 1.4 second start bump\n---\n\n\n\n## Install \n\n1. Clone [this repo](https://github.com/superkabuki/FFmpeg)\n2. cd FFmpeg-superkabuki-patched\n3. Configure ffmpeg  ( _do this with whichever options you like_ )\n  * I used\n```js\n./configure --enable-shared --enable-libx264 --enable-libx265 --enable-nonfree --enable-gpl --extra-version=-superkabuki-patch\n\n```\n4. make all\n5.  sudo make install\n---\n\n# Examples\n\n\n## Example 1:  Re-encode video to H265 and copy over the SCTE-35\n\n\n* original file\n![image](https://github.com/user-attachments/assets/b8816336-37a8-439e-87a1-d904f2815d7c)\n\n* ffmpeg command\n![image](https://github.com/user-attachments/assets/3c0190b0-479e-40ce-9c2e-9168919489a8)\n\n* new file\n![image](https://github.com/user-attachments/assets/2b76b386-814f-431b-a07a-a6eaa7001a12)\n\n---\n\n## Example 2:  Copy all streams, including SCTE-35, and cut the first 200 seconds.\n\n\n* original file\n![image](https://github.com/user-attachments/assets/30d88882-0814-4609-92fc-53ef29e77bae)\n\n* ffmpeg command\n ![image](https://github.com/user-attachments/assets/21b1b49a-c9a2-4e8b-8322-2b4f5755a51e)\n\n* new file\n![image](https://github.com/user-attachments/assets/f2cf31c6-90a4-428c-97bd-4ca82823fc71)\n\n\n\u003e Notice the start time and duration have both changed by ~200 seconds.\n\n* old\n```js\n Duration: 00:04:56.30, start: 72667.595200, bitrate: 962 kb/s\n```\n* new\n```js\n  Duration: 00:01:37.75, start: 72866.141867, bitrate: 962 kb/s\n```\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkabuki%2Fsuperkabuki-ffmpegscte35patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperkabuki%2Fsuperkabuki-ffmpegscte35patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkabuki%2Fsuperkabuki-ffmpegscte35patch/lists"}