Recherche avancée

Médias (0)

Mot : - Tags -/images

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (94)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (15854)

  • FFmpeg doesn't play any audio through Discord.py BOT

    12 mai 2019, par Lewis H

    Here is my code for my Discord bot’s play function :

    @bot.command()
    async def play(ctx, url:str = None): # DOESN'T WORK, DOWNLOADS BUT DOESN'T PLAY

           ...

           ytdl_options = {
               'format': 'bestaudio/best',
               'postprocessors': [{
                   'key': 'FFmpegExtractAudio',
                   'preferredcodec': 'mp3',
                   'preferredquality': '192',
               }],
           }
           ytdl = youtube_dl.YoutubeDL(ytdl_options)

           loop = asyncio.get_event_loop()
           data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url))


           if 'entries' in data:
               data = data['entries'][0] # taking top item from a YT playlist

           source = ytdl.prepare_filename(data)

           vc.play(discord.FFmpegPCMAudio(source)) #play audio
           print(vc.is_playing())
           await ctx.send("Now playing: " + data.get('title')) #now playing
           asyncio.sleep(3)
           print(vc.is_playing())

    When I call the function, it runs fine and downloads the video from youtube-dl, then sends the message "Now playing : X", but doesn’t play any audio.

    I added the two print(vc.is_playing()) lines and what is returned in the shell is :

    True
    False

    So clearly it tries to play the song but immediately fails.

    There are no exceptions thrown, so I can’t understand why FFmpeg doesn’t want to play the audio.

  • Play a Video from MemoryStream, Using FFMpeg

    7 juin 2014, par Delphi.Boy

    I’m having a hard time, searching how to play a video file from a TMemoryStream (or a similar buffer in memory) using FFMpeg. I’ve seen many things, including UltraStarDX, expensive FFMpeg components for Delphi and so on.

    One component called FFMpeg Vcl Player claims to play video formats from a memory stream. I downloaded the trial version and I guess it uses CircularBuffer.pas for that matter (maybe).

    Does any one know how to do this ?

    Edit :
    Now the better question is how to play an encrypted video file, using FFMpeg or similar libraries.

  • Using WebHDFS to play video over HTTP

    3 février 2015, par Qin.Yang

    I used ffmpeg + libx264 to convert file format as H264, then uploaded the file to Hadoop. I used WebHDFS to access the file by HTTP, but can not online play. If I download this file over HTTP, it can play by HTML5 video. My English is poor, hope you know what I mean.