update ffmpeg path

This commit is contained in:
Chneemann 2024-08-17 18:54:24 +02:00
parent 9fe80394e6
commit 1d192e35e1

View file

@ -13,7 +13,8 @@ def convert_video_to_hls(source, resolution, model_id):
base_filename = os.path.basename(source).split(".")[0] base_filename = os.path.basename(source).split(".")[0]
target = os.path.join(target_dir, f'{base_filename}_{resolution}p') target = os.path.join(target_dir, f'{base_filename}_{resolution}p')
ffmpeg_path = '/opt/homebrew/bin/ffmpeg' #ffmpeg_path = '/opt/homebrew/bin/ffmpeg'
ffmpeg_path = '/usr/bin/ffmpeg'
cmd = [ cmd = [
ffmpeg_path, ffmpeg_path,
'-i', source, '-i', source,