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 (14961)

  • FFMPEG : How to overlay a large size png on jpg [closed]

    21 juin 2022, par Yoav Mor

    I'm trying to use ffmpeg to achieve the following :
x.jpg = a file that is 540x540 in size.
Gradient.png = a 540x960 image that has a gradient of semi transparency (which starts with dark blue with no transparency in the top and then gradually becomes transparent in the bottom)
example of Gradient.png attached

    


    The goal is to end up with a jpg that is 540x960, where x.jpg is in the bottom 540x540 of the frame and the Gradient.png is laid on top of it. Because Gradient.png is larger, this seems to pose a problem.

    


    I tried :

    


    ffmpeg.exe -i x.jpg -i Gradient.png -filter_complex overlay=0:480 -c:v png -pix_fmt rgba out.png


    


    Which just creates a 540x540 frame, so doesn't work. Feels close though. If I new how to enlarge the "canvas" this could have maybe worked.

    


    I tried.

    


    ffmpeg.exe -i Gradient.png -i x.jpg -filter_complex overlay=0:480 -c:v png -pix_fmt rgba out.png


    


    Which does create a 540x960 frame but Gradient.png is not on top of 1.jpg, the opposite is happening here, so I don't get the effect of the semi transparency shown on top of x.jpg like I need.

    


    Any help will be highly appreciated

    


    Edit :
I was able to do it in 2 steps.
ffmpeg -i x.jpg -vf "scale=540:960:force_original_aspect_ratio=decrease,pad=540:960 :(ow-iw)/2 :(oh-ih)" -c:v png -pix_fmt rgba out.jpg
ffmpeg -i out.jpg -i Gradient.png -filter_complex overlay=0:0 OUT2.jpg

    


    If someone can come up with a way to do it in one step, it'll be great.

    


  • 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