Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 1.3 kB view raw
1diff --git a/r128gain/__init__.py b/r128gain/__init__.py 2index 79a5cbd..d8f13ba 100755 3--- a/r128gain/__init__.py 4+++ b/r128gain/__init__.py 5@@ -86,7 +86,7 @@ def get_ffmpeg_lib_versions(ffmpeg_path: Optional[str] = None) -> Dict[str, int] 6 Example: 0x3040100 for FFmpeg 3.4.1 7 """ 8 r = collections.OrderedDict() 9- cmd = (ffmpeg_path or "ffmpeg", "-version") 10+ cmd = (ffmpeg_path or "@ffmpeg@/bin/ffmpeg", "-version") 11 output_str = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, universal_newlines=True).stdout 12 output_lines = output_str.splitlines() 13 lib_version_regex = re.compile(r"^\s*(lib[a-z]+)\s+([0-9]+).\s*([0-9]+).\s*([0-9]+)\s+") 14@@ -194,7 +194,7 @@ def get_r128_loudness( # noqa: C901 15 ffmpeg.output(*output_streams, os.devnull, **additional_ffmpeg_args, f="null").global_args( 16 "-hide_banner", "-nostats" 17 ), 18- cmd=ffmpeg_path or "ffmpeg", 19+ cmd=ffmpeg_path or "@ffmpeg@/bin/ffmpeg", 20 ) 21 22 # run 23@@ -885,7 +885,7 @@ def cl_main() -> None: 24 arg_parser.add_argument( 25 "-f", 26 "--ffmpeg-path", 27- default=shutil.which("ffmpeg"), 28+ default="@ffmpeg@/bin/ffmpeg", 29 help="""Full file path of ffmpeg executable (only needed if not in PATH). 30 If not specified, autodetect""", 31 )