Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (80)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14921)

  • Wrong colors when converting an AVFrame to QVideoFrame

    2 janvier 2020, par Michael G.

    I read videos with libav and display them in a QAbstractVideoSurface in QML. It works so far, however, I did not manage to get the colors right.

    My av_read_frame Loop looks like this :

    if (frameFinished)
    {
                           SwsContext* context = nullptr;
                           context = sws_getContext(_frame->width, _frame->height, (AVPixelFormat)_frame->format, _frame->width, _frame->height, AVPixelFormat::AV_PIX_FMT_RGBA, SWS_BICUBIC, nullptr, nullptr, nullptr);
                           QImage img(_frame->width, _frame->height, QImage::Format_RGBA8888);
                           uint8_t* dstSlice[] = { img.bits() };
                           int dstStride = img.width() * 4;
                           sws_scale(context, _frame->data, _frame->linesize,
                               0, _frame->height, dstSlice, &dstStride);

                           av_packet_unref(&packet);
                           sws_freeContext(context);
    }

    If I save the image to disk at this point, the colors are already wrong (everything looks red).
    Later, I display the images in a video surface with the format QVideoFrame::Format_ARGB32, and the colors are wrong again, but look different than the saved image (everything looks blue).

    I started to experiment with libav/ffmpeg recently, so maybe the problem is something else and I just have no clue. Let me know, if you need more information :)

  • vqf : Make sure sample_rate is set to a valid value

    27 septembre 2013, par Martin Storsjö
    vqf : Make sure sample_rate is set to a valid value
    

    This avoids divisions by zero later (and possibly assertions in
    time base scaling), since an invalid rate_flag combined with an
    invalid bitrate below could pass the mode combination test.

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/vqf.c
  • FFmpeg Drawbox Errors ?

    12 mars 2021, par Alex Gurr

    Using ffmpeg version 4.3.2.

    &#xA;

    Command :

    &#xA;

    ffmpeg -y&#xA;&#xA;  -i /usr/src/app/backgrounds/pink-blue.jpg&#xA;  -i files/fuzzy-octopus-5/path/file.webm&#xA;  -i files/fuzzy-octopus-5/path/file.webm&#xA;  -i /usr/src/app/logo.png&#xA;  -filter_complex "&#xA;    [0]drawbox=x=-140:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill,&#xA;       drawbox=x=770:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill[bg]; &#xA;    ...&#xA;

    &#xA;

    However I am getting the following errors ?

    &#xA;

    Error while processing the decoded data for stream #3:0&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error reinitializing filters!&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] Failed to configure input pad on Parsed_drawbox_0&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] Error when evaluating the expression &#x27;(((H-th)/2) - 205)&#x27;.&#xA;Last message repeated 5 times&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] [Eval @ 0x7ffcf25dc650] Undefined constant or missing &#x27;(&#x27; in &#x27;H-th)/2)-205)&#x27;&#xA;

    &#xA;

    I have the right amount of brackets and this definitely works on my local machine (macOS). It's only throwing this error in our deployed AWS EC2 linux instance.

    &#xA;

    Any ideas ? Thanks !

    &#xA;

    Update : Tried replacing th with h but get the same error

    &#xA;