Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (35)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • discord.py and ffmpeg : Play a sound effect while playing music

    26 juin 2022, par JPhusion

    I would like to play a sound effect while playing music in a vc using discord.py and ffmpeg. I know you cannot play more than one audio source at a time, so instead I am trying to pause the music, play the sound effect and continue the music.

    


    This is what I've come up with so far, but because I am playing the sound effect, the resume() method no longer works after the pause().

    


    @commands.command()
    async def sfx(self, ctx):
        try:
            voice = await ctx.author.voice.channel.connect()
        except:
            voice = ctx.guild.voice_client
        try:
            voice.pause()
            # voice.play(discord.FFmpegPCMAudio('./media/sfx/notification.mp3'))
        except:
            voice.pause()
            # voice.play(discord.FFmpegPCMAudio(executable=r"C:\Users\josh\Programming\Discord\ffmpeg\bin\ffmpeg.exe", source='./media/sfx/notification.mp3'))
        guild = self.client.get_guild(752756902525403156)
        member = guild.get_member(876292773639233596)
        print(member.activities[0].name)
        await asyncio.sleep(1)
        voice.resume()
        if member.activities[0].name == "Not playing music":
            await voice.disconnect()


    


  • FFMPEG record sound stop always at the same size

    12 mai 2022, par gildas

    I try to record live sounds catch by a device (raspberry Pi with microphones) in my computer (linux).
I use this command on the device :

    


    arecord -D dmic_sv -c2 -r 48000 -f S32_LE -t wav | \
ffmpeg -re -f wav -i pipe: \
       -f s16le -acodec pcm_s16le -ac 1 -ar 48000 -af "volume=16dB" 
       tcp://ipPC:55000


    


    I use this command on my PC :

    


    FFREPORT=file=ffreport.log:level=32 \
ffmpeg -f s16le -acodec pcm_s16le -ac 1 -ar 48000 \
       -i tcp://ipPC:55000?listen -f wav fichiercible.wav


    


    It is working but the record always stops when fichiercible.wav reach 536.9Mo.

    


    I tried to put this option -fs 2000000000 on the command on my PC :

    


    FFREPORT=file=ffreport.log:level=32 \
  ffmpeg -f s16le -acodec pcm_s16le -ac 1 -ar 48000 \
         -i tcp://ipPC:55000?listen \
         -f wav -fs 2000000000 fichiercible.wav


    


    But the result was the same, the record stop when the file is 536.9Mo

    


    Is it possible to record bigger size file with ffmpeg ?

    


  • Java Playing Sound From YouTube

    8 mai 2022, par etkmlm

    I'm in a LWJGL game and want to play sound from YouTube. I have the stream link but can't play it anymore.

    


    public void playMusic(Music m) throws IOException {
    String uri = m.getUrl();
    URL url = new URL(uri);
    try{
        Process p = new ProcessBuilder().command("ffmpeg.exe", "-i", uri, "-acodec", "pcm_u8", "-ar", "22050", "-f", "wav", "pipe:1").redirectError(ProcessBuilder.Redirect.INHERIT).start();

        AudioInputStream str = AudioSystem.getAudioInputStream(p.getInputStream());
        Clip clip = AudioSystem.getClip();
        clip.open(str);
        clip.start();

    }
    catch (Exception e){
        e.printStackTrace();
    }

}


    


    It throws "Chunk size too big" error. I started ffmpeg alone but in this time, ffmpeg throws "invalid argumentsize=" error.