Recherche avancée

Médias (91)

Autres articles (80)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10446)

  • How to write command in android when I m using FFmpeg Native with C++ file ?

    16 octobre 2019, par axita.savani

    Using FFmpeg lastest version ("Ada") with native code and write command in android .cpp file below it’s very simple function VideogetDuration() :

    #include
    #include <string>
    #include <iostream>
    #include <android></android>log.h>
    #include

    extern "C" {
    #include <libavutil></libavutil>timestamp.h>
    #include <libavformat></libavformat>avformat.h>
    #include <libavutil></libavutil>display.h>
    }

       /***
        *
        * @param input - the absolute path to file
        * @returns the duration of file in seconds
        *
        */
       extern "C"
       JNIEXPORT jint JNICALL
       Java_com_ffmpegjni_videoprocessinglibrary_VideoProcessing_getDuration(JNIEnv *env,
                                                                             jobject instance,
                                                                             jstring input_) {
           av_register_all();
           AVFormatContext *pFormatCtx = NULL;
           if (avformat_open_input(&amp;pFormatCtx, jStr2str(env, input_), NULL, NULL) &lt; 0) {
               throwException(env, "Could not open input file");
               return 0;
           }


           if (avformat_find_stream_info(pFormatCtx, NULL) &lt; 0) {
               throwException(env, "Failed to retrieve input stream information");
               return 0;
           }

           int64_t duration = pFormatCtx->duration;


           avformat_close_input(&amp;pFormatCtx);
           avformat_free_context(pFormatCtx);
           return (jint) (duration / AV_TIME_BASE);
       }
    </iostream></string>

    when this value returns 0 value either the wrong value.
    also i have read the below docs for more information.

    1)http://dranger.com/ffmpeg/data.html
    2)https://static.packt-cdn.com/downloads/Developing_Multimedia_Applications_with_NDK.pdf
    3)https://github.com/KucherenkoIhor/VideoProcessingLibrary (also see this project)
    4)https://github.com/leandromoreira/ffmpeg-libav-tutorial#video---what-you-see

    i have also add the same problem with below link :
    how to use libavcodec/ffmpeg to find duration of video file

  • File created in subprocess.run not found by os.listdir()

    13 novembre 2019, par Abitbol

    I am using subprocess to launch an instance of ffmpeg extracting frames in a folder. Then I do os.listdir on that same folder and it returns an empty list ; off course I would except to see the files created by ffmpeg listed.

    Here is a minimal example

    import os
    import subprocess

    folder = 'generated'
    subprocess.run(['ffmpeg', '-i', 'input.mp4', '-vf', 'fps=4', f'{folder}/%05d.png'])
    print(os.listdir(folder))  # []

    I can testify that the files are created while the script is running.

    In the full example I am using ffmpeg complex filter to generate two output, I don’t think that is the source of the problem.

  • FLAC__stream_encoder_finish : Sanity improvement

    30 janvier 2017, par Erik de Castro Lopo
    FLAC__stream_encoder_finish : Sanity improvement
    

    Previously this function would abort or crash if passed `NULL` for
    the encoder. Now it just returns without crashing or aborting which
    is far more sane behaviour (ie much like FLAC__stream_encoder_delete).

    • [DH] src/libFLAC/stream_encoder.c