Recherche avancée

Médias (91)

Autres articles (52)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (7207)

  • Python convert binary data (str) to match multiple of float32 size

    15 avril 2016, par Kendall Weihe

    I’m working on a tensorflow project, and I’m working with raw data from a mp3 file. I’m using FFMPEG and capturing STDOUT. FFMPEG outputs binary data in type str but it doesn’t capture the data in a multiple of the size of a float32 ...or apparently that’s what I am assuming from the error I get from the following code...

    import subprocess as sp
    command = ["ffmpeg",
           '-i', image_file,
           '-f', 's16le',
           '-acodec', 'pcm_s16le',
           '-ar', '44100', # ouput will have 44100 Hz
           '-ac', '2', # stereo (set to '1' for mono)
           '-']
    pipe = sp.Popen(command, stdout=sp.PIPE, stderr=sp.STDOUT, stdin=sp.PIPE)
    raw_audio, _  = pipe.communicate(str(88200*4).encode())
    audio_array = np.fromstring(raw_audio, dtype="float32") //ERROR

    dataset = np.append(dataset,audio_array)

    Error

    File "main.py", line 68, in maybe_pickle
     audio_array = np.fromstring(raw_audio, dtype="float32")
    ValueError: string size must be a multiple of element size

    raw_audio is in the form :

    ...7k\x01t\xf9\xc3\x01\xe3\xfa\x11\x02\xfb\xfb~\xff\x90\xfb\xbb\xfc\x83\xfa\xb4\xfd\xde\xfb\xab\xff\x01\xff\xd4\xfe:\x00T\xfd\xe0\xff\xae\xfdV\x01\xd8\xfd\x1a\x04\x0f\xfcR\x05,\xfaG\x05\xb1\xfaD\x05\xa1\xfdP\x04e\x00\xbc\x01\xe6\x00\xdf\xfe`\x00\x16\xfd\xae\x00\xec\xfc\xb7\x00\x7f\...

    Is there a way I can truncate the data ? Or maybe capture the string in an entirely different way ?

  • Revision 5ddcbeeb7d : Adjust style to match Google Coding Style a little more closely. Most of these

    31 octobre 2012, par Ronald S. Bultje

    Changed Paths : Modify /vp8/common/onyxd.h Modify /vp8/decoder/dboolhuff.c Modify /vp8/decoder/dboolhuff.h Modify /vp8/decoder/decodframe.c Modify /vp8/decoder/dequantize.c Modify /vp8/decoder/detokenize.c Modify /vp8/decoder/idct_blk.c Modify /vp8/decoder/onyxd_if.c (...)

  • build : Add uninstall-pkgconfig target to match install-lib*-pkgconfig

    6 novembre 2017, par Diego Biurrun
    build : Add uninstall-pkgconfig target to match install-lib*-pkgconfig
    
    • [DBH] Makefile
    • [DBH] avbuild/library.mak