Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
grisuno authored Jun 26, 2024
1 parent 40ab9ff commit ad6912a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def index():

try:
if action == 'encode':
output_file_path = os.path.join(tempfile.gettempdir(), output_file_name.replace('/tmp/', '') + f"{frame_width}x{frame_height}.mp4")
output_file_path = os.path.join(tempfile.gettempdir(), output_file_name + f"{frame_width}x{frame_height}.mp4")
encode_file_to_video(input_file_path, output_file_path, (int(frame_width), int(frame_height)), 30, int(block_size))
elif action == 'decode':
output_file_path = os.path.join(tempfile.gettempdir(), output_file_name + ".zip")
Expand Down

0 comments on commit ad6912a

Please sign in to comment.