
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (106)
-
Publier sur MédiaSpip
13 juin 2013Puis-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, parMediaSPIP 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 (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (11512)
-
Python convert binary data (str) to match multiple of float32 size
15 avril 2016, par Kendall WeiheI’m working on a tensorflow project, and I’m working with raw data from a mp3 file. I’m using
FFMPEG
and capturingSTDOUT
.FFMPEG
outputs binary data in typestr
but it doesn’t capture the data in a multiple of the size of afloat32
...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 sizeraw_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. BultjeChanged 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