Recherche avancée

Médias (91)

Autres articles (67)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

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

  • I am trying to generate thumbnail by using ffmpeg but I can not define pathways and make my codes work

    17 juillet 2020, par D. Merchant

    Fffmpeg modul is installed in my shared hosting.

    


    enter image description here

    


    My goal is to get a thumbnail of a video. My codes is in below. I can not make them work. This is my first time I use ffmpeg.

    


    require 'vendor/autoload.php';

$video_path = 'home/sasasasasa/public_html/wp-content/uploads/jvhyicpzxy.mp4';

$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_path);
$video
    ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(5))
    ->save('new_preview1.jpg');


    


    When I try the codes in the above, I get this error :

    


    enter image description here

    


    1- What does 'vendor/autoload.php' pathway mean ? I can not see a folder called "vendor" in my file manager.

    


    2- I've check my ffmpeg folder with this code "exec('which ffmpeg') ;" and it outputs "/usr/bin/ffmpeg". But there is no directory in my file manager like that. After a search, Ive found this directory about ffmpeg : "/perl/usr/lib/perl5/FFmpeg". If I enter this path in my hosting, I can see only "Command.pm" and "Thumbnail.pm". What is my wrong, and how can I make my codes work and have a preview of the video ?

    


  • ffmpeg : memory not freed on multi-threaded decoding

    31 mai 2020, par toby_e

    I am developing a video player based on the ffmpeg libraries and have run into a rather strange memory increase or failure to decrease memory when unloading a video file. My code is based on various examples of demuxing, decoding and scaling video and audio frames - but with the excecption that i have put each of these steps into seperate threads to avoid waiting for time-consuming calls. Everything works perfectly, but Visual Studio shows that Process Memory does not decrease when i call the various avclose and avfree calls. My Windows task manager confirms these memory increases that continue into the gigabyes !

    



    My player is roughly made up by two clases with the following calls to the ffmpeg libraries :

    



    



    READER :

    



    Open (on main thread) : avformat_open_input(), avformat_find_stream_info()

    



    Read (on seperate thread) : av_read_frame()

    



    Close (on main thrad) : avformat_close_input()

    



    DECODER :

    



    Open (on main thread) : avcodec_find_decoder(), avcodec_alloc_context3(), avcodec_parameters_to_context(), avcodec_open2()

    



    Decode (on seperate thread) : avcodec_send_packet(), avcodec_receive_frame()

    



    Close (on main thread) : avcodec_free_context()

    



    



    Is threre any issues with opening/closing on the main thread and reading/deconding on other threads ?

    


  • Record live stream using ffmpeg as Process in Java

    26 décembre 2020, par Serbroda

    I can not figure out how to start a Process in Java for recording a live stream with ffmpeg.

    



    I've tried several solutions, but my current code looks like this (simplified) :

    



    public void startDownload() {
    String[] processArgs = new String[] {
            "ffmpeg", 
            "-i", 
            "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8", 
            "-c", 
            "copy", 
            "-bsf:a", 
            "aac_adtstoasc", 
            "C:\\temp\\test.mp4"
    };
    ProcessBuilder processBuilder = new ProcessBuilder(processArgs);
    try {
        process = processBuilder.start();
        process.wairFor(); // Do I need this? Actually the stream is running forever until I stop it manually.
        BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
        String line = null;
        while ((line = br.readLine()) != null) { // this blocks forever
            System.out.println(line);
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
}


    



    The problem is, that something blocks the process from starting. In this example the br.readLine() blocks it forever and I can not get any output from the process.

    



    But after killing the jar / stopping launch config in Intellij, the process begins to work and I have to kill it via task manager.

    



    Running a process that is not recording a live stream like just executing ffmpeg works by the way.

    



    I'm using Windows, JDK 14, IntelliJ.