Fix ffmpeg redirects. Fix max resolution setting.
This commit is contained in:
@ -44,10 +44,12 @@ router.get('/', async (req, res) => {
|
||||
'-err_detect', 'ignore_err',
|
||||
// Limit max demux delay to prevent buffering issues with bad timestamps
|
||||
'-max_delay', '5000000',
|
||||
'-http_persistent', '0',
|
||||
// Reconnect settings for network drops
|
||||
'-reconnect', '1',
|
||||
'-reconnect_streamed', '1',
|
||||
'-reconnect_delay_max', '5',
|
||||
'-reconnect_on_http_error', '4xx,5xx',
|
||||
'-reconnect_delay_max', '10',
|
||||
// Prevent Range/HEAD requests that some providers reject with 405
|
||||
'-seekable', '0',
|
||||
'-i', url,
|
||||
|
||||
Reference in New Issue
Block a user