Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (48)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (9790)

  • How to insert commands for randomization and action after a given time

    26 avril 2021, par Señor Egg

    Right now in my code, I have it written out to play audio files after a !join command. I would like to change it to a command like after every 40 minutes, and I would like to be able to choose a random file to play out of a list. Help on how to ajust my code would be great !

    


    My code :

    


    from discord.ext import commands
from discord import FFmpegPCMAudio
 
client = commands.Bot(command_prefix = '!')
@client.command(pass_context=True)
async def join(ctx):
    if (ctx.author.voice):
        channel = ctx.message.author.voice.channel
        voice = await channel.connect()
        source = FFmpegPCMAudio('AUDIO FILE')
        player = voice.play(source)
    else:
        await ctx.send("User not in a voice channel, unable to connect.")
 
@client.command(pass_context=True)
async def leave(ctx):
    if (ctx.voice_client):
        await ctx.guild.voice_client.disconnect()
        await ctx.send("I have left the voice channel.")
    else:
         await ctx.send("I am not in a voice channel.")
 
 
 
client.run('BOT TOKEN')```


    


  • Discord.py ffprobe/avprobe and ffmpeg/avconv not found error

    20 juillet 2021, par Exd Craft

    Im hosting this discord bot using android device and the bot is used to play music using youtube_dl module, and when i launch the play music command, i got and error where ffprobe/avprobe and ffmpeg/avconv not found. I know how to solve this problem in pc but im still dont know how to fix this on android. For the test here, im using a music from soundcloud since its more faster to download the music.

    


    Here's the error message on the terminal

    


    Logged in as Test Bot#6599\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] None: Downloading webpage\
[soundcloud] None: Downloading webpage\
[soundcloud] user-785177525/yoasobi-yoru-ni-kakeru-x-l-a-b-remix: Downloading info JSON\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[soundcloud] 895894084: Downloading JSON metadata\
[download] Destination: YOASOBI - Yoru ni Kakeru [x l a b. Remix]-895894084.mp3\
[download] 100% of 3.60MiB in 00:03\
ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.


    


    Here's the sample code for the play music command

    


    

    

         @client.command()
     async def playsc(ctx, url : str, *, message):
         song_there = os.path.isfile("song.mp3")
         try:
             if song_there:
                 os.remove("song.mp3")
         except PermissionError:
             em8 = discord.Embed(title = "Music Is Currently Playing", description = 'Please wait for the current playing music to end or use %leave <:_Paimon6:827074349450133524>.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
             await ctx.send(embed = em8)
             return

         voiceChannel = discord.utils.get(ctx.guild.voice_channels, name=message)
         await voiceChannel.connect()
         voice = discord.utils.get(client.voice_clients, guild=ctx.guild)
         em6 = discord.Embed(title = "Downloading Soundcloud Music", description = f'{url}\n\nPlease wait for paimon to setup the music you provide.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
         await ctx.send(embed = em6, delete_after = 2)
         await ctx.message.delete()

         ydl_opts = {
             'format': 'bestaudio/best',
             'postprocessors': [{
                 'key': 'FFmpegExtractAudio',
                 'preferredcodec': 'mp3',
                 'preferredquality': '192',
             }],
         }
         with youtube_dl.YoutubeDL(ydl_opts) as ydl:
             ydl.download([url])
         for file in os.listdir("./"):
             if file.endswith(".mp3"):
                 os.rename(file, "song.mp3")
         voice.play(discord.FFmpegPCMAudio("song.mp3"))
        
         em1 = discord.Embed(title = "Now Listening Soundcloud Music", description = f'{url}\n\nPlease use %leave first to change music.\nMusic provided by {ctx.author.mention} <:_Paimon6:827074349450133524>',color = ctx.author.color)
         await ctx.send(embed = em1)

    


    


    



  • Unknown Decoder in ffmpeg

    17 mars 2020, par user6782547

    I have a script, that is called from Plex after the recording of a movie. This script just crops the black borders of the movie.

    When I call it directly from the command line, it works flawlessly. But when Plex calls it, it says : "Unknown decoder", even if I call it with the key word "auto" for the decoder.

    There’s another problem, that might give a hint to solve my problem. It also says : "WARNING: library configuration mismatch". (Only when being called from Plex.) This is probably, because I compile ffmpeg from the Debian source package (so that I can add the whole CUDA functionality).
    I had a look at the dynamic linker path, but it is empty on the command line.

    What is so different, when this command is called from Plex, than when I call it manually from the command line ?

    Thanks for any help