Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (71)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (13752)

  • swscale : fix gbrap16 alpha channel issues

    3 août 2017, par James Cowgill
    swscale : fix gbrap16 alpha channel issues
    

    Fixes filter-pixfmts-scale test failing on big-endian systems due to
    alpSrc not being cast to (const int32_t**).

    Also fixes distortions in the output alpha channel values by copying the
    alpha channel code from the rgba64 case found elsewhere in output.c.

    Fixes ticket 6555.

    Signed-off-by : James Cowgill <James.Cowgill@imgtec.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libswscale/output.c
    • [DH] tests/ref/fate/filter-pixfmts-scale
  • Python : How to decode a mp3 chunk into PCM samples ?

    30 mars 2021, par Bendzko

    I'm trying to catch chunks of an mp3 webstream and decoding them into PCM samples for signal processing. I tried to catch the audio via requests and io.BytesIO to save the data as .wav file.

    &#xA;&#xA;

    I have to convert the mp3 data to wav data, but I don't know how. (My goal is not to record a .wav file, i am just doing this to test the algorithm.)

    &#xA;&#xA;

    I found the pymedia lib, but it is very old (last commit in 2006), using python 2.7 and for me not installable.

    &#xA;&#xA;

    Maybe it is possible with ffmpeg-python, but I have just seen examples using files as input and output.

    &#xA;&#xA;

    Here's my code :

    &#xA;&#xA;

    import requests&#xA;import io&#xA;import soundfile as sf&#xA;import struct&#xA;import wave&#xA;import numpy as np&#xA;&#xA;&#xA;def main():&#xA;    stream_url = r&#x27;http://dg-wdr-http-dus-dtag-cdn.cast.addradio.de/wdr/1live/diggi/mp3/128/stream.mp3&#x27;&#xA;    r = requests.get(stream_url, stream=True)&#xA;    sample_array = []&#xA;    try:&#xA;        for block in r.iter_content(1024):&#xA;            data, samplerate = sf.read(io.BytesIO(block), format="RAW", channels=2, samplerate=44100, subtype=&#x27;FLOAT&#x27;,&#xA;                                       dtype=&#x27;float32&#x27;)&#xA;            sample_array = np.append(sample_array, data)&#xA;&#xA;    except KeyboardInterrupt:&#xA;        print("...saving")&#xA;        obj = wave.open(&#x27;sounds/stream1.wav&#x27;, &#x27;w&#x27;)&#xA;        obj.setnchannels(1)  # mono&#xA;        obj.setsampwidth(2)  # bytes&#xA;        obj.setframerate(44100)&#xA;&#xA;        data_max = np.nanmax(abs(sample_array))&#xA;&#xA;        # fill WAV with samples from sample_array&#xA;        for sample in sample_array:&#xA;            if (np.isnan(sample) or np.isnan(32760 * sample / data_max)) is True:&#xA;                continue&#xA;            try:&#xA;                value = int(32760 * sample / data_max)  # normalization INT16&#xA;            except ValueError:&#xA;                value = 1&#xA;            finally:&#xA;                data = struct.pack(&#x27;code>

    &#xA;&#xA;

    Do you have an idea how to handle this problem ?

    &#xA;

  • avutil/libm : correct isnan, isinf compat hacks

    15 novembre 2015, par Ganesh Ajjanagadde
    avutil/libm : correct isnan, isinf compat hacks
    

    isnan and isinf are actually macros as per the standard. In particular,
    the existing implementation has incorrect signature. Furthermore, this
    results in undefined behavior for e.g double values outside float range
    as per the standard.

    This patch corrects the undefined behavior for all usage within FFmpeg.

    Note that long double is not handled as it is not used in FFmpeg.
    Furthermore, even if at some point long double gets used, it is likely
    not needed to modify the macro in practice for usage in FFmpeg. See
    below for analysis.

    Getting long double to work strictly per the spec is significantly harder
    since a long double may be an IEEE 128 bit quad (very rare), 80 bit
    extended precision value (on GCC/Clang), or simply double (on recent Microsoft).
    On the other hand, any potential future usage of long double is likely
    for precision (when a platform offers extra precision) and not for range, since
    the range anyway varies and is not as portable as IEEE 754 single/double
    precision. In such cases, the implicit cast to a double is well defined
    and isinf and isnan should work as intended.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>

    • [DH] libavutil/libm.h