Recherche avancée

Médias (0)

Mot : - Tags -/interaction

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (24)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (1863)

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