Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (70)

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

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

Sur d’autres sites (6858)

  • Best / simplest way to display FFmpeg frames in Qt5

    7 mars 2018, par esterlein

    I need to display ffmpeg frames on Qt widget. I know about QtFFmpegWrapper, but it seems outdated. I tried to use memcpy() to copy data from RGB ffmpeg frame to QImage and got unhandled exception inside it.

    QImage lastFrame;
    lastFrame = QImage( screen_w, screen_h, QImage::Format_RGB888 );
    for( int y = 0; y < screen_h; ++y )
       memcpy( lastFrame.scanLine(y),
               frameRGB -> data[0] + y * frameRGB -> linesize[0],
               screen_w * 3 );

    I tried sws_getContext() and sws_getCachedContext(), AV_PIX_FMT_BGR24 and AV_PIX_FMT_RGB24 in all parts of ffmpeg processing. All ffmpeg code is from popular tutorials and works fine with SDL and PIX_FMT_YUV420P.

    Any ideas ?
    Maybe it’s not the best/simplest way to display ffmpeg frames on Qt widget ?

    Edit.

    Ok, I used Murat Şeker’s solution with QImage::copy() but now QImage::isNull() returns true.

    Some of my ffmpeg code :

    out_buffer = (uint8_t*)av_malloc( avpicture_get_size( AV_PIX_FMT_RGB32,
                                     codecCtx -> width, codecCtx -> height ));
    avpicture_fill((AVPicture *)frameRGB, out_buffer, AV_PIX_FMT_RGB32,
                  codecCtx -> width, codecCtx -> height);
    img_convert_ctx = sws_getContext( codecCtx -> width, codecCtx -> height,
                                     codecCtx -> pix_fmt, codecCtx -> width,
                                     codecCtx -> height, AV_PIX_FMT_RGB32,
                                     SWS_BICUBIC, NULL, NULL, NULL );
    /* ... */

    if( got_picture ){
       sws_scale( img_convert_ctx, (const uint8_t* const*)frame -> data,
                  frame -> linesize, 0, codecCtx -> height, frameRGB -> data,
                  frameRGB -> linesize );
       QImage imgFrame = QImage( frameRGB -> data[0], frameRGB -> width,
                                 frameRGB -> height, frameRGB -> linesize[0],
                                 QImage::Format_RGB32 ).copy();
       if( imgFrame.isNull()){} // true

       // But I can write this frame to hard disk using BITMAPFILEHEADER
       SaveBMP( frameRGB, codecCtx -> width, codecCtx -> height ); // it works
    }
  • ffmpeg_opt : fix max_error_rate help info display issue.

    23 février 2018, par Jun Zhao
    ffmpeg_opt : fix max_error_rate help info display issue.
    

    ffmpeg -h display "max_error_rate" option help information have
    been cut off, the root cause is used a wrong initial order.

    Signed-off-by : Jun Zhao <jun.zhao@intel.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] fftools/ffmpeg_opt.c
  • ffplay - Two videos (.mp4), one display screen and just a few seconds to display them together [closed]

    1er juillet 2024, par Gabe Mata

    I have two videos (.mp4), one display screen and just a few seconds to display them together.

    &#xA;

    I am able to displayed them together on a split screen via ffmpeg and then opening the output file. The problem is that it takes a long time (3 minutes).

    &#xA;

    Here is the Code : (first code)

    &#xA;

    ffmpeg -i _20180114094126_flightvideo_cam1.mp4      \&#xA;       -i _20180114094126_flightvideo_cam2.mp4       \&#xA;       -filter_complex "                              \&#xA;               [0:v]crop=1280:360:0:0[v0];             \&#xA;               [1:v]scale=1280:-1,crop=1280:360:0:0[v1];\&#xA;               [v0] [v1]vstack[v]" \&#xA;       -map [v]                     \&#xA;       -vcodec libx264               \&#xA;       -pix_fmt yuv420p               \&#xA;       -preset ultrafast               \&#xA;        6000screen_take1.mkv  &#xA;

    &#xA;

    On the other hand, when using ffplay I am able to modify one video at the time and play it right away :

    &#xA;

    $ ffplay -i _20180114094126_flightvideo_cam1.mp4 -vf scale=425:-2 &#xA;

    &#xA;

    How can I have the same outcome as the first code above, but display it on my screen right away(without waiting for the output file to be created, 3 minutes in this case) ?

    &#xA;

    Please let me know if this is not clear.

    &#xA;