Conditions | 1 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
28 | def main(): |
||
29 | parser = argparse.ArgumentParser() |
||
30 | parser.add_argument('-i', '--input', required=True, |
||
31 | help='The path to the video file(or a supported resource) (required).') |
||
32 | parser.add_argument('-o', '--output', required=True, |
||
33 | help='A URL(or a supported resource e.x. http://website.com/live-out.mpd) to upload files.') |
||
34 | args = parser.parse_args() |
||
35 | |||
36 | ( |
||
37 | ffmpeg_streaming |
||
38 | .dash(args.input, adaption='"id=0,streams=v id=1,streams=a"') |
||
39 | .format('libx265') |
||
40 | .auto_rep() |
||
41 | .live(args.output, progress=progress) |
||
42 | ) |
||
47 |