Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (50)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (9662)

  • Evolution #3987 (Fermé) : Ne pas supprimer les crédits à la compression CSS

    29 septembre 2018, par cedric -
  • How to read realtime microphone audio volume in python and ffmpeg or similar

    20 octobre 2016, 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.

  • Revision 100529 : Éviter lorsqu’il n’y a pas de compression JS/CSS activée, que le ...

    16 novembre 2016, par marcimat@… — Log

    Éviter lorsqu’il n’y a pas de compression JS/CSS activée, que le navigateur redemande les fichiers css et js du porte plume qui sont compilés par SPIP.
    On ajoute cache-client sur le cache de ces fichiers. C’est presque suffisant, mais il faut aussi les recalculer lorsqu’un plugin qui modifie les fichiers
    de porte-plume s’active ou se désactive. Du coup, on calcule un hash et un fond statique pour ces 2 fichiers, qui dépend du code variable de ces fichiers.
    Bon du coup on peut éviter quelques hits sur le serveur, mais la contrepartie, c’est qu’il faut calculer ces hash, parfois inutilement j’imagine, au calcul d’une page.
    À voir.