GUI-STUDIO commited on
Commit
96afdc5
·
1 Parent(s): b568ef3
Files changed (1) hide show
  1. src/lib/ffmpeg-v2.ts +5 -3
src/lib/ffmpeg-v2.ts CHANGED
@@ -310,17 +310,19 @@ async function F_build_ffmpeg_flags_t1(arg0: {
310
  flags.push("-reconnect", "1");
311
  flags.push("-reconnect_streamed", "1");
312
  if (playback.type === "hls" && delivery_mode === "stream") flags.push("-reconnect_at_eof", "1");
313
- flags.push("-reconnect_delay_max", "20");
314
  flags.push("-rw_timeout", `${1_000_000 * 30}`);
315
  flags.push("-reconnect_on_network_error", "1");
316
- flags.push("-reconnect_on_http_error", "429,500,502,503,504");
 
317
 
318
  // flags.push("-fflags", "+discardcorrupt+genpts+nobuffer");
319
  // flags.push("-live_start_index", "-2"); // For live streams: start near the end
320
  // flags.push("-fflags", "+discardcorrupt"); // Don't hang on truncated segments
321
 
322
- if (playback.type === "hls") flags.push("-http_persistent", "1");
323
  if (playback.type === "hls") flags.push("-http_multiple", "0");
 
324
 
325
  flags.push("-protocol_whitelist", "file,http,https,tcp,tls,crypto");
326
  if (playback.type === "hls") flags.push("-allowed_extensions", "ALL");
 
310
  flags.push("-reconnect", "1");
311
  flags.push("-reconnect_streamed", "1");
312
  if (playback.type === "hls" && delivery_mode === "stream") flags.push("-reconnect_at_eof", "1");
313
+ flags.push("-reconnect_delay_max", "30");
314
  flags.push("-rw_timeout", `${1_000_000 * 30}`);
315
  flags.push("-reconnect_on_network_error", "1");
316
+ // flags.push("-reconnect_on_http_error", "429,500,502,503,504");
317
+ flags.push("-reconnect_on_http_error", "500,502,503,504");
318
 
319
  // flags.push("-fflags", "+discardcorrupt+genpts+nobuffer");
320
  // flags.push("-live_start_index", "-2"); // For live streams: start near the end
321
  // flags.push("-fflags", "+discardcorrupt"); // Don't hang on truncated segments
322
 
323
+ if (playback.type === "hls") flags.push("-http_persistent", "0");
324
  if (playback.type === "hls") flags.push("-http_multiple", "0");
325
+ if (playback.type === "hls") flags.push("-http_seekable", "0");
326
 
327
  flags.push("-protocol_whitelist", "file,http,https,tcp,tls,crypto");
328
  if (playback.type === "hls") flags.push("-allowed_extensions", "ALL");