Recherche avancée

Médias (91)

Autres articles (25)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (6087)

  • Can speex be packed into mpegts stream ?

    24 juillet 2013, par user2384001

    I want to use speex in a real-time application. I want to playback this mpegts stream by ffmpeg. Are there any means to pack speex into mpegts stream ?

  • How to read realtime microphone audio volume in python and ffmpeg or similar

    1er septembre 2023, par Ryan Martin

    I'm trying to read, in near-realtime, the volume coming from the audio of a USB microphone in Python.

    


    I have the pieces, but can't figure out how to put it together.

    


    If I already have a .wav file, I can pretty simply read it using wavefile :

    


    from wavefile import WaveReader

with WaveReader("/Users/rmartin/audio.wav") as r:
    for data in r.read_iter(size=512):
        left_channel = data[0]
        volume = np.linalg.norm(left_channel)
        print(volume)


    


    This works great, but I want to process the audio from the microphone in real-time, not from a file.

    


    So my thought was to use something like ffmpeg to PIPE the real-time output into WaveReader, but my Byte knowledge is somewhat lacking.

    


    import subprocess
import numpy as np

command = ["/usr/local/bin/ffmpeg",
            '-f', 'avfoundation',
            '-i', ':2',
            '-t', '5',
            '-ar', '11025',
            '-ac', '1',
            '-acodec','aac', '-']

pipe = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=10**8)
stdout_data = pipe.stdout.read()
audio_array = np.fromstring(stdout_data, dtype="int16")

print audio_array


    


    That looks pretty, but it doesn't do much. It fails with a [NULL @ 0x7ff640016600] Unable to find a suitable output format for 'pipe:' error.

    


    I assume this is a fairly simple thing to do given that I only need to check the audio for volume levels.

    


    Anyone know how to accomplish this simply ? FFMPEG isn't a requirement, but it does need to work on OSX & Linux.

    


  • Libavcodec / libavformat mpeg2ts decode/encode

    7 août 2012, par Jose

    I need to read a stream in mpeg2ts format (only audio) and decode it in real time to wav. I know i need to use demuxing in libavformat but i cannot find any relevant example. any tip ?

    i also need to do the reverse proccess, take a wav audio an encode to mpeg2ts