Skip to content

Commit

Permalink
wrong ffmpeg command
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Dec 9, 2024
1 parent 0fcd37e commit 1dae26a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sports2D/Utilities/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def get_start_time_ffmpeg(video_path):
Get the start time of a video using FFmpeg.
'''

cmd = ["ffmpeg", "-i", video_path]
ffmpeg_path = ffmpeg.get_ffmpeg_exe()
cmd = [ffmpeg_path, "-i", video_path]
result = subprocess.run(cmd, stderr=subprocess.PIPE, stdout=subprocess.DEVNULL, text=True)
for line in result.stderr.splitlines():
if "start:" in line:
Expand Down

0 comments on commit 1dae26a

Please sign in to comment.