Jeffgold commited on
Commit
fb7cfb1
·
1 Parent(s): 879e1ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -7,13 +7,11 @@ import os
7
 
8
  def transcode_video(input_video_file, output_file, output_format, output_fps):
9
  """Transcodes a video file to m3u8 using ffmpeg.
10
-
11
  Args:
12
  input_video_file: The path to the video file to transcode.
13
  output_file: The path to the transcoded m3u8 file.
14
  output_format: The output format of the transcoded file.
15
  output_fps: The output framerate of the transcoded file.
16
-
17
  Returns:
18
  The path to the transcoded file.
19
  """
@@ -30,9 +28,10 @@ def transcode_video(input_video_file, output_file, output_format, output_fps):
30
  return output_file
31
 
32
  def name_file(file):
33
- return file.name
34
 
35
- input_video_file = File(accept=".mp4, .mov, .avi, .flv, .wmv, .mpeg, .mpg, .ogg, .webm")
 
36
 
37
  outputs={"output_file": File(name_file(input_video_file), accept=".m3u8")}
38
 
 
7
 
8
  def transcode_video(input_video_file, output_file, output_format, output_fps):
9
  """Transcodes a video file to m3u8 using ffmpeg.
 
10
  Args:
11
  input_video_file: The path to the video file to transcode.
12
  output_file: The path to the transcoded m3u8 file.
13
  output_format: The output format of the transcoded file.
14
  output_fps: The output framerate of the transcoded file.
 
15
  Returns:
16
  The path to the transcoded file.
17
  """
 
28
  return output_file
29
 
30
  def name_file(file):
31
+ return file.path
32
 
33
+ # Remove unused keyword argument
34
+ input_video_file = File()
35
 
36
  outputs={"output_file": File(name_file(input_video_file), accept=".m3u8")}
37