Package: six2scte35
six2scte35six2scte35 requires threefive version >= 2.3.65ffmpeg changes SCTE-35 stream type from 0x86 to 0x6six2scte35 changes it back.beforea@debian:~/bfm/mo$ffprobe-hide_bannertested2.tsInput#0,mpegts,from'tested2.ts':Duration:00:00:38.92,start:1.400000,bitrate:8453kb/sStream#0:0[0x100]:Data:bin_data([6][0][0][0]/0x0006)<--Boo,hiss.Stream#0:1[0x101]:Video:mpeg2video(Main)([2][0][0][0]/0x0002),yuv420p(tv,bt470bg,topfirst),1280x720[SAR1:1DAR16:9],8000kb/s,50fps,50tbr,90ktbnStream#0:2[0x102]:Audio:mp1([6][0][0][0]/0x0006),48000Hz,stereo,s16p,256kb/ssix2scte35a@debian:~/bfm/mo$./six2scte35.py-itested2.ts-p256-otested3.tsaftera@debian:~/bfm/mo$ffprobe-hide_bannertested3.tsInput#0,mpegts,from'tested3.ts':Duration:00:00:38.92,start:1.400000,bitrate:8453kb/sStream#0:0[0x100]:Data:scte_35<--Boom<<Boom.Stream#0:1[0x101]:Video:mpeg2video(Main)([2][0][0][0]/0x0002),yuv420p(tv,bt470bg,topfirst),1280x720[SAR1:1DAR16:9],8000kb/s,50fps,50tbr,90ktbnStream#0:2[0x102]:Audio:mp1([6][0][0][0]/0x0006),48000Hz,stereo,s16p,256kb/sVersion 0.0.3 adds pipe supporta@debian:~$pypy3six2scte35.py-v0.0.3a@debian:~$Here's the inputa@debian:~$ffprobepv.ts-hide_banner[mpegts@0x55ddbc4045c0]starttimeforstream5isnotsetinestimate_timings_from_ptsInput#0,mpegts,from'pv.ts':Duration:00:00:20.33,start:1.400000,bitrate:17696kb/sProgram1Metadata:service_name:Service01service_provider:FFmpegStream#0:0[0x100]:Video:h264(High)([27][0][0][0]/0x001B),yuv420p(tv,bt709,progressive),1280x720[SAR1:1DAR16:9],ClosedCaptions,59.94fps,59.94tbr,90ktbnStream#0:1[0x101]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:2[0x102]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:3[0x103]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:4[0x104]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:5[0x105]:Data:bin_data([6][0][0][0]/0x0006)Unsupportedcodecwithid98314forinputstream5a@debian:~$then I ran this commanda@debian:~$catpv.ts|pypy3six2scte35.py-p0x105|ffplay-hide_banner-output261pidmatchInput#0,mpegts,from'pipe:':0KBvq=0KBsq=0Bf=0/0Duration:N/A,start:1.400000,bitrate:N/AProgram1Metadata:service_name:Service01service_provider:FFmpegStream#0:0[0x100]:Video:h264(High)([27][0][0][0]/0x001B),yuv420p(tv,bt709,progressive),1280x720[SAR1:1DAR16:9],ClosedCaptions,59.94fps,59.94tbr,90ktbnStream#0:1[0x101]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:2[0x102]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:3[0x103]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:4[0x104]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:5[0x105]:Data:scte_3517.30A-V:-0.019fd=0aq=32KBvq=2498KBsq=0Bf=0/0to write to a filea@debian:~$catpv.ts|pypy3six2scte352.py-p0x105-okout.ts261pidmatchffprobe-hide_bannerkout.tsInput#0,mpegts,from'kout.ts':Duration:00:00:20.24,start:1.400000,bitrate:17650kb/sProgram1Metadata:service_name:Service01service_provider:FFmpegStream#0:0[0x100]:Video:h264(High)([27][0][0][0]/0x001B),yuv420p(tv,bt709,progressive),1280x720[SAR1:1DAR16:9],ClosedCaptions,59.94fps,59.94tbr,90ktbnStream#0:1[0x101]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:2[0x102]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:3[0x103]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:4[0x104]:Audio:mp2([3][0][0][0]/0x0003),48000Hz,stereo,fltp,256kb/sStream#0:5[0x105]:Data:scte_35Unsupportedcodecwithid98305forinputstream5so you can do something likeffmpeg-impegts/pcrvid.ts-map0-ccopy-fmpegts-|pypy3six2scte35.py-p0x105|ffplay-