Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detection and print out of SCTE-35 markers #11

Closed
tobbee opened this issue Jan 19, 2024 · 1 comment · Fixed by #16
Closed

Add detection and print out of SCTE-35 markers #11

tobbee opened this issue Jan 19, 2024 · 1 comment · Fixed by #16
Assignees

Comments

@tobbee
Copy link
Collaborator

tobbee commented Jan 19, 2024

Beyond seeing elementary streams from "mp2ts-info" it would be good to see if there is a SCTE-35 PID and how many markers are in the stream. A parameter could specify that they should be printed as well.

@Wkkkkk Wkkkkk self-assigned this Jan 23, 2024
@Wkkkkk Wkkkkk linked a pull request Jan 24, 2024 that will close this issue
@Wkkkkk
Copy link
Collaborator

Wkkkkk commented Jan 24, 2024

Now we can detect the SCTE35 markers. WIth the two test files (ts_with_scte35.ts and 80s_with_ad.ts),

go run . -indent=false -service -scte35 ~/testfile.ts

we have output as follows.

{"pid":256,"codec":"AVC","type":"video"}
{"pid":257,"codec":"AAC","type":"audio"}
{"pid":1001,"codec":"SCTE35","type":"cue"}
{"SDT":[{"serviceId":1,"descriptors":[{"serviceName":"Service01","providerName":"FFmpeg"}]}]}
{"pid":1001,"spliceCommand":{"type":"SpliceInsert","eventId":255,"duration":1800000}}

and

{"pid":289,"codec":"AVC","type":"video"}
{"pid":545,"codec":"AAC","type":"audio"}
{"pid":546,"codec":"AAC","type":"audio"}
{"pid":53,"codec":"SCTE35","type":"cue"}
{"SDT":[{"serviceId":1,"descriptors":[{"serviceName":"A1Now","providerName":"Sportradar"}]}]}
{"pid":53,"spliceCommand":{"type":"SpliceInsert","eventId":8}}
{"pid":53,"spliceCommand":{"type":"SpliceInsert","eventId":1,"duration":2700000}}
{"pid":53,"spliceCommand":{"type":"SpliceInsert","eventId":1}}
{"pid":53,"spliceCommand":{"type":"SpliceInsert","eventId":2,"duration":4500000}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants