Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
oripetel opened this issue Mar 31, 2024 · 0 comments
Open
3 tasks done

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

oripetel opened this issue Mar 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oripetel
Copy link

oripetel commented Mar 31, 2024

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

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@oripetel oripetel added the bug Something isn't working label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant