Recherche avancée

Médias (91)

Autres articles (40)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (5132)

  • What is the most efficient way to convert wav audio string to an ogg file without writing it to disk ?

    1er janvier 2023, par Saurabh Kumar Karn

    My final objective is to use TTS to get some Indic text converted into audio and pass that audio to a messaging system that accepts mp3 and ogg. Ogg is preferred.

    


    I am on Ubuntu and my flow for getting audio string is something like this.

    


      

    1. Text in Indic language is passed to an API
    2. 


    3. API returns a json with a key value called audioContent. audioString = response.json()['audio'][0]['audioContent']
    4. 


    5. The decoded string is arrived by using this decode_string = base64.b64decode(dat)
    6. 


    


    I am currently converting it to mp3 and as you can see I am writing the wave file first and then converting it into an mp3.

    


    wav_file = open("output.wav", "wb")
decode_string = base64.b64decode(audioString)
wav_file.write(decode_string)

# Convert this to mp3 file
print('mp3file')
song = AudioSegment.from_wav("output.wav")
song.export("temp.mp3", format="mp3")


    


    Is there a way to convert audioString directly to ogg file without doing the io ?

    


    I've tried torchaudio and pyffmpeg to load audioString and do the conversion but it doesn't seem to be working.

    


  • qsv : align surface width/height to 16.

    6 mars 2018, par Ruiling Song
    qsv : align surface width/height to 16.
    

    Per MediaSDK documentation, it requires width/height to 16 alignment.
    Without this patch, hwupload pipeline may fail if 16 alignment is
    not met. Although this patch also apply 16 alignment to qsv encoder/decoder,
    it will not bring any side-effect to them as they are already aligned.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>
    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DBH] libavutil/hwcontext_qsv.c
  • qsv : Skip the packet if decoding failure

    24 janvier 2018, par Ruiling, Song
    qsv : Skip the packet if decoding failure
    

    MediaSDK may fail to decode some frame, just skip it.
    Otherwise, it will keep decoding the failure packet repeatedly
    without processing any packet afterwards.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>
    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DBH] libavcodec/qsvdec_h2645.c