Use file: in ffprobe as well

This commit is contained in:
Olivier 'reivilibre' 2022-11-21 16:05:51 +00:00
parent 0457582ed5
commit d8dc726fb7

View File

@ -9,7 +9,7 @@ from typing import Any, Dict, List, Union
def probe_metadata(file: Path) -> Dict[str, Any]:
output = subprocess.check_output(
("ffprobe", "-show_streams", "-print_format", "json", file)
("ffprobe", "-show_streams", "-print_format", "json", f"file:{file}")
)
return json.loads(output)