Skip to content

pts_time calculation for Splice Insert encoding #85

Answered by futzu
cosec90 asked this question in Q&A
Discussion options

You must be logged in to vote

I have no idea what a POIS server is, but then again, there is a lot I don't know.

If you want to change the break_duration, just change the break duration and re-encode.

a@debian:~/tunein$ pypy3
Python 3.9.16 (7.3.11+dfsg-2, Feb 06 2023, 16:52:03)
[PyPy 7.3.11 with GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> from threefive import Cue
>>>> cue = Cue('/DBFAAAAAyiYAP/wFAUAAAABf+//uX+wrv4ApN46mZkBAQAgAh5DVUVJAAAAAH/AAACky\
4ABCDEwMTAwMDAwNAAAAAArI1sl=')
>>>> cue.decode()
True
>>>> cue.command.break_duration
120.053267
>>>> cue.command.break_duration = 180.0
>>>> cue.encode()
'/DBFAAAAAyiYAP/wFAUAAAABf+//uX+wrv4A9zFAmZkBAQAgAh5DVUVJAAAAAH/A…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by futzu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants