-
Notifications
You must be signed in to change notification settings - Fork 18
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
x9k3 not show CUE-OUT=YES/CUE-IN=YES messages. #2
Comments
index.m3u8.txt |
I think I got it. python3 -mpip install --upgrade x9k3 version is 0.1.37 |
Yes, i use splice immediate commands. |
Hey man did you see the fake live loop stuff?
|
@futzu hey man, How to add ,CUE-OUT=YES/ CUE-IN=YES, from -s sidecart.txt ? |
Is it a splice insert ? |
I don't know if you saw this |
you can use anything to trigger a CUE-OUT or CUE-IN, I called this file x9.py
import x9k3
def mk_hex_cue_tag(cue):
"""
mk_cue_tag
"""
if cue:
# make the cue a hex string
return f'#EXT-X-SCTE35:CUE="{cue.encode_as_hex()}"'
return "# No Cue"
def my_cue_out(cue):
"""
Returns True for a cue_out event.
"""
# if time signal
if cue.command.command_type == 6:
# if first descriptor is a segmentation descriptor
if cue.descriptors[0].tag ==2:
# if segmentation_message is "Break Start"
if cue.descriptors[0].segmentation_message== "Break Start":
return True
return False
def my_cue_in(cue):
"""
is_cue_in checks a Cue instance
to see if it is a cue_in event.
Returns True for a cue_in event.
"""
# if time signal
if cue.command.command_type == 6:
# if first descriptor is a segmentation descriptor
if cue.descriptors[0].tag ==2:
# if segmentation_message is "Break End"
if cue.descriptors[0].segmentation_message=="Break End":
return True
return False
if __name__ == '__main__':
x9 = x9k3.X9K3()
x9.scte35.is_cue_out = my_cue_out
x9.scte35.is_cue_in = my_cue_in
x9.mk_cue_tag = mk_hex_cue_tag
x9.decode()
|
here's an easier way, import x9k3
def mk_cue_tag(cue):
"""
mk_cue_tag with CUE-IN / CUE-OUT
using the out_of_network_indicator from Splice Inserts.
"""
if cue:
if cue.command.out_of_network_indicator:
return f'#EXT-X-SCTE35:CUE="{cue.encode()}" ,CUE-OUT=YES'
return f'#EXT-X-SCTE35:CUE="{cue.encode()}" ,CUE-IN=YES'
return "# No Cue"
if __name__ == '__main__':
x9 = x9k3.X9K3()
x9.mk_cue_tag = mk_hex_cue_tag
x9.decode()
|
When I take the time to help you, I expect a reply. |
Sorry for silence. I'm traveling last 2 weeks and cannot check your x9.py example. Its working Ok for me. I can customize messages in x9k3 or x9.py files. But before i try to make it working with only EXT-X-CUE-OUT and EXT-X-CUE-IN commands, without hex or anything else.. Also Amazon need manifest (master) playlist, not only media playlist (( |
Hello.
x9k3 not show CUE-OUT=YES/CUE-IN=YES messages, only binary decoded SCTE messages.
In version 1.21 we get string like that -
#EXT-X-SCTE35:CUE="/DAgAAAAAAAAAP/wDwUAAAAAf/9+AAAAAAAAAAAAAD4xJP8=",CUE-OUT=YES
In version 1.23 and latest string always show as
#EXT-X-SCTE35:CUE="/DAgAAAAAAAAAP/wDwUAAAAAf/9+AAAAAAAAAAAAAD4xJP8="
I think its related to discontinuity control in your script.
The text was updated successfully, but these errors were encountered: