Mika
Mika
DIAdiscord.js - Imagine an app
Created by Mika on 1/30/2024 in #djs-voice
Set Path to custom ffmpeg binary
Hello, we're currently encountering issues with the static-ffmpeg module in our Docker container, occasionally resulting in an EAGAIN Error. To address this, we're considering mounting the ffmpeg binary from outside the container and using this path internally. Is there a method for setting the ffmpeg binary path through an environment variable?
3 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
23-10-2023 22:35:54 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -11,
code: 'EAGAIN',
syscall: 'spawn /home/container/node_modules/ffmpeg-static/ffmpeg',
path: '/home/container/node_modules/ffmpeg-static/ffmpeg',
spawnargs: [
'-i',
'https://cdn.galaxybot.de/sounds/support/close-mika.mp3',
'-analyzeduration',
'0',
'-loglevel',
'0',
'-f',
's16le',
'-ar',
'48000',
'-ac',
'2',
'pipe:1'
]
}
23-10-2023 22:35:54 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -11,
code: 'EAGAIN',
syscall: 'spawn /home/container/node_modules/ffmpeg-static/ffmpeg',
path: '/home/container/node_modules/ffmpeg-static/ffmpeg',
spawnargs: [
'-i',
'https://cdn.galaxybot.de/sounds/support/close-mika.mp3',
'-analyzeduration',
'0',
'-loglevel',
'0',
'-f',
's16le',
'-ar',
'48000',
'-ac',
'2',
'pipe:1'
]
}
I am playing a file with @discord.js/voice and it works 35 Times. At the 36th attempt i get this error every time the bot is trying to start a playback
15 replies