Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (49)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5820)

  • Some download errors in my discrod musicbot

    24 avril 2021, par takugrano

    I am making my music bot for discord
but i am having some problem with uploading videos

    


     @client.command()
async def play(ctx, url : str):
    song_there=os.path.isfile("song.mp3")
    try:
        if song_there:
            os.remove("song.mp3")
    except PermissionError:
        await   ctx.send("music is playing right now, use !stop command")
        return
    voiceChannel=discord.utils.get(ctx.guild.voice_channels,name='General')
    await voiceChannel.connect()
    voice=discord.utils.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:
        ydl.download([url])
    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            os.rename(file,"song.mp3")
    voice.play(discord.FFmpegPCMAudio("song.mp3"))


    


    in my programm I have more code but it is not that important.
After compile i have this :

    


    [youtube] 5RGaoLpBASw: Downloading webpage
[download] Destination: F1 Tokyo Drift-5RGaoLpBASw.m4a
[download] 100% of 1.11MiB in 00:00                  
[ffmpeg] Correcting container in "F1 Tokyo Drift-5RGaoLpBASw.m4a"
    ERROR: 
    Ignoring exception in command play:


    


    and this :

    


    raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError


    


    and this :

    


    raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: 


    


    and finally this :

    


    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: DownloadError: ERROR: 


    


    but on my discord server nothing but connecting the bot to the channel happens
however, a file with the .m4a extension appears in the programm directory, which I need to play.

    


    how can i fix these errors ?

    


  • Shades of black

    14 février 2011, par Mans — Random ramblings

    Some time ago now, I was looking for a new laptop. Having compared the technical specifications of a number of models, I turned my attention to the most important aspect : the colour. Everybody knows black is the best colour, but which particular shade of black ? There are, apparently, quite a … Continue reading

  • Nomenclature #3934 (Nouveau) : ’recalcul’ devrait s’appeler ’recompile’

    22 avril 2017, par jluc -

    Le terme "recalcul" indique implicitement qu’il s’agit de la même chose qu’un "calcul", fait une nouvelle fois, mais ce n’est pas du tout le cas, puisque le "calcul" est la simple évaluation d’un squelette compilé, tandis que le "recalcul" demande la compilation elle-même du squelette, suivie de son "calcul".

    Le terme de "recalcul" est donc trompeur. On a pris l’habitude, mais ce mauvais nommage masque la réalité des phénomènes (comme la novlangue de ’1984’) et en retarde la découverte, au lieu de faciliter son accès.

    Partout où ce terme est employé, et surtout dans les boutons et pour le var_mode, il serait préférable d’employer le terme de "recompile" au lieu de "recalcul".