Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (97)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

Sur d’autres sites (11083)

  • Getting error "WebAssembly.Memory() : could not allocate memory" when running ffmpeg.wasm on android chrome browser

    27 juin 2022, par Ravi Kundu

    Error in detail :

    


    WebAssembly.Memory(): could not allocate memory
at https://*******/ffmpeg-core.js:22:82
at https://*******/ffmpeg.min.js:1:6506
at f (https://*******/ffmpeg.min.js:1:11322)
at Generator._invoke (https://*******/ffmpeg.min.js:1:11110)
at Generator.next (https://*******/ffmpeg.min.js:1:11747)
at i (https://*******/ffmpeg.min.js:1:4295)
at c (https://*******/ffmpeg.min.js:1:4498)


    


    Code for ffmpeg :

    


    const downloadWithFFMPEG = async () =>{
  const sourceBuffer = await fetch(recordingURL).then(r => r.arrayBuffer());
  await ffmpeg.load();
  await ffmpeg.FS(
    "writeFile",
    "input.webm",
    new Uint8Array(sourceBuffer, 0, sourceBuffer.byteLength)
  );
  await ffmpeg.run("-i", "input.webm", "-c", "copy", "output.mp4")
  const output = ffmpeg.FS("readFile", "output.mp4");
  var link = document.createElement('a')
  link.href = URL.createObjectURL(new Blob([output.buffer], { type: 'video/mp4;codecs=H264' }));
  link.download = this.data;
  link.click();
  recording = false;
}


    


    Brief about problem :
The error only comes for android chrome browser. The same code works fine on pc/laptop chrome.
Have also enabled Webassembly-thread on chrome ://flags for android browser as someone suggested me to do it but still same error. Can someone help me ?

    


  • Revert "avformat/hlsenc : compute video_keyframe_size after write keyframe"

    1er mai 2021, par Steven Liu
    Revert "avformat/hlsenc : compute video_keyframe_size after write keyframe"
    

    This reverts commit b5ca8f2c66954614d81579082025f580efc0cffc.

    This commit will make new problem about tickets : 9193,9205
    It flush data into file with init file context together,
    and it can get keyframe size, maybe need more method to get keyframe
    size.

    Signed-off-by : Steven Liu <liuqi05@kuaishou.com>

    • [DH] libavformat/hlsenc.c
  • "Critical error detected c0000374" when running av_packet_unref or av_frame_unref

    15 mai 2021, par Shivang Sharma

    I am trying to read and decode frames which is happening nicely but when its reaching part of un-referencing frame or packet using av_packet_unref and av_frame_unref it is giving error during second frame or third frame sometimes .

    &#xA;

    Error (Copied from visual studio output window) :

    &#xA;

    Critical error detected c0000374&#xA;Libav.exe has triggered a breakpoint&#xA;

    &#xA;

    Here is some code of reading and decoding which is giving error :

    &#xA;

    void Decoder::streamNextFrame(int type = 0)&#xA;{&#xA;    while (av_read_frame(this->fileFormatCtx, this->latestpacket) >= 0) {&#xA;        if (this->audioDecoder->activeAudioStream != nullptr) {&#xA;            if (this->latestpacket->stream_index == this->audioDecoder->activeAudioStream->index) {&#xA;                avcodec_send_packet(this->audioDecoder->activeStreamDecoder, this->latestpacket);&#xA;                err = avcodec_receive_frame(this->audioDecoder->activeStreamDecoder, this->decodedFrame);&#xA;                if (err == AVERROR(EAGAIN)) {&#xA;                    av_frame_unref(this->decodedFrame);&#xA;                    av_packet_unref(this->latestpacket);&#xA;                    continue;&#xA;                }&#xA;&#xA;                {&#xA;                    int currentIndex = (int)this->audioFrames->size();&#xA;                    this->audioFrames->resize((int)this->audioFrames->size() &#x2B; 1);&#xA;                    int nb = 0;&#xA;                    this->audioFrames->at(currentIndex).pts = (int)this->decodedFrame->pts;&#xA;                    if (this->audioDecoder->activeStreamDecoder->sample_fmt != AV_SAMPLE_FMT_S16) {&#xA;                        nb = 2048 * this->audioDecoder->activeStreamDecoder->channels;&#xA;                        printf("%i\n", nb);&#xA;                        this->audioFrames->at(currentIndex).data.resize(nb);&#xA;                        if (!swr_is_initialized(swr)) {&#xA;&#xA;                            swr_alloc_set_opts(swr, this->audioDecoder->activeStreamDecoder->channel_layout, AV_SAMPLE_FMT_S16, this->audioDecoder->activeStreamDecoder->sample_rate, this->audioDecoder->activeStreamDecoder->channel_layout, this->audioDecoder->activeStreamDecoder->sample_fmt, this->audioDecoder->activeStreamDecoder->sample_rate, 0, nullptr);&#xA;                            swr_init(swr);&#xA;                        }&#xA;&#xA;                        uint8_t* buffer = this->audioFrames->at(currentIndex).data.data();&#xA;                        swr_convert(swr, &amp;buffer, nb, (const uint8_t**)this->decodedFrame->extended_data, this->decodedFrame->nb_samples);&#xA;                    }&#xA;                    else {&#xA;                        nb = this->decodedFrame->nb_samples * this->audioDecoder->activeStreamDecoder->channels;&#xA;                        this->audioFrames->at(currentIndex).data = std::vector(*this->decodedFrame->extended_data, *this->decodedFrame->extended_data &#x2B; (uint8_t)nb);&#xA;                    }&#xA;&#xA;                    this->audioFrames->at(currentIndex).buffersize = nb;&#xA;                }&#xA;&#xA;                if (err == AVERROR_EOF) {&#xA;                    this->audioDecoder->streamEnded = true;&#xA;                    av_frame_unref(this->decodedFrame);&#xA;                    av_packet_unref(this->latestpacket);&#xA;                    break;&#xA;                }&#xA;                else if (err >= 0) {&#xA;                    this->audioDecoder->streamEnded = false;&#xA;                }&#xA;&#xA;                if (type != 0) {&#xA;                    av_packet_unref(this->latestpacket);&#xA;                    av_frame_unref(this->decodedFrame);&#xA;                    break;&#xA;                }&#xA;                av_packet_unref(this->latestpacket);&#xA;                av_frame_unref(this->decodedFrame);&#xA;            }&#xA;        }&#xA;        else {&#xA;            printf("No active audio stream is set\n");&#xA;            if(type!=0)&#xA;            break;&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;

    &#xA;

    I have removed some of code which was concerning the video and was not giving problem I think.

    &#xA;

    Some Information about above code :

    &#xA;

    this->audioFrames is a pointer to vector with following type.&#xA;std::vector<audioframeformat>* "AudioFrameFormat" is struct defined as following&#xA;&#xA;struct AudioFrameFormat {&#xA;        std::vector data = {};&#xA;        int pts = 0;&#xA;        int buffersize = 0;&#xA;    };&#xA;&#xA;&#xA;swr is a private class member allocated in constructor&#xA;</audioframeformat>

    &#xA;

    Call Stack looks like :

    &#xA;

    enter image description here

    &#xA;

    I am getting from call stack is that I am not taking care of my heap memory.

    &#xA;

    Can someone please explain where problem is and, why some times it run till third frame and some time till second frame of the audio stream ?

    &#xA;

    And please tell how can I improve this code.

    &#xA;