GUI-STUDIO commited on
Commit ·
8aaf2c5
1
Parent(s): 20c6701
Update ffmpeg-v2.ts
Browse files- src/lib/ffmpeg-v2.ts +3 -3
src/lib/ffmpeg-v2.ts
CHANGED
|
@@ -65,10 +65,10 @@ function check_if_fFmpeg_active() {
|
|
| 65 |
try {
|
| 66 |
const version = execSync(`${ffmpeg_path} -version`, { encoding: "utf8" });
|
| 67 |
console.log("\n");
|
| 68 |
-
console.log("⚙️
|
| 69 |
return true;
|
| 70 |
} catch {
|
| 71 |
-
console.error("❗
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
}
|
|
@@ -317,7 +317,7 @@ async function F_build_ffmpeg_flags_t1(arg0: {
|
|
| 317 |
|
| 318 |
// flags.push("-fflags", "+discardcorrupt+genpts+nobuffer");
|
| 319 |
|
| 320 |
-
if (playback.type === "hls") flags.push("-http_persistent
|
| 321 |
|
| 322 |
flags.push("-protocol_whitelist", "file,http,https,tcp,tls,crypto");
|
| 323 |
if (playback.type === "hls") flags.push("-allowed_extensions", "ALL");
|
|
|
|
| 65 |
try {
|
| 66 |
const version = execSync(`${ffmpeg_path} -version`, { encoding: "utf8" });
|
| 67 |
console.log("\n");
|
| 68 |
+
console.log("⚙️ ", version.split("\n")[0], "\n");
|
| 69 |
return true;
|
| 70 |
} catch {
|
| 71 |
+
console.error("❗FFmpeg not found in PATH", "\n");
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
}
|
|
|
|
| 317 |
|
| 318 |
// flags.push("-fflags", "+discardcorrupt+genpts+nobuffer");
|
| 319 |
|
| 320 |
+
if (playback.type === "hls") flags.push("-http_persistent", "1");
|
| 321 |
|
| 322 |
flags.push("-protocol_whitelist", "file,http,https,tcp,tls,crypto");
|
| 323 |
if (playback.type === "hls") flags.push("-allowed_extensions", "ALL");
|