aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
704 stars 145 forks source link

Error: Output formats h264, s16le are not available #1115

Closed oripetel closed 3 weeks ago

oripetel commented 3 months ago

Which package has the bugs?

The core library

Issue description

well I tried to stream something and got this error, it seems to be an error with the ffmpeg. I installed this version: ERROR: E:\massdm\node_modules\fluent-ffmpeg\lib\capabilities.js:591 return cb(new Error('Output formats ' + unavailable.join(', ') + ' are not available')); ^

Error: Output formats h264, s16le are not available at E:\massdm\node_modules\fluent-ffmpeg\lib\capabilities.js:591:21 at nextTask (E:\massdm\node_modules\async\dist\async.js:5791:13) at next (E:\massdm\node_modules\async\dist\async.js:5799:13) at E:\massdm\node_modules\async\dist\async.js:329:20 at proto.availableFormats.proto.getAvailableFormats (E:\massdm\node_modules\fluent-ffmpeg\lib\capabilities.js:513:14) at E:\massdm\node_modules\fluent-ffmpeg\lib\capabilities.js:568:14 at nextTask (E:\massdm\node_modules\async\dist\async.js:5791:13) at Object.waterfall (E:\massdm\node_modules\async\dist\async.js:5802:9) at Object.awaitable [as waterfall] (E:\massdm\node_modules\async\dist\async.js:212:32) at proto._checkCapabilities (E:\massdm\node_modules\fluent-ffmpeg\lib\capabilities.js:565:11) Emitted 'error' event on Player instance at: at FfmpegCommand. (E:\massdm\node_modules\discord-stream-client\dist\index.js:1475:16) at FfmpegCommand.emit (node:events:517:28) at emitEnd (E:\massdm\node_modules\fluent-ffmpeg\lib\processor.js:424:16) at E:\massdm\node_modules\fluent-ffmpeg\lib\processor.js:433:16 at wrapper (E:\massdm\node_modules\async\dist\async.js:273:20) at next (E:\massdm\node_modules\async\dist\async.js:5797:24) at E:\massdm\node_modules\async\dist\async.js:329:20 at wrapper (E:\massdm\node_modules\async\dist\async.js:273:20) at next (E:\massdm\node_modules\async\dist\async.js:5797:24) at E:\massdm\node_modules\async\dist\async.js:329:20

Node.js v18.18.2

Code sample

const { Client } = require('discord.js-selfbot-v13');
const { DiscordStreamClient } = require('discord-stream-client');

const client = new Client();
const StreamClient = new DiscordStreamClient(client);

client.on('ready', async () => {
  console.log('Ready!', client.user.tag);
  const voiceConnection = await StreamClient.joinVoiceChannel(client.channels.cache.get('1212373703627640862'), {
    selfDeaf: false,
    selfMute: true,
    selfVideo: false,
  });

  const streamConnection = await voiceConnection.createStream();
  const player = StreamClient.createPlayer('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', streamConnection.udp);

  player.on('start', () => console.log('Started playing'));
  player.on('finish', () => console.log('Finished playing'));

  player.play();
  // Stop playing with player.stop(); when needed
});

client.login(''); // Replace with your actual token

Package version

@latest

Node.js version

Node.js v18.18.2

Operating system

Windows 10

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response