Recherche avancée

Médias (91)

Autres articles (111)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8228)

  • How to adjust showwaves position to the bottom of a video in ffmpeg ?

    14 avril 2021, par Dooyum Ityav

    I am trying to adjust the position of waveform in a video using ffmpeg, the position by default is in th center, but i will like to shift it to the bottom. I know i need to use overlay filter, but how to call it is my problem. I tried this but doesn't work.

    


    ffmpeg -i security3.mp3 -filter_complex "[0:a]showwaves=s=1280x202:mode=line[sw]; [sw]overlay=0:H-h,drawtext=fontcolor=white:x=10:y=10:text='\"Song Title\" by Artist'[out]" -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy output.mp4


    


    I am getting this error :

    


    Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_1


    


    Can someone help me here please ?

    


  • How to detect when a mp3 stops playing in ffmpeg

    23 mai 2021, par Jacob Shankman

    back yet again to ask this : I have a ost command for my discord bot. All it does is join the vc that the user is in, and plays a random choice of mp3's that I have as a list. It works fine. Except for when the song is over, it just stays there. Im wondering how to detect when ffmpeg has finished playing the mp3 so
I can execute a function to tell the bot to disconnect once it has finished. Here is the code for the command :

    


    @client.command()
async def speak(message):
    voice_s = await message.author.voice.channel.connect()
    voice_s.play(discord.FFmpegPCMAudio(random.choice(speak_list)))


    


  • voice_client.play doesn't continue loop (Discord)

    19 mars 2023, par Razurio
    songs = asyncio.Queue(maxsize=0)
currently_playing = False


@client.command()
async def play(ctx, url):
    global songs
    global currently_playing
    if currently_playing:
        with yt_dlp.YoutubeDL({"format": "bestaudio", "outtmpl": "Queue_Download/%(title)s.%(ext)s"}) as ydl:
            info = ydl.extract_info(url, download=True)
            filename = ydl.prepare_filename(info)
            await songs.put({"file": filename, "info": video_info(url)})
            # print("test 1")
    else:
        with yt_dlp.YoutubeDL({"format": "bestaudio", "outtmpl": "Queue_Download/%(title)s.%(ext)s"}) as ydl:
            info = ydl.extract_info(url, download=True)
            filename = ydl.prepare_filename(info)
            await songs.put({"file": filename, "info": video_info(url)})
            # print("test 2")
        asyncio.create_task(queue(ctx))



async def queue(ctx):
    global songs
    global currently_playing
    currently_playing = True
    while True:
        if songs.empty():
            currently_playing = False
            await ctx.reply("Queue is now empty")
            await ctx.voice_client.disconnect()  # disconnect from voice channel when queue is empty
            break
        else:    
            song = await songs.get()
            filename = song["file"]
            voice_channel = ctx.author.voice.channel
            if not ctx.voice_client:  # check if bot is not already connected to a voice channel
                await voice_channel.connect()

            await ctx.reply('playing')
            await ctx.voice_client.play(discord.FFmpegPCMAudio(filename))

@client.command()
async def stop(ctx):
    global songs
    await ctx.voice_client.disconnect()
    await empty_queue(songs)
    await ctx.reply('Stopped')

async def empty_queue(songs):
    while not songs.empty():
        songs.get_nowait()


    


    I have problems with the "await ctx.voice_client.play(discord.FFmpegPCMAudio(filename))" which doesn't continue after finishing.

    


    I know you can use a after= parameter in voice_client.play() but I didn't manage to get it to work to recursivly call queue()