Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (111)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (14906)

  • Save frame as image during video stream using ffmpeg, in C

    30 avril 2017, par George T.

    I’m using the Parrot SDK3 to retrieve the video stream from a Bebop2 drone. From it I need to "extract" a frame and save it as an image.

    The whole code can be found here, but I shall try to include the (what I understand as) important parts here.

    Where the video is sent to mplayer. I assume from this that the video format is h624.

    if (videoOut != NULL)
    {
       if (codec.type == ARCONTROLLER_STREAM_CODEC_TYPE_H264)
       {
           if (DISPLAY_WITH_MPLAYER)
           {
               fwrite(codec.parameters.h264parameters.spsBuffer, codec.parameters.h264parameters.spsSize, 1, videoOut);
               fwrite(codec.parameters.h264parameters.ppsBuffer, codec.parameters.h264parameters.ppsSize, 1, videoOut);

               fflush (videoOut);
           }
       }
    }

    Where the frame is received and written to videoOut, to be displayed

    eARCONTROLLER_ERROR didReceiveFrameCallback (ARCONTROLLER_Frame_t *frame, void *customData)
    {
       if (videoOut != NULL)
       {
           if (frame != NULL)
           {
               if (DISPLAY_WITH_MPLAYER)
               {
                   fwrite(frame->data, frame->used, 1, videoOut);

                   fflush (videoOut);
               }
           }
       }
       return ARCONTROLLER_OK;
    }

    The idea I had in mind is to fwrite(frame->data, frame->used, 1, videoOut); to a different file but that just creates a corrupted file, probably because of encoding. In what way can I get this frame and store it to a separate image ? The preferable image filetype .png, .jpg or .gif

    Any help will be greatly appreciated ! Thanks in advance !

  • Java FFMPEG AVFrame save as jpeg format

    23 juillet 2015, par Amarnath

    Trying to save image from Video using the below code

    https://github.com/bytedeco/javacpp-presets/tree/master/ffmpeg

    Wanted to save it in jpg format, but the image format is ppm.

    Any help is appreciated.

  • How to set the length metadata property with fluent-ffmpeg ?

    8 avril 2024, par volume one

    I have transcoded a sample video using fluent-ffpmeg and want to set the length metadata property so that the <video></video> player knows how long the video is going to be.

    &#xA;

    To get the duration of the video I did this :

    &#xA;

    import ffmpeg from &#x27;fluent-ffmpeg&#x27;;&#xA;&#xA;function ffprobePromise() {&#xA;            return new Promise((resolve, reject) => {&#xA;                ffmpeg.ffprobe(&#x27;/path/to/file&#x27;), function (err, metadata) {&#xA;                    FileDuration = metadata.format.duration;&#xA;                    resolve()&#xA;                });&#xA;            })}&#xA;&#xA;  await ffprobePromise();&#xA;&#xA;  ffmpeg(&#x27;path/to/output&#x27;)&#xA;                    .videoCodec(&#x27;libx264&#x27;)&#xA;                    .audioCodec(&#x27;libmp3lame&#x27;)&#xA;                    .duration(FileDuration)   // !! not setting &#x27;length&#x27; metadata property in file&#xA;                    .size(`960x400`)&#xA;                    // Stream output requires manually specifying output formats&#xA;                    .format(&#x27;mp4&#x27;)&#xA;                    .outputOptions([&#x27;-movflags dash&#x27;, `-metadata length=${FileDuration}`]) // also not setting length in metadata&#xA;

    &#xA;

    Here is the sample file that was created : https://devxxx001.s3.amazonaws.com/sample_960x400_47sec.mp4

    &#xA;

    If you download and view the properties of that file, there is no length property in the metadata. Hence when you play the file, the video player is not able to determine the total duration of the video. You'll notice it keeps jumping up as the video plays.

    &#xA;

    The ffmpeg documentation states that you can use ffmpeg -i in.avi -metadata title="my title" out.flv to set the title for example. But how do you do this with fluent-ffmpeg ?

    &#xA;