Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

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

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

Sur d’autres sites (10693)

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

  • Using batch, how would you iterate through an array that you don't know how many values it may contain to run a function on each individual variable

    10 mai 2017, par Jay1995

    I have a batch file creating an array of variables it gets from a textfile, as follows :

    for /f "skip=1 tokens=9 delims= " %%a in (%findfile%) do set "_%%a=yes"
    set count = 0
    for /f "tokens=1* delims==#" %%b in ('set _') do (
       set /a count+=1
       set x=%%b
       set location[!count!]=!x:~1!
    )
    set %location%

    I’m trying to get each variable from the array to be looped into a function individually, but have no idea how to do it !!

    The location array storing all the variables has to be called into a for loop and the function I’m trying to get it to loop into is an FFMPEG function :

    for %%i in (%location%\*.mp4) do (if not exist "%%~ni\" MD "%%~ni"

       ffmpeg -i "%%i" -vframes 1 -f image2 -start_number 0
       "%%~ni\%%~ni_Summary_%%3d.jpeg"

    )

    All HELP would be greatly appreciated