Skip to content

Commit 869f0f4

Browse files
authored
Merge pull request #181 from Sofie-Automation/Julusian-patch-1
fix: support for ffmpeg 7.0
2 parents 70ff6e7 + 1c00553 commit 869f0f4

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

shared/packages/worker/src/worker/workers/genericWorker/expectationHandlers/lib/scan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ function scanLoudnessStream(
568568
const LayoutRegex = /Output #0, null[\S\s]+Stream #0:0: Audio: [\w]+, [\d]+ Hz, (?<layout>\w+),/
569569

570570
const LoudnessRegex =
571-
/Integrated loudness:\s+I:\s+(?<integrated>[\d-.,]+)\s+LUFS\s+Threshold:\s+(?<threshold>[\d-.,]+)\s+LUFS\s+Loudness range:\s+LRA:\s+(?<lra>[\d-.,]+)\s+LU\s+Threshold:\s+(?<rangeThreshold>[\d-.,]+)\s+LUFS\s+LRA low:\s+(?<lraLow>[\d-.,]+)\s+LUFS\s+LRA high:\s+(?<lraHigh>[\d-.,]+)\s+LUFS\s+True peak:\s+Peak:\s+(?<truePeak>[\d-.,]+)\s+dBFS\s*$/i
571+
/Integrated loudness:\s+I:\s+(?<integrated>[\d-.,]+)\s+LUFS\s+Threshold:\s+(?<threshold>[\d-.,]+)\s+LUFS\s+Loudness range:\s+LRA:\s+(?<lra>[\d-.,]+)\s+LU\s+Threshold:\s+(?<rangeThreshold>[\d-.,]+)\s+LUFS\s+LRA low:\s+(?<lraLow>[\d-.,]+)\s+LUFS\s+LRA high:\s+(?<lraHigh>[\d-.,]+)\s+LUFS\s+True peak:\s+Peak:\s+(?<truePeak>[\d-.,]+)\s+dBFS/i
572572

573573
const loudnessRes = LoudnessRegex.exec(stderr)
574574
const layoutRes = LayoutRegex.exec(stderr)

tests/ffmpegReleases.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
{
1616
"id": "6.1",
1717
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-6.1-amd64-static.tar.xz"
18+
},
19+
{
20+
"id": "7.0.2",
21+
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-7.0.2-amd64-static.tar.xz"
1822
}
1923
],
2024
"win32-x64": [
@@ -33,6 +37,18 @@
3337
{
3438
"id": "6.1",
3539
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-6.1-essentials_build.zip"
40+
},
41+
{
42+
"id": "7.0",
43+
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-7.0-essentials_build.zip"
44+
},
45+
{
46+
"id": "7.1.1",
47+
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-7.1.1-essentials_build.zip"
48+
},
49+
{
50+
"id": "8.0.1",
51+
"url": "https://github.com/CasparCG/dependencies/releases/download/ffmpeg-binaries/ffmpeg-8.0.1-essentials_build.zip"
3652
}
3753
]
3854
}

0 commit comments

Comments
 (0)