
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (101)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (7600)
-
Problem settingup a play command for my discord bot (music) ['Error : FFmpeg/avconv not found !']
28 août 2023, par TitanFrexIm new to programing a discord bot, im more to the web developing enviroment, im trying to create by myself a play command song (only with one link) to try if the first join is working and actually play the song.


(Discord.js v14)


Unfortunately i was having a problem with FFMPEG.
This my actual module for the play.js command, where all the problem is happening.


const { joinVoiceChannel, createAudioPlayer, createAudioResource } = require('@discordjs/voice');
const ytdl = require('ytdl-core');

module.exports = {
 devOnly: true,
 name: 'play',
 description: 'Start to play a song!',
 // options: Object[],

 /**
 *
 * @param {Client} client
 * @param {Interaction} interaction
 */
 callback: async (client, interaction) => {
 const voiceChannel = interaction.member.voice.channel;

 if (!voiceChannel) {
 return interaction.reply('You must be in a voice channel to use this command.');
 }

 const connection = joinVoiceChannel({
 channelId: voiceChannel.id,
 guildId: interaction.guild.id,
 adapterCreator: interaction.guild.voiceAdapterCreator,
 });

 const stream = ytdl('URL_HERE', { filter: 'audioonly' });
 const resource = createAudioResource(stream);

 const player = createAudioPlayer();
 connection.subscribe(player);
 player.play(resource);

 interaction.reply({
 content: `Playing Song`,
 // ephemeral: true,
 });
 }
}



The first error i was receving was 'Error : FFmpeg/avconv not found !', i tried to install it with some guides online. after couple of tries i get it right and the command 'ffmpeg -version' returns.


After that i tought it was workikng, but when i started my project, i receved the same error,. I tried to look up for a solution and i tried to get the process.env.PATH to see but i dont understand if its right or not.


After i removed the console.log(process.env.PATH), i get no errors in the terminal, but it will stil not play the song.


-
discord bot music with youtube dl not stuck at webpage downloading
22 septembre 2021, par patricebailey1998So I'm trying to make a music bot which just joins,plays,stops and resume music. However my bot can join and leave a voice channel fine, however when i do my /play command it get stuck on
[youtube] oCveByMXd_0: Downloading webpage
(this is output in vscode) and then does nothing after. I put some print statement (which you can see in the code below and it prints 1 and 2 but NOT 3). Anyone had this issue ?

MUSIC BOT FILE


import discord
from discord.ext import commands
import youtube_dl

class music(commands.Cog):
 def __init__(self, bot):
 self.bot = bot
 
 @commands.command()
 async def join(self, ctx):
 if(ctx.author.voice is None):
 await ctx.reply("*You're not in a voice channel.*")
 voiceChannel = ctx.author.voice.channel
 if(ctx.voice_client is None): # if bot is not in voice channel
 await voiceChannel.connect()
 else: # bot is in voice channel move it to new one
 await ctx.voice_client.move_to(voiceChannel)

 @commands.command()
 async def leave(self, ctx):
 await ctx.voice_client.disconnect()
 
 @commands.command()
 async def play(self,ctx, url:str = None):
 if(url == None):
 await ctx.reply("*Check your arguments!*\n```/play VIDEO_URL```")
 else:
 ctx.voice_client.stop() # stop current song
 
 # FFMPEG handle streaming in discord, and has some standard options we need to include
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 YTDL_OPTIONS = {"format":"bestaudio"}
 vc = ctx.voice_client
 
 # Create stream to play audio and then stream directly into vc
 with youtube_dl.YoutubeDL(YTDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 print("1")
 url2 = info["formats"][0]["url"]
 print("2")
 source = await discord.FFmpegOpusAudio.from_probe(url2,FFMPEG_OPTIONS)
 print("3")
 vc.play(source) # play the audio
 await ctx.send(f"*Playing {info['title']} -* ퟎ
-
transcode with ffmpeg may eat up a lot of memory
19 mars 2018, par JasonZhangWhen I transcode this source file with ffmpeg,ffmpeg may eat up a lot of
memory about dozens of GB till to be killed,Why ?the report here:
ffmpeg started on 2017-12-19 at 10:59:15
Report written to "ffmpeg-20171219-105915.log"
Command line:
ffmpeg -i memory_error_fifo.mp4 -s 854x480 -vcodec libx264 -x264opts
"keyint=50" -b:v 238k -vf "movie=namei.jpg [watermark]; [vf0] fifo
[vf1];[vf1][watermark] overlay=main_w-overlay_w-0:0[vf2]" -acodec
libfdk_aac -ar 44100 -movflags faststart -f mp4 output.mp4 -y -v trace
-report
ffmpeg version N-89095-gb3c1172 Copyright (c) 2000-2017 the FFmpeg
How to reproduce:
ffmpeg -i "memory_error_fifo.mp4" -s 854x480 -vcodec libx264 -x264opts
keyint=50 -b:v 238k -vf "movie=namei.jpg [watermark]; [vf0] fifo
[vf1];[vf1][watermark] overlay=main_w-overlay_w-0:0[vf2]" -acodec
libfdk_aac -ar 44100 -movflags faststart -f mp4 output.mp4 -y -v trace
-reportWhen i use -an to disable audio,the result is ok ;
when i not use "fifo",the result is ok,but my project needed this "fifo" filter.n3.5-dev-1292-gce001bb with master commit
ce001bb8fc6677541c401a614e05e5058d58dde1
built on linux
ffmpeg report:https://pan.baidu.com/s/1qYNvTes
attached source file: https://pan.baidu.com/s/1pLzbwbp