mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix(audio): remove redundant -live_start_index flag in ffmpeg fallback
- Remove explicit -live_start_index input argument from _playViaFfmpeg - Rely on FFmpeg's built-in default (-3) for HLS broadcast edge playback - Prevent FFmpeg from aborting with 'Option live_start_index not found' on non-HLS streams
This commit is contained in:
1 parent
c188aac903
commit
9ddbcb682f
1 file changed
-5
@@ -763,7 +763,6 @@ export class FluxerAudioBridge extends EventEmitter {
|
|||||||
} else if (url.includes("googlevideo.com") || url.includes("youtube.com") || url.includes("youtu.be")) {
|
} else if (url.includes("googlevideo.com") || url.includes("youtube.com") || url.includes("youtu.be")) {
|
||||||
headers = "Origin: https://www.youtube.com\r\nReferer: https://www.youtube.com/\r\n";
|
headers = "Origin: https://www.youtube.com\r\nReferer: https://www.youtube.com/\r\n";
|
||||||
}
|
}
|
||||||
const isHls = url.includes(".m3u8") || /hls|m3u8/i.test(url);
|
|
||||||
const ffmpegArgs = [
|
const ffmpegArgs = [
|
||||||
"-re",
|
"-re",
|
||||||
];
|
];
|
||||||
@@ -776,10 +775,6 @@ export class FluxerAudioBridge extends EventEmitter {
|
|||||||
"-reconnect_streamed", "1",
|
"-reconnect_streamed", "1",
|
||||||
"-reconnect_delay_max", "5",
|
"-reconnect_delay_max", "5",
|
||||||
);
|
);
|
||||||
if (isHls) {
|
|
||||||
/* Start HLS live streams and DVR radios at the broadcast edge instead of starting from 0 (12h in the past) */
|
|
||||||
ffmpegArgs.push("-live_start_index", "-3");
|
|
||||||
}
|
|
||||||
ffmpegArgs.push(
|
ffmpegArgs.push(
|
||||||
"-i", url,
|
"-i", url,
|
||||||
"-vn",
|
"-vn",
|
||||||
|
|||||||
Reference in new issue
Block a user