Recherche avancée

Médias (91)

Autres articles (78)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (5001)

  • How to scroll and zoom an image at the same in ffmpeg ?

    8 décembre 2024, par neeebzz

    I have an image of the height 1200px. I want to create a video from this single image.

    


    My final video will be height 450px.

    


    At 0seconds I want to show a 2xZoomed version of the image. Then it in 2 seconds it should zoom out to it's original width. And then it start scrolling to the bottom and then at the end it starts scrolling back. This should be on loop until the end of the video.

    


    Also I am want the this whole image to be faded to 50% since I will overlay another video on top of it.

    


    I am trying to use the zoompan filter but it seems to be not working. Especially I tried using t variable in it to change zoom based on duration but it doesn't accept.

    


  • Python Discord Music Bot : Playing next song while current song is playing

    8 février, par Deltrac

    I've been working on a Discord bot and got it working 90% of the time. On some occasions, the bot will be playing a song and it will stop playing and just move to the next song. My assumption is that it's because of how I am handling my play command and the play_next command as well.

    


    I've tried to re-arrange the code, change functionality, etc. without success.

    


    Here are the two commands :

    


    @client.command(name="p")
async def play(ctx, *, search_query: str):
        global bot_disconnect
        try:
        # Only start a song if the user trying to play a song is in a voice channel
            if ctx.author.voice:
                voice_channel = ctx.author.voice.channel
                voice_client = await voice_channel.connect() # Find who played the song and have the bot enter that channel
                voice_clients[voice_client.guild.id] = voice_client
            else:
                await ctx.channel.send("Get in a voice channel")
                return
        except Exception as e:
                print(e)
        try:
            if is_youtube_url(search_query):
                loop = asyncio.get_event_loop() # Let's the bot multi-task (Similar behavior to interrupts in C/C++)
                data = await loop.run_in_executor(None, lambda: ytdl.extract_info(search_query, download = False))
                video_url = data["webpage_url"] # Save the youtube video URL to variable
                song_url = data["url"] # Save the extracted URL to a variable
                title = data["title"]
            else:
                url = f"ytsearch:{search_query}"
                loop = asyncio.get_event_loop() # Let's the bot multi-task (Similar behavior to interrupts in C/C++)
                data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download = False)) 
                entry = data['entries'][0]
                video_url = entry["webpage_url"] # Save the youtube video URL to variable
                song_url = entry["url"] # Save the extracted URL to a variable
                title = entry["title"]

            if ctx.guild.id in voice_clients and voice_clients[ctx.guild.id].is_playing():
                await queue(ctx, search_query = video_url, title = title)
            else:
                player = discord.FFmpegOpusAudio(song_url, **ffmpeg_options) # THIS IS WHAT PLAYS THE ACTUAL SONG!!!!!!
                await ctx.channel.send(f"Now Playing: {video_url} \n[DOWNLOAD LINK HERE]({song_url})") # Send the video URL to discord channel and include a download link as well
                bot_disconnect = False
                voice_clients[ctx.guild.id].play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), client.loop))
        except Exception as e:
                print(e)



async def play_next(ctx):
    if len(queues) != 0 and queues.get(ctx.guild.id):         
        search_query = queues[ctx.guild.id].pop(0)[0] # Pull the URL from the next index
        loop = asyncio.get_event_loop() # Let's the bot multi-task (Similar behavior to interrupts in C/C++)
        print(f"{search_query}")
        data = await loop.run_in_executor(None, lambda: ytdl.extract_info(search_query, download = False))
        player = discord.FFmpegOpusAudio(data["url"], **ffmpeg_options)
        voice_client = voice_clients[ctx.guild.id]
        voice_client.play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), client.loop))
        await ctx.channel.send(f"Now Playing: {data['webpage_url']} \n[DOWNLOAD LINK HERE]({data['url']})") # Send the video URL to discord channel and include a download link as well
    else:
        await ctx.send("No songs in queue")


    


    I can also link the full code, if required.

    


  • Downloading individual songs from YouTube playlist [closed]

    23 août 2024, par user26961371
      

    • I've created a custom script using yt-dlp.
    • 


    • The script takes a single argument, which is the actual playlist URL.
    • 


    • I'm using the following command :
    • 


    


    yt-dlp --extract-audio --audio-format mp3 --yes-playlist -o "/Users/$USER/Desktop/%(id)s.%(ext)s" --embed-chapters $1


    


    Try :
I've run the command with a valid playlist URL, but it's downloading each song from the playlist into a single MP3 file for each song. I want to download each song as an individual file, not the entire playlist in a single file 15 times.

    


    Expectation :
I expect yt-dlp to download each song from the playlist as a separate MP3 file, rather than combining all songs into a single MP3 file for each song.

    


    Context :
The issue is likely due to the use of the --yes-playlist option, which tells yt-dlp to treat the input as a playlist URL and download all songs in one go.
I've checked the official documentation for yt-dlp, but I couldn't find a solution.