Skip to content

Commit 1dae26a

Browse files
committed
wrong ffmpeg command
1 parent 0fcd37e commit 1dae26a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sports2D/Utilities/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def get_start_time_ffmpeg(video_path):
206206
Get the start time of a video using FFmpeg.
207207
'''
208208

209-
cmd = ["ffmpeg", "-i", video_path]
209+
ffmpeg_path = ffmpeg.get_ffmpeg_exe()
210+
cmd = [ffmpeg_path, "-i", video_path]
210211
result = subprocess.run(cmd, stderr=subprocess.PIPE, stdout=subprocess.DEVNULL, text=True)
211212
for line in result.stderr.splitlines():
212213
if "start:" in line:

0 commit comments

Comments
 (0)