Recherche avancée

Médias (91)

Autres articles (86)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

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

Sur d’autres sites (7614)

  • Layer black & white video over background so black pixels are transparent in FFMPEG

    4 février 2018, par Dan Weaver

    I’m trying to blend a video containing black and white animated text over a static background image. I can successfully blend them but no matter what blend mode I use I can’t get the effect I want.

    I’m looking for an effect similar to Photoshop’s ’Add’ blend mode where the color values of each pixel are added together. This results in no change where the top layer (video) has black pixels, effectively making the black background appear transparent.

    This is what I’m trying to achieve :
    enter image description here

    ffmpeg -i text.mp4 -loop 1 -i image.jpg \
    -filter_complex 'blend=all_mode=addition' -t 1 result.mp4

    I tried all the modes of the blend filter but none of them produce this effect. I thought Addition would be the one to work but the resulting video has a pink tint. Maybe there is some mismatch between color channels ?

    How can I get the result I’m looking for ?

  • FFMPEG command fails for file path with white spaces

    7 février 2018, par user3904345

    I am executing the below ffmpeg command for trimming videos.The issue I am having is that if filepath contains spaces then the command fails.I tried many ways to handle spaces but none of them worked except moving file to a path that doesn’t have space and then executing the command with new file path as source.
    Below is the command-

    execFFmpegBinary("-i " +  filepath   + " -ss " + startMs / 1000 + " -to " + endMs / 1000 + " -strict -2 -async 1 " + dest.getAbsolutePath());



    private void execFFmpegBinary(final String command) {
           try {
               ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onFailure(String s) {
                       Log.e("Previewragment", "FAILED with output : " + s);
                   }

                   @Override
                   public void onSuccess(String s) {
                       Log.e("Previewragment", "SUCCESS with output : " + s);
                   }

                   @Override
                   public void onProgress(String s) {
                       Log.e("Previewragment", "Started command : ffmpeg " + command);
                       Log.e("Previewragment", "progress : " + s);
                   }

                   @Override
                   public void onStart() {
                       Log.e("Previewragment", "Started command : ffmpeg " + command);

                   }

                   @Override
                   public void onFinish() {



                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               // do nothing for now
           }
       }

    I saw this answer and tried

    String addQuotes(String in ) {
           return "\"" + in + "\"";
       }
    execFFmpegBinary("-i " +  addQuotes(filepath)   + " -ss " + startMs / 1000 + " -to " + endMs / 1000 + " -strict -2 -async 1 " + dest.getAbsolutePath())

     ;

  • FFmpeg : How to color-key all colors except blue and white ?

    21 février 2018, par DanielNg

    I know how to colorkey a specific color from an overlay video based on the documentation from FFmpeg. Here is the code I used to colorkey the black color out of a video then overlay it with a base video keeping the audio from the overlaid video :

    "ffmpeg -i " + baseVid + " -i " + overlayVid + " -y" + ' -filter_complex "[1:v]colorkey=0x000000:0.6:0.0[ckout];[0:v][ckout]overlay=shortest=1[out]" -shortest -map 1:a -map "[out]" ' + output

    However, my problem is that the overlaid video also contains other colors such as blue, white, brown, grey, green. Even though they are only small portions compared to the black that has been removed, they make the colorkeyed overlaid video look really dirty. I want to keep only the two main colors (blue and white) and removing the rest from the overlaid video. How do I do this using FFmpeg. I tried this code but it did not work.