Skip to content

Commit 1e25b60

Browse files
update examples -> add time left
1 parent 50d3c7f commit 1e25b60

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

examples/hls/hls.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ def transcode_progress(per, ffmpeg):
4040

4141

4242
def main():
43-
# parser = argparse.ArgumentParser()
44-
#
45-
# parser.add_argument('-i', '--input', required=True, help='The path to the video file (required).')
46-
# parser.add_argument('-o', '--output', default=None, help='The output to write files.')
47-
#
48-
# args = parser.parse_args()
43+
parser = argparse.ArgumentParser()
44+
45+
parser.add_argument('-i', '--input', required=True, help='The path to the video file (required).')
46+
parser.add_argument('-o', '--output', default=None, help='The output to write files.')
47+
48+
args = parser.parse_args()
4949

5050
(
5151
ffmpeg_streaming
52-
.hls("c:\\test\\test8.mkv", hls_time=20)
52+
.hls(args.input, hls_time=20)
5353
.format('libx264')
5454
.auto_rep()
55-
.package("c:\\test\\maman\\ahmad.m3u8", progress=transcode_progress)
55+
.package(args.output, progress=transcode_progress)
5656
)
5757

5858

0 commit comments

Comments
 (0)