Recherche avancée

Médias (91)

Autres articles (60)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (6882)

  • avcodec/adpcm : Fix overflow in FFABS() IMA_EA_EACS

    7 décembre 2019, par Michael Niedermayer
    avcodec/adpcm : Fix overflow in FFABS() IMA_EA_EACS
    

    Fixes : negation of -2147483648 cannot be represented in type 'int' ; cast to an unsigned type to negate this value to itself
    Fixes : 19235/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_IMA_EA_EACS_fuzzer-5680878952382464

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/adpcm.c
  • FFMpeg kills itself when restreaming http to rtmp

    22 novembre 2019, par dust19992

    We are trying to restream few stations to our Emby server (alternative to plex), but always when we start the command as provided by many cast-software it runs for some time and then it dies.

    Here is our command :

    ffmpeg -i http://URL/IP:1515/station/discoverychannel/15HD -c:a aac -b:a 96k -ar 44100 -vcodec copy -f flv rtmp://server/discoverystation/15HD

    The error is none the only exit message is :

     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=33056 fps= 60 q=-1.0 Lsize=  302387kB time=00:09:11.45 bitrate=4492.0kbits/s speed=1.01x
    video:295223kB audio:6576kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.194924%
    [aac @ 0x55b6a748ee40] Qavg: 583.684
    Exiting normally, received signal 2
    root@simpsons:~#```


    Our server is WOWZA media server, and we have been looking for the problem for some time now, but without any success, so we hope you guys can help us figure it out, we are trying to copy the live video as it is, and we do not want to change the encoding, or anything else, but if necessary then it has to be encoded.

    I have not much experience in ffmpeg but we have been using VMIX that uses ffmpeg and it's running smooth there to the server without dying, so there has to be a way to run that with the ffmpeg standalone.

    Here is the WOWZA restream manual: https://www.wowza.com/docs/how-to-restream-using-ffmpeg-with-wowza-streaming-engine

    Thanks.
  • 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;