Recherche avancée

Médias (0)

Mot : - Tags -/logo

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

Autres articles (112)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (15633)

  • Add a scaled watermark to a video using ffmpeg

    28 mars 2014, par reagleton

    Lie a few others I'm trying to watermark a video with an image (see FFmpeg - How to scale a video then apply a watermark ?). Oh, and I'm transcoding the format too.

    The difference is I want my image to be the exact same size as the video. I need to do this as a filter chain because each video is a different size and I'm using a single watermark image. Furthermore, the server it has to run on has an older version of ffmpeg so it doesn't recognise the -filter_complex option.

    So far, I've gotten as far as

    ffmpeg -y -i input_video.mov -vcodec libx264 -vf "movie=watermark.png [watermark]; [watermark] scale=main_w:main_h [scaled_watermark]; [in][scaled_watermark] overlay=0:0 [out]" output_video.m4v

    The problem is that the main_w and main_h constants only seem to be recognised in the overlay filter graph and not in the scale filter graph.

    So how do I find out the width and height of input_video.mov so that I can scale the watermark correctly ?

  • How do I add text and watermark to each image using FFmpeg ?

    14 novembre 2023, par Oleh

    I wrote a small code that converts several images to video using com.arthenica:ffmpeg-kit-full:6.0-2 and everything works, but I need to add text to each image and place a watermarked photo on it and I can't implement it. Could you please help me with this ?

    


    Here is the code that converts an array of images into a video :

    


    public void ImagesToVideo(ArrayList<string> pathList) {&#xA;        String outputVideoPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) &#x2B; "/" &#x2B; Calendar.getInstance().getTimeInMillis() &#x2B; ".mp4";&#xA;        try {&#xA;            StringBuilder strCommand = new StringBuilder();&#xA;&#xA;            int size = pathList.size();&#xA;&#xA;            for (int i = 0; i &lt; size; i&#x2B;&#x2B;) {&#xA;                strCommand.append("-framerate 8 -i &#x27;")&#xA;                        .append(pathList.get(i))&#xA;                        .append("&#x27; ");&#xA;            }&#xA;&#xA;            strCommand.append("-filter_complex \"");&#xA;&#xA;            for (int i = 0; i &lt; size; i&#x2B;&#x2B;) {&#xA;                strCommand.append("[")&#xA;                        .append(i)&#xA;                        .append(":v]setpts=PTS-STARTPTS&#x2B;1[v")&#xA;                        .append(i)&#xA;                        .append("];");&#xA;            }&#xA;&#xA;&#xA;            for (int i = 0; i &lt; size; i&#x2B;&#x2B;) {&#xA;                strCommand.append("[v")&#xA;                        .append(i)&#xA;                        .append("]");&#xA;            }&#xA;            strCommand.append("concat=n=")&#xA;                    .append(size)&#xA;                    .append(":v=1:a=0,format=yuv420p\" -r 30 -b:v 4M -preset veryfast &#x27;")&#xA;                    .append(outputVideoPath)&#xA;                    .append("&#x27;");&#xA;            &#xA;            FFmpegKit.executeAsync(strCommand.toString(), new FFmpegSessionCompleteCallback() {&#xA;                @Override&#xA;                public void apply(FFmpegSession session) {&#xA;                    SessionState state = session.getState();&#xA;                    ReturnCode returnCode = session.getReturnCode();&#xA;&#xA;                    // CALLED WHEN SESSION IS EXECUTED&#xA;                    Log.d("IPRIPR", String.format("FFmpeg process exited with state %s and rc %s.%s", state, returnCode, session.getFailStackTrace()));&#xA;                }&#xA;            }, new LogCallback() {&#xA;                @Override&#xA;                public void apply(com.arthenica.ffmpegkit.Log log) {&#xA;&#xA;                    // CALLED WHEN SESSION PRINTS LOGS&#xA;&#xA;                }&#xA;            }, new StatisticsCallback() {&#xA;                @Override&#xA;                public void apply(Statistics statistics) {&#xA;&#xA;                }&#xA;            });&#xA;&#xA;        } catch (Exception e) {&#xA;        }&#xA;    }&#xA;</string>

    &#xA;

  • avfilter/vf_transpose_vulkan : add clock and cclock option

    10 décembre 2021, par Wu Jianhua
    avfilter/vf_transpose_vulkan : add clock and cclock option
    

    The following command is on how to apply cclock option :

    ffmpeg -init_hw_device vulkan -i input.264 -vf \
    hwupload=extra_hw_frames=16,transpose_vulkan=dir=cclock,hwdownload,format=yuv420p \
    output.264

    The following command is on how to apply clock_flip option :

    ffmpeg -init_hw_device vulkan -i input.264 -vf \
    hwupload=extra_hw_frames=16,transpose_vulkan=dir=clock_flip,hwdownload,format=yuv420p \
    output.264

    The following command is on how to apply clock option :

    ffmpeg -init_hw_device vulkan -i input.264 -vf \
    hwupload=extra_hw_frames=16,transpose_vulkan=dir=clock,hwdownload,format=yuv420p \
    output.264

    Signed-off-by : Wu Jianhua <jianhua.wu@intel.com>

    • [DH] libavfilter/vf_transpose_vulkan.c