Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (111)

  • 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 (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (6925)

  • My heroku music bot works fine if i launch it through my pc yet when i run it through heroku it doesn't work

    6 mars 2020, par Flii TV

    I have ffmpeg, youtube-dl installed, i have every requirement installed, it downloads the song renames it but then nothing happens !

    @client.command()
    async def play(ctx, *url: str):
       song_there = os.path.isfile("song.mp3")
       try:
           if song_there:
               os.remove("song.mp3")
               print("Removed old song file")
       except PermissionError:
           print("Trying to delete song file, but it's being played")
           await ctx.send("ERROR: Music playing")
           return

       await ctx.send("Getting everything ready now")

       voice =  get(client.voice_clients,  guild=ctx.guild)

       ydl_opts = {
           'format': 'bestaudio/best',
           'quiet': True,
           'outtmpl':"./song.mp3",
           'postprocessors': [{
               'key': 'FFmpegExtractAudio',
               'preferredcodec': 'mp3',
               'preferredquality': '192',
           }],
       }

       song_search = " ".join(url)

       with youtube_dl.YoutubeDL(ydl_opts) as ydl:
           print("Downloading audio now\n")
           ydl.download([f"ytsearch1:{song_search}"])

       for file in os.listdir("./"):
           if file.endswith(".mp3"):
               name = file
               print(f"Renamed File: {file}\n")
               os.rename(file, "song.mp3")

       voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print(f"{name} has finished playing"))
       voice.source = discord.PCMVolumeTransformer(voice.source)
       voice.source.volume = 0.10

       nname = name.rsplit("-", 2)
       await ctx.send(f"Currently playing: {nname}")
       print("playing\n")
  • Révision 17955 : Nous ne supportons plus officiellement Netscape Navigator, on peut donc evacuer ...

    29 mai 2011, par cedric -

    "While textarea is most useful within a form, XHTML 1.0 allows textarea in any block-level or inline element other than button. However, Netscape Navigator will not display any textarea elements outside of a form."

  • Why does this ffmpeg,exe window keep opening when I run my command ?

    5 avril 2020, par John

    I'm making a discord bot and for this aspect of the bot, I wanted it to play music in the voice channel. Here is my code for it :

    



    @client.command(pass_context=True)
async def play(ctx, url: str):

    song_there = os.path.isfile("song.mp3")
    try:
        if song_there:
            os.remove("song.mp3")
            print("Removed old song file")
    except PermissionError:

        await ctx.send("`There's already a song playing, request your song after!`")
        return

    await ctx.send("`Getting your song ready...`")

    voice = get(client.voice_clients, guild=ctx.guild)

    ydl_opts = {
        'format': 'bestaudio/best',
        'postprocessors': [{
            'key': 'FFmpegExtractAudio',
            'preferredcodec': 'mp3',
            'preferredquality': '192',
        }],
    }

    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        try:
            print("Downloading audio now\n")
            ydl.download([url])
        except:
            await ctx.send("`Error, that was not a valid url.`")
            return

    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            name = file
            os.rename(file, "song.mp3")

    voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
    await ctx.send("`Everything went well. Enjoy!`")
    voice.source = discord.PCMVolumeTransformer(voice.source)
    voice.source.volume = 0.07

    nname = name.rsplit("-", 2)
    await ctx.send(f"`Playing: {nname[0]}`")
    print("playing\n")


    



    I got most of it from online sources to be honest. However, whenever someone plays a song, this pops up throughout the song download process. It can be seen here : https://imgur.com/a/iRr0qwj

    



    I don't mind them coming up, but when they do, they override all of my other tabs and pop up so they're the main screen. I'd like for them to pop up in the background, if I can't remove them fully. Can anyone help ? This would be pretty unpractical for me for when multiple use the function, and I can't use my computer anymore (as of now the bot is ran on my computer) without constantly minimizing that screen.

    



    I'm using windows 10, Python 3.7