We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e4e4d commit 3bfb1cbCopy full SHA for 3bfb1cb
1 file changed
src/ffmpegio/probe.py
@@ -6,6 +6,7 @@
6
import json, re
7
from fractions import Fraction
8
from functools import lru_cache
9
+from os import PathLike
10
11
from .path import ffprobe, PIPE
12
from .utils import parse_stream_spec
@@ -196,7 +197,7 @@ def _exec(
196
197
["-show_optional_fields", "always" if keep_optional_fields else "never"]
198
)
199
- pipe = not isinstance(url, str)
200
+ pipe = not isinstance(url, (str, PathLike))
201
args.append("-" if pipe else url)
202
203
if pipe:
0 commit comments