futzu / umzz

SCTE-35 Injection for Adaptive Bitrate HLS
GNU General Public License v3.0
7 stars 4 forks source link

problem with call #16

Open cooliobr opened 1 month ago

cooliobr commented 1 month ago

I am trying this call, but it is not deleting or respecting the args. Comment out the sidecar and input.

#!/usr/bin/env pypy3
import os
from umzz import do, argue

args = argue()

args.input = "/usr/share/ffplayout/public/live/para/playlist.m3u8"
args.live = True
args.window_size = 4
args.time = 4
args.program_date_time = True
args.no_discontinuity = True
args.continue_m3u8 = True
args.replay = True
args.delete = True
args.sidecar_file = "/opt/mark/sidecar_hls3.txt"
args.output_dir = '/usr/share/ffplayout/public/live/para/scte35/'

# Change the working directory to args.output_dir
os.chdir(args.output_dir)

do(args)
futzu commented 1 month ago

# Change the working directory to args.output_dir
os.chdir(args.output_dir)

Don't change to the directory, stay where you are.

futzu commented 1 month ago

mine works just fine, I did have one x9k3 related issue, you may need to comment out lime 831 in x9k3.py if it is self.clear() image

Rendition Process Started /home/a/gogogo/0
Rendition Process Started /home/a/gogogo/1
input = ../foam4/0/index.m3u8                                                   
sidecar_file = None
output_dir = /home/a/gogogo/0
time = 2
hls_tag = x_cue
window_size = 5
live = True
iframe = False
byterange = False
continue_m3u8 = False
delete = True
no_throttle = False
program_date_time = False
replay = False
shulga = False
no_discontinuity = False
version = False
input = ../foam4/1/index.m3u8                                                   
sidecar_file = None
output_dir = /home/a/gogogo/1
time = 2
hls_tag = x_cue
window_size = 5
live = True
iframe = False
byterange = False
continue_m3u8 = False
delete = True
no_throttle = False
program_date_time = False
replay = False
shulga = False
no_discontinuity = False
version = False
throttling 1.991/seg0.ts:   duration: 2.000000  end: 6.266667  start: 4.266667  
throttling 1.950/seg0.ts:   duration: 2.000000  end: 6.266667  start: 4.266667  
throttling 1.980/seg1.ts:   duration: 2.000000  end: 8.266667  start: 6.266667  
throttling 1.981/seg1.ts:   duration: 2.000000  end: 8.266667  start: 6.266667  
throttling 1.980/seg2.ts:   duration: 2.000000  end: 10.266667  start: 8.266667 
throttling 1.991/seg2.ts:   duration: 2.000000  end: 10.266667  start: 8.266667 
throttling 1.990/seg3.ts:   duration: 2.000000  end: 12.266667  start: 10.266667 
throttling 2.0/1/seg3.ts:   duration: 2.000000  end: 12.266667  start: 10.266667 
throttling 1.991/seg4.ts:   duration: 2.000000  end: 14.266667  start: 12.266667 
throttling 1.960/seg4.ts:   duration: 2.000000  end: 14.266667  start: 12.266667 
deleted /home/a/gogogo/0/seg0.ts
deleted /home/a/gogogo/1/seg0.ts
throttling 1.890/seg5.ts:   duration: 2.000000  end: 16.266667  start: 14.266667 
throttling 1.891/seg5.ts:   duration: 2.000000  end: 16.266667  start: 14.266667 
deleted /home/a/gogogo/0/seg1.ts
deleted /home/a/gogogo/1/seg1.ts
throttling 1.890/seg6.ts:   duration: 2.000000  end: 18.266667  start: 16.266667 
throttling 1.891/seg6.ts:   duration: 2.000000  end: 18.266667  start: 16.266667 
deleted /home/a/gogogo/0/seg2.ts
deleted /home/a/gogogo/1/seg2.ts
throttling 1.890/seg7.ts:   duration: 2.000000  end: 20.266667  start: 18.266667 
throttling 1.891/seg7.ts:   duration: 2.000000  end: 20.266667  start: 18.266667 
deleted /home/a/gogogo/1/seg3.ts
deleted /home/a/gogogo/0/seg3.ts
throttling 1.891/seg8.ts:   duration: 2.000000  end: 22.266667  start: 20.266667 
throttling 1.840/seg8.ts:   duration: 2.000000  end: 22.266667  start: 20.266667 
deleted /home/a/gogogo/0/seg4.ts
deleted /home/a/gogogo/1/seg4.ts
cooliobr commented 1 month ago

I'm using the pip version (0.2.57) and it doesn't have this line #831. Today I will install a fresh linux to test.

INFO: if I start umzz with this command, all params work fine pypy3.10 /usr/local/bin/umzz -i /usr/share/ffplayout/public/live/para/playlist.m3u8 -o /usr/share/ffplayout/public/live/para/scte35 --sidecar_file /opt/mark/sidecar_hls3.txt -l -d -t 6 -p -w 4 -c but same params in "py" does not.

cooliobr commented 1 month ago

args.output_dir

I put this line after py only create renditions (.ts) files in ./ and renditions (.m3u8) files in args.output_dir

futzu commented 1 month ago

Try this one.

umzz.tar.gz

1) untar this in the same directory you run your code in

tar -xvzf umzz.tar.gz

2) run your code.

futzu commented 1 month ago

well?

futzu commented 1 month ago

I just pushed o.o.33 python3 -m pip install --upgrade umzz

cooliobr commented 1 month ago

Sorry, i was on my Farm last weekend. I will try tomorrow

Em seg., 15 de jul. de 2024 17:46, Adrian of Doom @.***> escreveu:

I just pushed o.o.33 python3 -m pip install --upgrade umzz

— Reply to this email directly, view it on GitHub https://github.com/futzu/umzz/issues/16#issuecomment-2229401478, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBIDCS6I73TAO37DX245NTZMQYKRAVCNFSM6AAAAABKTL4FI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGQYDCNBXHA . You are receiving this because you authored the thread.Message ID: @.***>

futzu commented 1 month ago

Cool, just pip up and you should be good, you don't need the file I posted here.

cooliobr commented 1 month ago

Hi, now it is working very well