Conditions | 1 |
Total Lines | 16 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
27 | def main(): |
||
28 | parser = argparse.ArgumentParser() |
||
29 | parser.add_argument('-i', '--input', required=True, |
||
30 | help='The path to the video file(or a supported resource) (required).') |
||
31 | parser.add_argument('-m', '--master_playlist', required=True, |
||
32 | help='The path to write the master playlist (required).') |
||
33 | parser.add_argument('-o', '--output', required=True, |
||
34 | help='A URL(or a supported resource e.x. http://website.com/live-out.m3u8) to upload files.') |
||
35 | args = parser.parse_args() |
||
36 | |||
37 | ( |
||
38 | ffmpeg_streaming |
||
39 | .hls(args.input, master_playlist_path=args.master_playlist) |
||
40 | .format('libx264') |
||
41 | .auto_rep() |
||
42 | .package(args.output, progress=progress) |
||
43 | ) |
||
48 |