Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (106)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (13765)

  • Simple discord.py mp3 bot not playing music

    18 avril 2023, par Lukas Nesvarbu

    Discord bot dosent play anykind of music, neither mine nor other bots codes work he just dosent play music. idk maybe i am just stupid BUT IT DOSENT WORK WHY

    


    import discord
import time
import os
from discord.ext import commands

BOT_TOKEN = "" # put token here

intentss = discord.Intents.default()
intentss.message_content = True
intentss.voice_states = True

bot = commands.Bot(command_prefix=";;", intents = intentss)

OPUS_LIBS = ['libopus-0.x86.dll', 'libopus-0.x64.dll', 'libopus-0.dll', 'libopus.so.0', 'libopus.0.dylib']

@bot.command()
async def join(ctx):
    channelVC = ctx.author.voice.channel
    await channelVC.connect()

@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()

@bot.command()
async def play(ctx):
    voice = ctx.guild.voice_client
    mloc = 'C:/Users/Lukas/Desktop/Bot Bethoven/Youtube/test.mp3'
    voice.play(discord.FFmpegPCMAudio(executable = "C:/ffmpeg/bin/ffmpeg.exe", source = mloc))


bot.run(BOT_TOKEN)


    


    it just give error codes :

    


    discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: Not connected to voice.
INFO     discord.player ffmpeg process 22896 has not terminated. Waiting to terminate...
INFO     discord.player ffmpeg process 22896 should have terminated with a return code of 1.


    


    intresting thing when i put join and play in the same command it dosent show not connected to voice error, actually it dosent show anything and neither plays mp3 file

    


    i tryed reinstalling : PyNaCl, FFmpeg, Visual Code, updating python.
nothing helps. this problem started after i did 1 month break from coding bot, before that it worked fine.

    


    i'm thinking problem is something with my pc, maybe path or something dosent work(because it worked month ago and i didnt do anything to code), i tryed checking but everything seems normal,

    


  • Using ffmpeg create an android playable music slide show

    22 avril 2014, par user2637966

    I am now creating a music slide mp4 video and going to play it in android device with ffmpeg.

    I used the following command to accomplish this mission.

    The first one is to inputting a batch of jpg files and convert it to a mp4 file.

    1.)C:/xampp/htdocs/bin/ffmpeg -y -r 1/5 -i C:/xampp/htdocs/bin/%03d.jpg -c:v libx264 -profile:v baseline -level 3.0 -r 30 -pix_fmt yuv420p C:/xampp/htdocs/bin/out.mp4

    The second one is to putting the audio to the previous created video.

    2.)C:/xampp/htdocs/bin/ffmpeg -i C:/xampp/htdocs/bin/out.mp4 -i C:/xampp/htdocs/upload/1.mp3 -y -map 0 -map 1 -codec copy -shortest C:/xampp/htdocs/bin/haha.mp4"

    Both of the command are correct and created the mp4 file. However only out.mp4 can be played in android deivce while haha.mp4 cannot.

    So it seems the audio track violate the android mp4 requirement. What should the second command be so that i can play the mp4 file in android device.

  • Music discord js bot issue

    12 mars 2019, par Eric Sim

    Does anyone know how I would go about resolving this error ?

    My Discord.JS music bot would just simply crashes when trying to play some old songs. The Discord.JS bot is currently being hosted on herokuapp.

    19-03-12T15:08:08.576483+00:00 app[worker.1]: /app/node_modules/ytdl-core-discord/node_modules/prism-media/src/core/FFmpeg.js:41
    2019-03-12T15:08:08.576496+00:00 app[worker.1]:     this._readableState = this._reader._readableState;
    2019-03-12T15:08:08.576499+00:00 app[worker.1]:                                        ^
    2019-03-12T15:08:08.576501+00:00 app[worker.1]:
    2019-03-12T15:08:08.576502+00:00 app[worker.1]: TypeError: Cannot read property '_readableState' of undefined
    2019-03-12T15:08:08.576504+00:00 app[worker.1]:     at new FFmpeg (/app/node_modules/ytdl-core-discord/node_modules/prism-media/src/core/FFmpeg.js:41:40)
    2019-03-12T15:08:08.576506+00:00 app[worker.1]:     at ytdl.getInfo (/app/node_modules/ytdl-core-discord/index.js:23:24)
    2019-03-12T15:08:08.576508+00:00 app[worker.1]:     at fn (/app/node_modules/ytdl-core/lib/info.js:365:9)
    2019-03-12T15:08:08.576510+00:00 app[worker.1]:     at util.parallel (/app/node_modules/ytdl-core/lib/info.js:232:11)
    2019-03-12T15:08:08.576511+00:00 app[worker.1]:     at checkDone (/app/node_modules/ytdl-core/lib/util.js:405:7)
    2019-03-12T15:08:08.576513+00:00 app[worker.1]:     at SAXParser.parser.onend (/app/node_modules/ytdl-core/lib/info.js:288:26)
    2019-03-12T15:08:08.576515+00:00 app[worker.1]:     at emit (/app/node_modules/sax/lib/sax.js:624:35)
    2019-03-12T15:08:08.576517+00:00 app[worker.1]:     at end (/app/node_modules/sax/lib/sax.js:667:5)
    2019-03-12T15:08:08.576519+00:00 app[worker.1]:     at SAXParser.write (/app/node_modules/sax/lib/sax.js:975:14)
    2019-03-12T15:08:08.576520+00:00 app[worker.1]:     at SAXParser.close (/app/node_modules/sax/lib/sax.js:157:38)