GUI-STUDIO commited on
Commit ·
51116b1
1
Parent(s): 1fee550
Update workflow and ffmpeg configuration
Browse files- src/lib/ffmpeg-v2.ts +3 -3
src/lib/ffmpeg-v2.ts
CHANGED
|
@@ -455,8 +455,8 @@ async function F_build_ffmpeg_flags_t1(arg0: {
|
|
| 455 |
// flags.push("-reconnect_on_http_error", "429,500,502,503,504");
|
| 456 |
flags.push("-reconnect_on_http_error", "500,502,503,504");
|
| 457 |
|
| 458 |
-
flags.push("-fflags", "+discardcorrupt+genpts");
|
| 459 |
-
|
| 460 |
// flags.push("-live_start_index", "-2"); // For live streams: start near the end
|
| 461 |
|
| 462 |
if (playback.type === "hls") {
|
|
@@ -641,7 +641,7 @@ async function F_build_ffmpeg_flags_t1(arg0: {
|
|
| 641 |
}
|
| 642 |
|
| 643 |
if (subs) {
|
| 644 |
-
|
| 645 |
flags.push("-c:s", "mov_text");
|
| 646 |
|
| 647 |
subs.forEach((s, i) => {
|
|
|
|
| 455 |
// flags.push("-reconnect_on_http_error", "429,500,502,503,504");
|
| 456 |
flags.push("-reconnect_on_http_error", "500,502,503,504");
|
| 457 |
|
| 458 |
+
// flags.push("-fflags", "+discardcorrupt+genpts");
|
| 459 |
+
flags.push("-fflags", "+discardcorrupt+genpts+igndts"); // Don't hang on truncated segments
|
| 460 |
// flags.push("-live_start_index", "-2"); // For live streams: start near the end
|
| 461 |
|
| 462 |
if (playback.type === "hls") {
|
|
|
|
| 641 |
}
|
| 642 |
|
| 643 |
if (subs) {
|
| 644 |
+
flags.push("-async", "1");
|
| 645 |
flags.push("-c:s", "mov_text");
|
| 646 |
|
| 647 |
subs.forEach((s, i) => {
|