Recherche avancée

Médias (91)

Autres articles (66)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (11185)

  • discord.errors.ClientException : C :/ffmpeg/bin/ffmpeg was not found

    31 octobre 2020, par OutStrike

    I'm trying to create a music bot for my discord. All I want right now is for my discord bot to play a music clip. I've found no solutions at all.

    


    @commands.command()
async def play(self, ctx, url):
    channel = ctx.author.voice.channel
    channel = await channel.connect()
    guild = ctx.guild
    voice_client: discord.VoiceClient = discord.utils.get(self.bot.voice_clients, guild=guild)
    audio_source = discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg", source="alex_sus.mp3")
    if not voice_client.is_playing():
        voice_client.play(audio_source, after=None)


    


    This is exactly my code but I get the error :

    


    discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: C:/ffmpeg/bin/ffmpeg was not found.


    


    The file is most definitely in the location I specified and I put ffmpeg into my env path. I've followed every instruction when installing ffmpeg, but nothing I do works. I just want to note that ffmpeg is on my C drive, while the code is on my D drive. Idk if this makes a difference or not.

    


  • Converting multiple audio files in different subdirectories using ffmpeg

    4 avril 2022, par Amartya Roy Choudhury

    I am trying to convert multiple .mp3 files stored in different folders to .wav file using ffmpeg. The .wav files will be stored in the folder where the .mp3 file is located

    


    import os
folder = r'D:\S2ST_DataCollection-main\public\recordings' ##### root folder


count = 0
for dirname, dirs, files in os.walk(folder):
    for filename in files:
        filename_without_extension, extension = os.path.splitext(filename)
        if extension == '.mp3':       ######## get all the mp3 files
            count +=1
            os.system(r"C:\Users\amart\Downloads\Compressed\S2ST_DataCollection-main\public\music.bat") ###### use the mp3 to wav conversion stored as batch file


    


    My music.bat file

    


    for %%a in ("*.mp3") do ffmpeg -i "%%a" -vn -c:a pcm_s16le  -ar 44100 "%%~na.wav"


    


    Note : I have used pydub but it is not working

    


    If i use the batch command only in a folder it is working fine but my .mp3 files are located in multiple folder

    


    Any kind of help would be greatly appreciated

    


  • Unable to download a file using youtube_dl

    22 octobre 2020, par perkymaster

    I am trying to play music from a bot using ffmpeg and youtube_dl by making using of discord.py but it seems that I am unable to download the file

    


    Here is my code :

    


    voice = get(client.voice_clients, guild=ctx.guild)

ydl_opts={
    'format': 'bestaudio/best',
    'noplaylist': 'True',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec':'mp3',
        'preferredquality':'192',
    }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    print("Downloading audio now \n")
    ydl.download([url])

for file in os.listdir("./"):
    if file.endswith(".mp3"):
        name=file
        print(f"Renamed File: {file}\n")
        os.rename(file, "song.mp3")

voice.play(discord.FFmpegPCMAudio('song.mp3'), after=lambda e: print(f"{name} has finished playing"))
voice.is_playing()
voice.source=discord.PCMVolumeTransformer(voice.source)
voice.source.volume= 0.7

nname = name.rsplit("-", 2)
await ctx.send(f"Playing {nname}")
print("Playing \n")


    


    Nothing seems to happen, the bot is not playing any music.

    


    I am new to this, can anyone help ?