Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (62)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9337)

  • Extract MXF file data using python

    28 juin 2022, par Rex

    Is there any way to extract MXF file data using python ?

    


    All I want to do is get data like video duration, actual video stream and if possible the voice in mp3 or any audio format from an MXF file.

    


  • Extracting klm data from mp2 stream using C++ and ffmpeg

    25 mars 2019, par Douglas

    I have an mp2 stream that has klv metadata. I stored the klv in a file using ffmpeg command line :

    ffmpeg -i input.mpg -map data-re -codec copy -f data output.klv

    I now want to do this in c++. So, I have

    FFMPEG setup …..

    Then the main loop

    // Read frames
    while(av_read_frame(pFormatCtx, &packet) >= 0)
    {
       // Is this a packet from the video stream?
       if(packet.stream_index == videoStream)
       {
           // Decode video frame
           avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);

           // Did we get a video frame?
           if(frameFinished)
           {
               // Convert the image from its native format to RGB
               sws_scale(sws_ctx, (uint8_t const * const *)pFrame->data,
                                   pFrame->linesize, 0, pCodecCtx->height,
                                   pFrameRGB->data, pFrameRGB->linesize);

               QImage myImage(pFrameRGB->data[0], pCodecCtx->width, pCodecCtx->height, QImage::Format_RGB888);

               QPixmap img(QPixmap::fromImage(myImage.scaled(ui->label->width(),ui->label->height(),Qt::KeepAspectRatio)));

               ui->label->setPixmap(img);
               QCoreApplication::processEvents();
           }
       }
       else // klv stream
       {
           // Decode klv data
           qDebug() << packet.buf->size;
           for(int i=0; isize; i++)
           {
               qDebug() << packet.buf->data[i];
           }
       }

    The resulting klv output is different - I must be doing something wrong processing the packet. The frames are good and I’m viewing it in a qt label - so my ffmpeg setup is working on images but not the klv data.

  • Extracting KLV data from mp2 stream using C++ and ffmpeg

    18 juin 2019, par Douglas

    I have an mp2 stream that has klv metadata. I stored the klv in a file using ffmpeg command line :

    ffmpeg -i input.mpg -map data-re -codec copy -f data output.klv

    I now want to do this in c++. So, I have

    FFMPEG setup …..

    Then the main loop

    // Read frames
    while(av_read_frame(pFormatCtx, &packet) >= 0)
    {
       // Is this a packet from the video stream?
       if(packet.stream_index == videoStream)
       {
           // Decode video frame
           avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);

           // Did we get a video frame?
           if(frameFinished)
           {
               // Convert the image from its native format to RGB
               sws_scale(sws_ctx, (uint8_t const * const *)pFrame->data,
                                   pFrame->linesize, 0, pCodecCtx->height,
                                   pFrameRGB->data, pFrameRGB->linesize);

               QImage myImage(pFrameRGB->data[0], pCodecCtx->width, pCodecCtx->height, QImage::Format_RGB888);

               QPixmap img(QPixmap::fromImage(myImage.scaled(ui->label->width(),ui->label->height(),Qt::KeepAspectRatio)));

               ui->label->setPixmap(img);
               QCoreApplication::processEvents();
           }
       }
       else // klv stream
       {
           // Decode klv data
           qDebug() << packet.buf->size;
           for(int i=0; isize; i++)
           {
               qDebug() << packet.buf->data[i];
           }
       }

    The resulting klv output is different - I must be doing something wrong processing the packet. The frames are good and I’m viewing it in a qt label - so my ffmpeg setup is working on images but not the klv data.