How to seek to a point in audio timeline?

How can I jump to a point in audio like many music bots do??
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
pat
pat3y ago
use ffmpeg, example args:
const prism = require('prism-media');
const transcoder = new prism.FFmpeg({ // or any way you can access ffmpeg honestly
args: [
// Required for the Discord standard for audio packets
'-ar', '48000',
'-ac', '2',
'-f', 's16le',
// The audio begin at 25 seconds
'-ss', '00:00:25',
],
});
// pipe input readstream into the transcoder
const prism = require('prism-media');
const transcoder = new prism.FFmpeg({ // or any way you can access ffmpeg honestly
args: [
// Required for the Discord standard for audio packets
'-ar', '48000',
'-ac', '2',
'-f', 's16le',
// The audio begin at 25 seconds
'-ss', '00:00:25',
],
});
// pipe input readstream into the transcoder
Aman
AmanOP3y ago
I tried and it does work, but it goes silent after a while of playing the music from that point Weird.. its behaving like that with that one alone.. other songs are running fine, thanks

Did you find this page helpful?