Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (85)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (14892)

  • Running ffmpeg with multiple pipes

    13 août 2017, par baci

    Is there a way to let ffmpeg read from multiple buffers or multiple named pipes ?

    Basically I want to output the first loop to different pipes instead of .jpg files, and run the video filter command using those pipes as input. Right now enormous disk IO is needed to create and read jpg tiles.

    // heic -> tiles -> jpeg tiles
    #pragma omp parallel for
       for(uint i = 0; i < data.tiles.size(); ++i) {
           char buff[100];
           snprintf(buff, sizeof(buff), "./tmp/%03d.jpg", data.tiles[i].idx);
           std::string cmdStr = "ffmpeg -i - -loglevel warning -frames:v 1 -vsync vfr -an -q:v 1 " + std::string(buff);
           FILE * pipe_in;
           if(pipe_in = popen(cmdStr.c_str(), "w")) {
               fwrite((char*)&data.tiles[i].data[0], 1, data.tiles[i].data.size(), pipe_in);
               fflush(pipe_in);
               fclose(pipe_in);
           }
       }

    ... some processing

    // jpeg tiles -> big jpeg
    std::string inputStr = "./tmp/%03d.jpg";
    std::string cmdStr = "ffmpeg -i " + inputStr +
           " -loglevel warning -threads 4 -q:v 1 -vf \"tile=" + std::to_string(data.cols) + "x" + std::to_string(data.rows) +
           ",crop=" + std::to_string(data.width) + ":" + std::to_string(data.height) + ":0:0" +
           transStr + "\" -y " + outputStr;
    ret = std::system(cmdStr.c_str());
  • how to make ffmpeg process large files faster ?

    12 octobre 2019, par Hakim Douib

    I am using ffmpeg to view video for dash player. But the videos used are more than 1GB, and the server has
    60 GB of RAM
    Ten cores

    The server takes more than 50 hours to process a video.
    The method I use is by separating each operation thread to make it faster ,
    and the files in the end have size between 2 to 5 GB

    dash params variable

    VP9_DASH_PARAMS="-tile-columns 4 -frame-parallel 1"

    cmd :

    ffmpeg  -i  vid_origenal.mp4 -c:v libx265  -s 1920x1080 -b:v 3000k -keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1  1080.webm >/dev/null 2>&1 &

    I use this for all qualities

    thanks

  • FFMPEG - Image Overlay Fade Memory Leak

    14 septembre 2017, par DMtd

    Hoping someone can help explain where I may be going wrong with this command. I’m testing an image overlay, including fade in and fade out, with video. The overlay works fine without the fades, but once they are added ffmpeg reaches the end of the process but does not complete. The file stops growing and the process in windows continues to grow, leaking memory. The resulting file is correct (if I force the process to end), I just can’t understand why the process doesn’t complete on its own. Is anyone aware of this memory leak issue with overlay fades and a way to resolve it ?

    ffmpeg -t 00:01:00.000 -i "Input.mxf" -loop 1 -i "Image.png" -vcodec mpeg2video -s 1920x1080 -b:v 50000k -maxrate 50000k -bufsize 3835k -minrate 50000k -r 25 -flags ilme -top 1 -profile:v 0 -level:v 2 -ar 48000 -pix_fmt yuv422p -filter_complex "[1:v]fade=t=in:st=0:d=0.6,fade=t=out:st=59.36:d=0.6[over] ;[0:v][over]overlay=shortest=1 "Output.mxf"

    UPDATE : I found another thread which gave the answer, although I had to reverse the order of my inputs and the mapping for it to work. Simply adding shortest=1 didn’t work. So this is what worked :

    ffmpeg -t 00:01:00.000 -loop 1 -i "Image.png" -i "Input.mxf" -vcodec mpeg2video -s 1920x1080 -b:v 50000k -maxrate 50000k -bufsize 3835k -minrate 50000k -r 25 -flags ilme -top 1 -profile:v 0 -level:v 2 -ar 48000 -pix_fmt yuv422p -filter_complex "[0:v]fade=t=in:st=0:d=0.6,fade=t=out:st=59.36:d=0.6[over] ;[1:v][over]overlay=shortest=1 "Output.mxf"