Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (74)

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

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

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

  • How can I apply custom font on watermark that created by FFmpeg

    7 août 2019, par Dens

    I am creating a video with FFmpeg library. I want access fonts from Android assets folder and overlay on my video as watermark.

    What is the path for Android assets folder to access and apply custom font on FFmpeg ?
    I can overlay watermark on video but when I try to apply custom font on it, it gives error related to not exist, etc.

    What I found till now :

    The alternative solution that I found is the create an image file and write text on it and overlay image on video. problem is text and image being stretch output. I need a solution for it.

    String[] execute = {"-y",  "-i",  videoPath, "-i", image, "-filter_complex",
                "[1:v]scale=" + width + ":" + height + "[ovrl],[0:v][ovrl]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2"
                ,"-strict" , "experimental", "-vcodec", "libx264" , "-preset",  "ultrafast" , "-crf",  "20", "-acodec",  "aac",  "-ar",
                "44100",  "-ac",  "2",  "-b:v",  "36000k",   outputPath.getPath()};

    I thought itz output will be good but it stretching my text and image.

    I want some perfect solution to apply assets font on FFmpeg.

    Thank you in Advance.

  • Android ffmpeg : Use image for Watermark from drawable or assets folder

    17 septembre 2019, par Pratik Butani

    How to use image for watermark from drawable folder or assets folder in Android.

    I found many examples with command but all the examples are working with static image path of internal storage.

    I have done following code to make video with watermark.

       try {
           FFmpeg ffmpeg = FFmpeg.getInstance(mContext);
           // to execute "ffmpeg -version" command you just need to pass "-version"

           String mSelectedPath = PathUtils.getPathFromUri(mContext, selectedUri);
           String mFileName = PathUtils.getFileName(mSelectedPath);
           final String mDestinationPath = "/storage/emulated/0/" + mFileName;

           String[] array = new String[]{"-i", mSelectedPath , "-i", "/storage/emulated/0/logo.png", "-filter_complex", "[0:v][1:v]overlay=main_w-overlay_w-10:10", "-codec:a", "copy", mDestinationPath};

           ffmpeg.execute(array, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   Log.d(TAG, "onStart: ");
                   Toast.makeText(mContext, "Preparing video...", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onProgress(String message) {
                   Log.d(TAG, "onProgress: " + message);
                   Toast.makeText(mContext, "Processing for compression...", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onFailure(String message) {
                   Log.d(TAG, "onFailure: " + message);
                   Toast.makeText(mContext, "Failed to upload, Try Again.", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onSuccess(String message) {
                   Log.d(TAG, "onSuccess: " + message);
                   Toast.makeText(mContext, "Uploading started", Toast.LENGTH_SHORT).show();
                   mFinalUploadUri = PathUtils.getUriFromPath(mContext, new File(mDestinationPath));
                   uploadVideo();
               }

               @Override
               public void onFinish() {
                   Log.d(TAG, "onFinish: ");

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           // Handle if FFmpeg is already running
           e.printStackTrace();
       }

    Anyone know how to use image for watermark from drawable or assets folder ? Can anyone help ?

  • How can i add a watermark on videos ? [duplicate]

    11 septembre 2019, par The Beast

    This question already has an answer here :

    This is my code that i’m using to merge videos .

    var_dump(shell_exec( "C:/ffmpeg/bin/ffmpeg.exe -f concat -safe 0 -i   D:/xampp/htdocs/test/file.txt -c copy D:/xampp/htdocs/test/phpconcatenated.mp4 2>&1"));

    But this code is working only when all videos is with same number of frames/second . and if frames per second are different for each other then it merge videos with only sounds with pause screen .