Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (67)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (9446)

  • How to install ffmpeg to Heroku ?

    11 mars 2020, par Gamer Fardin

    I am trying to build a discord bot using discord.py rewrite version, now the problem is I recently updated it to run audio from link and it works fine when I manually run the codes but once I have uploaded it to heroku it doesnt work because(I assume) ffmpeg is not in the right folder and I get the error : ffprobe/avprobe and ffmpeg/avconv not found. please install one. So does anyone how to properly install it to heroku ? Because the usual pip command isnt working...

    ’’’

       @client.command(aliases=["PlayMusic","playmusic","Playmusic","playMusic","PLAYMUSIC","playaudio"])
       async def play(ctx, url):
           song_there = os.path.isfile("song.mp3")
           try:
               if song_there:
                   os.remove("song.mp3")
           except PermissionError:
               await ctx.send("Wait for the current playing music end or use the 'stop' command")
               return

           voice = get(client.voice_clients, guild=ctx.guild)
           print(voice)
           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"))
           voice.volume = 100
           voice.is_playing()

    ’’’

  • "MPEG audio header not found" error when opening with TagLib after converting with ffmpeg

    6 juillet 2015, par Avrohom Yisroel

    I converted a wma file simply by doing something like this...

    ffmpeg -i song.wma -f mp3 song.mp3

    I can then play the mp3 file in Windows Media player, so it looks like the conversion worked.

    However, if I try to open the file in TagLib, I get an error "MPEG audio header not found" on the following line...

    TagLib.File tf = TagLib.File.Create("song.mp3");

    I’ve tried this on a few wma files, so it’s not just that one that’s at fault.

    Anyone have any idea what I did wrong ? I find the docs for ffmpeg pretty overwhelming, and as a complete ignoramus in the field of audio encoding, I haven’t a clue what most of it means. Could be I’m missing something in the conversion, although that wouldn’t explain why WMP can play it but TagLib can’t open it.

  • FFmpeg chokes on filenames inside of quotes w/ whitespaces [duplicate]

    18 février 2016, par user3578907

    This question already has an answer here :

    I’m trying to convert all of my FLACs in to MP3s. Each artist has a folder, and each album has a subfolder. I used the find command to compile a clean list of all of the FLACs in to a file called songlist, and tried dumping it in to FFmpeg with

    (for SONG in `cat songlist` ; do ffmpeg -i "$SONG" -f mp3 -ab 256000 "`basename "$SONG" .flac`.mp3" || break; done)

    Any time ffmpeg reaches a file with a space or special character it interprets it directly. I don’t understand why, as I thought the quotes around $SONG would sanitize it enough. Any thoughts on how to accomplish this task more efficiently or how to fix my code are welcomed.

    songlist is just filled with full paths to the files. No quotes around the paths.