Jeffgold commited on
Commit
9a8cb78
·
1 Parent(s): 1e22a86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality",
15
  aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio", default="16:9")
16
 
17
  def convert_video(video_file: File, quality, aspect_ratio):
18
- output_path = f"{video_file.name}.m3u8"
19
 
20
  temp_dir = tempfile.gettempdir()
21
  ffmpeg_command = f"ffmpeg -i {video_file} -c:v libx264 -crf {quality} -f hls -aspect {aspect_ratio} {temp_dir}/{output_path}"
 
15
  aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio", default="16:9")
16
 
17
  def convert_video(video_file: File, quality, aspect_ratio):
18
+ output_path = f"{video_file.stem}.m3u8"
19
 
20
  temp_dir = tempfile.gettempdir()
21
  ffmpeg_command = f"ffmpeg -i {video_file} -c:v libx264 -crf {quality} -f hls -aspect {aspect_ratio} {temp_dir}/{output_path}"