Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from hflow.ffmpeg import ffmpeg_path
from hflow.ffmpeg import ffmpeg_path, ffprobe_path
from hflow.video import (
AccessUnit,
VideoEncodeError,
Expand Down Expand Up @@ -151,9 +151,7 @@ def test_png_input_codec_upholds_guarantees(tmp_path: Path) -> None:

def _ffprobe_video_stream_fields(mp4_path: Path) -> dict[str, str]:
"""Read codec/profile/decoded-frame-count fields from the first video stream."""
ffprobe_binary = ffmpeg_path().with_name("ffprobe")
if not ffprobe_binary.is_file():
ffprobe_binary = Path("/usr/bin/ffprobe")
ffprobe_binary = ffprobe_path()
completed = subprocess.run(
[
str(ffprobe_binary),
Expand Down