Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (49)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

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

Sur d’autres sites (4223)

  • exec() with SuPHP and SafeMode Off (php.ini local) show wrong path and fail execution

    29 juillet 2013, par abkrim

    Try this

    <?php
        if (exec('/usr/bin/ffmpeg -i 47.mp4 -acodec aac -ab 128kb -vcodec mpeg4 -b 1220kb -mbd 1 -s 320x180 final_video.mov"'))
            { echo "Success"; }
        else { echo "No good"; }
    ?>

    But on shell see—>

    sh: /usr/local/php/bin/ffmpeg: No such file or directory

    Server it's Apache+SuPHP with a local php.ini file for disable SafeMode

    I don't understand why show sh : /usr/local/php/bin/ffmpeg : No such file or directory instead real path put on php script.

  • lavfi/overlay : show incoming frames on debug messages

    20 juin 2014, par Stefano Sabatini
    lavfi/overlay : show incoming frames on debug messages
    

    This is especially useful to debug queue overflow issues.

    Ideally we should be able to set the debug message at the
    dualinput/framesync level, but they do not have the information related
    to the filter context and the inlink, so cannot access much useful
    information.

    Signed-off-by : Stefano Sabatini <stefasab@gmail.com>

    • [DH] libavfilter/vf_overlay.c
  • How correctly show video with transparency in Qt with OpenCV + FFMpeg

    11 avril 2022, par TheEnigmist

    I'm trying to show a video with transparency in a Qt6 application using OpenCV + FFMPEG.&#xA;Actually those are tool versions :

    &#xA;

      &#xA;
    • Win 11
    • &#xA;

    • Qt 6.3.0
    • &#xA;

    • OpenCV 4.5.5 (built with CMake)
    • &#xA;

    • FFMPEG 2022-04-03-git-1291568c98-full_build-www.gyan.dev
    • &#xA;

    &#xA;

    I've used a base .mov video with transparency as test (link provided below).&#xA;First of all I've converted .mov video to .webm video (VP9) and I see in output text that alpha channel remains

    &#xA;

    &#xA;

    ffmpeg -i '.\Retro Bars.mov' -c:v libvpx-vp9 -crf 30 -b:v 0 output.webm

    &#xA;

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2,&#xA;    ...&#xA;    Stream #0:0[0x1](eng): Video: qtrle (rle  / 0x20656C72), argb(progressive),&#xA;    ...&#xA;&#xA;Output #0, webm, &#xA;   ...&#xA;   Stream #0:0(eng): Video: vp9, yuva420p(tv, progressive),&#xA;   ...&#xA;

    &#xA;

    But when I show info of output file with ffmpeg it loses alpha channel :

    &#xA;

    &#xA;

    ffmpeg -i .\output.webm

    &#xA;

    &#xA;

    Input #0, matroska,webm,&#xA;    ...&#xA;    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, progressive),&#xA;    ...&#xA;

    &#xA;

    If I open output.webm with OBS it is shown correctly without a background, as shown in picture :&#xA;obs_load

    &#xA;

    If I try to open it with OpenCV + FFMPEG it shows a black background under bars, as shown in picture :&#xA;Qt_out

    &#xA;

    This is how I load video in Qt :

    &#xA;

    cv::VideoCapture capture;&#xA;capture.open(filename, cv::CAP_FFMPEG);&#xA;capture.set(cv::CAP_PROP_CONVERT_RGB, false); // try forcing load alpha channel&#xA;... //in a thread&#xA;while (capture.read(frame)) {&#xA;    qDebug() &lt;&lt; "c" &lt;&lt; frame.channels() &lt;&lt; "t" &lt;&lt;  frame.type() &lt;&lt; "d" &lt;&lt;  frame.depth(); // output: c 3 t 16 d 0&#xA;    cv::cvtColor(frame, frame, cv::COLOR_BGR2RGBA); //useless since no alpha channel is detected&#xA;    img = QImage(frame.data, frame.cols, frame.rows, QImage::Format_RGBA8888);&#xA;    emit processedImage(img); // to show image in a QLabel with QPixmap::fromImage(img)&#xA;}&#xA;

    &#xA;

    I think the problem is when I load the video with OpenCV, it doens't detect alpha channel, since I can load correctly in other player (obs, html5, etc.)

    &#xA;

    What I'm wrong with all process to show this video in Qt with transparency ?

    &#xA;

    EDIT : Added dropbox link with test video + ffmpeg outputs :&#xA;sample items

    &#xA;