Skip to content

Commit 7dbf57a

Browse files
committed
try enabling reconnect in FFmpeg to solve issues
1 parent a17d2f6 commit 7dbf57a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
custom: # Replace with a single custom sponsorship URL
99

10+
github: amishshah
1011
patreon: discordjs
1112
custom: https://www.paypal.me/amishshah17

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ module.exports = function download(url, options = {}) {
2222
} else {
2323
const transcoder = new prism.FFmpeg({
2424
args: [
25+
'-reconnect', '1',
26+
'-reconnect_streamed', '1',
27+
'-reconnect_delay_max', '5',
2528
'-i', format.url,
2629
'-analyzeduration', '0',
2730
'-loglevel', '0',

0 commit comments

Comments
 (0)