Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (57)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (10953)

  • C++ - Failed to stream to youtube with ffmpeg

    27 mars 2022, par Samuel Ives

    Well, I have an open source project similar to OBS but aimed at churches, the repository you can find here, however I'm stuck in the encoding part, avcodec_send_frame after a while just returns Failed to send frame - code : -11 err : Resource temporarily unavailable and never gets to the stage of receiving packets.

    


    I've tried everything including changing the output format to MP4 but the application just crashes, this time I'm challenging myself to a bigger project, I thought I had solved it by changing the codec to H.264 but I was wrong

    


    Basically I'm trying to get OpenCV images from my webcam and send them to youtube

    


    void Broadcast::writeFrame(const cv::Mat &amp;image)&#xA;{&#xA;&#xA;    const int width = image.cols;&#xA;    const int height = image.rows;&#xA;&#xA;    if(swConv == nullptr) {&#xA;        swConv = sws_getContext(width, height, AV_PIX_FMT_RGB24, codecCtx->width, codecCtx->height, codecCtx->pix_fmt, SWS_BILINEAR, nullptr, nullptr, nullptr);&#xA;        if(!swConv) {&#xA;            qCritical() &lt;&lt; "Could not create SwContext";&#xA;            return;&#xA;        }&#xA;    }&#xA;&#xA;    const int stride[4] = { static_cast<int>(image.step[0]) };&#xA;    sws_scale(swConv, &amp;image.data, stride, 0, image.rows, frame->data, frame->linesize);&#xA;    frame->pts = frame_pts&#x2B;&#x2B;;&#xA;&#xA;    int ret = avcodec_send_frame(codecCtx, frame);&#xA;    if(ret &lt; 0) {&#xA;        qWarning() &lt;&lt; "Failed to send frame - code: " &lt;&lt; ret &lt;&lt; " err: " &lt;&lt; av_err2str(ret);;&#xA;        return;&#xA;    }&#xA;&#xA;    qDebug() &lt;&lt; "AA " &lt;&lt; ret;&#xA;&#xA;    // Encode frames into packet&#xA;    while(ret > 0) {&#xA;&#xA;        qDebug() &lt;&lt; "BB " &lt;&lt; ret;&#xA;&#xA;        ret = avcodec_receive_packet(codecCtx, pkt);&#xA;        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {&#xA;            return;&#xA;        } else if(ret &lt; 0) {&#xA;            qCritical() &lt;&lt; "Error reciving packets: " &lt;&lt; av_err2str(ret);&#xA;            break;&#xA;        }&#xA;&#xA;        qDebug() &lt;&lt; "CC";&#xA;&#xA;        av_write_trailer(ofctx);&#xA;        //av_packet_unref(pkt);&#xA;&#xA;    }&#xA;&#xA;    qDebug() &lt;&lt; "Frames " &lt;&lt; frame_pts;&#xA;&#xA;}&#xA;</int>

    &#xA;

  • Streaming to facebook rtmps gives TLS connection error

    18 juin 2021, par jdramer

    I am trying to stream to Facebook with ffmpeg. As of late 2019 the connection requirement is rtmps. Using the stock Debian Buster ffmpeg the TLS connection fails.

    &#xA;

    FFMPEG Version

    &#xA;

    ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --prefix=/usr --extra-version=&#x27;1~deb10u1&#x27; --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;

    &#xA;

    Stream command

    &#xA;

    $ ffmpeg -i "rtmp://127.0.0.1/restream/STREAMKEY" -threads 1 -vcodec copy -acodec copy -f flv "rtmps://live-api-s.facebook.com:443/rtmp/FSTREAMKEY"&#xA;

    &#xA;

    Error

    &#xA;

    [rtmps @ 0x55d9e0e3ea40] Cannot open connection tls://live-api-s.facebook.com:443&#xA;rtmps://live-api-s.facebook.com:443/rtmp/FSTREAMKEY: Resource temporarily unavailable&#xA;

    &#xA;

    Am I missing something ?

    &#xA;

  • How Can I Configure Storybook to Use React-App-Rewired ?

    8 août 2022, par joseph

    I'm working on a project that implements react-app-rewired to send headers to the server in order to bypass ReferenceError: SharedArrayBuffer is not defined (I'm getting this error from using the @ffmpeg/ffmpeg library).

    &#xA;

    // config-overrides.js&#xA;const {&#xA;  override,&#xA;  // disableEsLint,&#xA;  // addBabelPlugins,&#xA;  // overrideDevServer&#xA;} = require(&#x27;customize-cra&#x27;)&#xA;&#xA;module.exports = {&#xA;  devServer(configFunction) {&#xA;    // eslint-disable-next-line func-names&#xA;    return function (proxy, allowedHost) {&#xA;      const config = configFunction(proxy, allowedHost)&#xA;&#xA;      // Set loose allow origin header to prevent CORS issues&#xA;      config.headers = {&#xA;        &#x27;Access-Control-Allow-Origin&#x27;: &#x27;*&#x27;,&#xA;        &#x27;Cross-Origin-Opener-Policy&#x27;: &#x27;same-origin&#x27;,&#xA;        &#x27;Cross-Origin-Embedder-Policy&#x27;: &#x27;require-corp&#x27;,&#xA;        &#x27;Cross-Origin-Resource-Policy&#x27;: &#x27;cross-origin&#x27;&#xA;      }&#xA;&#xA;      return config&#xA;    }&#xA;  }&#xA;}&#xA;

    &#xA;

    // package.json&#xA;"scripts": {&#xA;  "start": "react-app-rewired start",&#xA;  "build": "react-app-rewired build",&#xA;  "test": "react-app-rewired test  --transformIgnorePatterns \"node_modules/(?!siriwave)/\"",&#xA;  "eject": "react-scripts eject",&#xA;  "storybook": "start-storybook -p 6006 -s public",&#xA;  "build-storybook": "build-storybook -s public"&#xA;}&#xA;

    &#xA;

    Though this works when I run npm start, meaning the headers get sent to the server, it doesn't work when I run npm run storybook, and I still get the SharedArrayBuffer is not defined error. I'm assuming it's because npm run storybook still uses react-scripts as opposed to react-app-rewired under the hood, but I'm not sure where I can change the configurations for this. Any ideas ?

    &#xA;