Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (111)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

Sur d’autres sites (18173)

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

  • 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 ?