problem with call
cooliobr opened this issue · 10 comments
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)
# Change the working directory to args.output_dir
os.chdir(args.output_dir)
Don't change to the directory, stay where you are.
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()
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
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.
args.output_dir
I put this line after py only create renditions (.ts) files in ./ and renditions (.m3u8) files in args.output_dir
Try this one.
- untar this in the same directory you run your code in
tar -xvzf umzz.tar.gz
- run your code.
well?
I just pushed o.o.33
python3 -m pip install --upgrade umzz
Cool, just pip up and you should be good, you don't need the file I posted here.
Hi, now it is working very well