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

problem with call #16

Open
cooliobr opened this issue Jul 9, 2024 · 10 comments
Open

problem with call #16

cooliobr opened this issue Jul 9, 2024 · 10 comments

Comments

@cooliobr
Copy link

cooliobr commented Jul 9, 2024

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
Copy link
Owner

futzu commented Jul 10, 2024


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

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

@futzu
Copy link
Owner

futzu commented Jul 10, 2024

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
Copy link
Author

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
Copy link
Author

args.output_dir

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

@futzu
Copy link
Owner

futzu commented Jul 13, 2024

Try this one.

umzz.tar.gz

  1. untar this in the same directory you run your code in
tar -xvzf umzz.tar.gz
  1. run your code.

@futzu
Copy link
Owner

futzu commented Jul 15, 2024

well?

@futzu
Copy link
Owner

futzu commented Jul 15, 2024

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

@cooliobr
Copy link
Author

cooliobr commented Jul 16, 2024 via email

@futzu
Copy link
Owner

futzu commented Jul 16, 2024

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

@cooliobr
Copy link
Author

Hi, now it is working very well

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

No branches or pull requests

2 participants