Recherche avancée

Médias (91)

Autres articles (96)

  • 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

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (8635)

  • Code returns AttributeError : 'VoiceChannel' object has no attribute 'play' when running on Discloud

    18 septembre 2023, par Sc4rl3ttfir3

    So, my code works fine when I run it locally, but even after adapting it to run on Discloud, it returns an error I can't solve.

    


    Code :

    


    @bot.command(name='play', help='To play song')
async def play(ctx, url):
    voice_channel = ctx.author.voice.channel

    if voice_channel is None:
        return await ctx.send('You are not connected to a voice channel.')

    async with ctx.typing():
        filename = await YTDLSource.from_url(url, loop=bot.loop)
        
        if ctx.voice_client is not None:
            ctx.voice_client.stop()

        source = discord.FFmpegPCMAudio(
            executable="ffmpeg",
            source=filename
        )
        
        voice_channel.play(source)

    await ctx.send('**Now playing:** {}'.format(filename))


    


    When it runs on the Discloud server, it returns the following error/traceback message :

    


    Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user_686208406444572830/Sc4rl3ttb0t.py", line 357, in play 
voice_channel.play(source)
^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceChannel' object has no attribute 'play'


    


    Anybody with any idea of what is going wrong would be greatly appreciated for helping out

    


  • Making youtube-dl download mp3's faster

    12 novembre 2017, par sciencelord

    It takes a long time to download mp3 songs using youtube-dl, and it takes even longer when downloading a bunch of mp3 songs. Is there a way to make it significantly faster ? I don’t mind reducing quality. I’ve been using the command below.

    youtube-dl --extract-audio --audio-format "mp3" --output "%(title)s.%(ext)s" "https://www.youtube.com/watch?v={videoid}

    I also took a look at this post :
    ffmpeg command for faster encoding at a decent bitrate with smaller file size

    But I wasn’t sure how to change the above command using the ffmpeg modifications.

    Thanks !

  • avformat/hls : Fix Youtube AAC

    6 avril, par Michael Niedermayer
    avformat/hls : Fix Youtube AAC
    

    Fixes : Ticket11435
    Fixes : yt-dlp -f 234+270 https://www.youtube.com/live/l8PMl7tUDIE

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/hls.c