chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / mu / music-assistant / ffmpeg.patch
blobe0356bd4189b81d1cf5d4265d127729a2ed57f73
1 diff --git a/music_assistant/server/helpers/audio.py b/music_assistant/server/helpers/audio.py
2 index 80310604..0a72bcfc 100644
3 --- a/music_assistant/server/helpers/audio.py
4 +++ b/music_assistant/server/helpers/audio.py
5 @@ -74,7 +74,7 @@ async def crossfade_pcm_parts(
6 await outfile.write(fade_out_part)
7 args = [
8 # generic args
9 - "ffmpeg",
10 + "@ffmpeg@",
11 "-hide_banner",
12 "-loglevel",
13 "quiet",
14 @@ -135,7 +135,7 @@ async def strip_silence(
15 reverse: bool = False,
16 ) -> bytes:
17 """Strip silence from begin or end of pcm audio using ffmpeg."""
18 - args = ["ffmpeg", "-hide_banner", "-loglevel", "quiet"]
19 + args = ["@ffmpeg@", "-hide_banner", "-loglevel", "quiet"]
20 args += [
21 "-acodec",
22 pcm_format.content_type.name.lower(),
23 @@ -812,7 +812,7 @@ async def get_file_stream(
24 async def check_audio_support() -> tuple[bool, bool, str]:
25 """Check if ffmpeg is present (with/without libsoxr support)."""
26 # check for FFmpeg presence
27 - returncode, output = await check_output("ffmpeg", "-version")
28 + returncode, output = await check_output("@ffmpeg@", "-version")
29 ffmpeg_present = returncode == 0 and "FFmpeg" in output.decode()
31 # use globals as in-memory cache
32 @@ -866,7 +866,7 @@ async def get_silence(
33 return
34 # use ffmpeg for all other encodings
35 args = [
36 - "ffmpeg",
37 + "@ffmpeg@",
38 "-hide_banner",
39 "-loglevel",
40 "quiet",
41 diff --git a/music_assistant/server/helpers/ffmpeg.py b/music_assistant/server/helpers/ffmpeg.py
42 index 0aaa9dcf..88cd9cdb 100644
43 --- a/music_assistant/server/helpers/ffmpeg.py
44 +++ b/music_assistant/server/helpers/ffmpeg.py
45 @@ -200,7 +200,7 @@ def get_ffmpeg_args(
47 # generic args
48 generic_args = [
49 - "ffmpeg",
50 + "@ffmpeg@",
51 "-hide_banner",
52 "-loglevel",
53 loglevel,
54 diff --git a/music_assistant/server/helpers/tags.py b/music_assistant/server/helpers/tags.py
55 index c60ea526..162c4ab7 100644
56 --- a/music_assistant/server/helpers/tags.py
57 +++ b/music_assistant/server/helpers/tags.py
58 @@ -401,7 +401,7 @@ async def parse_tags(input_file: str, file_size: int | None = None) -> AudioTags
59 Input_file may be a (local) filename or URL accessible by ffmpeg.
60 """
61 args = (
62 - "ffprobe",
63 + "@ffprobe@",
64 "-hide_banner",
65 "-loglevel",
66 "fatal",
67 @@ -462,7 +462,7 @@ async def get_embedded_image(input_file: str) -> bytes | None:
68 Input_file may be a (local) filename or URL accessible by ffmpeg.
69 """
70 args = (
71 - "ffmpeg",
72 + "@ffmpeg@",
73 "-hide_banner",
74 "-loglevel",
75 "error",