Recherche avancée

Médias (91)

Autres articles (96)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Les sons

    15 mai 2013, par
  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (6453)

  • FFMPEG Add watermark to MP4

    5 décembre 2019, par Junaid Farooq

    I have this command to add watermark to an mp4

    ffmpeg -i junai-blvaz.mp4 -i evercam-logo-white.png -filter_complex "[1]scale=iw/2:-1[wm];[0][wm]overlay=x=main_w-overlay_w-10:y=main_h-overlay_h-10" -codec:a copy output.mp4

    But I am creating the video using

    ffmpeg -r 6 -i /tmp/%d.jpg -c:v h264_nvenc -r 6 -preset slow -bufsize 1000k -pix_fmt yuv420p -y junai-blvaz.mp4

    Is there any way to merge this command of adding watermark

    -i evercam-logo-white.png -filter_complex '[1]scale=iw/2:-1[wm];[0][wm]overlay=x=main_w-overlay_w-10:y=main_h-overlay_h-10'

    to the very first command through which mp4 video has been created ?

  • How to insert images and text in video with ffmpeg - java

    4 février 2017, par MaF
    String[] code = new String[]{"ffmpeg", "-i","D:/ffmpeg/20170201_164127.mp4",

               "-i","D:/ffmpeg/cc.png", "-filter_complex",

               "[0:v][1:v]overlay=main_w-overlay_w-5:main_h-overlay_h-5",
               "drawtext=fontfile=/ffmpeg/Arial.ttf:text='TESTING'fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10",

               "[out]","-map", "[out]", "-map", "2:0",
               "-acodec","mp3", "D:/ffmpeg/test7.mp4"};



               Process processDuration = new ProcessBuilder(code).redirectErrorStream(true).start();

               StringBuilder strBuild = new StringBuilder();

               try (BufferedReader processOutputReader = new BufferedReader(new InputStreamReader(processDuration.getInputStream(), Charset.defaultCharset()));) {

                   String line;

                   while ((line = processOutputReader.readLine()) != null) {

                       strBuild.append(line + System.lineSeparator());

                   }

                   processDuration.waitFor();

               }

               String outputJson = strBuild.toString().trim();

               System.out.println(outputJson);

               }

    When i use only images the code is correctly. But when I use all the code this happens :

    [NULL @ 00000000006abe60] Unable to find a suitable output format for
    ’drawtext=fontfile=/ffmpeg/Arial.ttf:text=’TESTING’fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10’
    drawtext=fontfile=/ffmpeg/Arial.ttf:text=’TESTING’fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10 :
    Invalid argument

  • How to fix "Cannot find a valid font for the family Sans' while adding text on image using react-native-ffmpeg

    13 mai 2024, par coffee

    I am trying to add text on image using the code below
RNFFmpeg
.execute(`-y -i ${input} -vf "drawtext=text='Hello World':fontcolor=white:fontsize=75:x=0:y=0" ${output}`) ;

    


    I am not using any custom font but still get this error.

    


    Error :

    


    [Parsed_drawtext_0 @ 0x7f87a1ce40] Cannot find a valid font for the family Sans

    


    index.js:115 [AVFilterGraph @ 0x7f6765e760] Error initializing filter 'drawtext'
index.js:115 [AVFilterGraph @ 0x7f6765e760] with args 'text=Hello World:fontcolor=white:fontsize=75:x=0:y=0'
index.js:115 [AVFilterGraph @ 0x7f6765e760]

    


    index.js:115 Error reinitializing filters !

    


    index.js:115 Failed to inject frame into filter network : No such file or directory

    


    index.js:115 Error while processing the decoded data for stream #0:0

    


    Note :

    


    I also tried using a custom font but not able to do it.
When I use RNFFmpegConfig.setFontDirectory('../../assets/fonts') function and with it the following code to add text on image
RNFFmpeg
.execute(`-y -i ${input} -vf "drawtext=text='Hello World':fontfile='../../assets/fonts/MyFont.ttf':fontcolor=white:fontsize=75:x=0:y=0" ${output}`) ;

    


    It gives me the same error.

    


    How can I fix this issue.