
Recherche avancée
Autres articles (112)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications 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, parCertains 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, parPré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 reagletonLie 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
andmain_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 OlehI 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) {
 String outputVideoPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/" + Calendar.getInstance().getTimeInMillis() + ".mp4";
 try {
 StringBuilder strCommand = new StringBuilder();

 int size = pathList.size();

 for (int i = 0; i < size; i++) {
 strCommand.append("-framerate 8 -i '")
 .append(pathList.get(i))
 .append("' ");
 }

 strCommand.append("-filter_complex \"");

 for (int i = 0; i < size; i++) {
 strCommand.append("[")
 .append(i)
 .append(":v]setpts=PTS-STARTPTS+1[v")
 .append(i)
 .append("];");
 }


 for (int i = 0; i < size; i++) {
 strCommand.append("[v")
 .append(i)
 .append("]");
 }
 strCommand.append("concat=n=")
 .append(size)
 .append(":v=1:a=0,format=yuv420p\" -r 30 -b:v 4M -preset veryfast '")
 .append(outputVideoPath)
 .append("'");
 
 FFmpegKit.executeAsync(strCommand.toString(), new FFmpegSessionCompleteCallback() {
 @Override
 public void apply(FFmpegSession session) {
 SessionState state = session.getState();
 ReturnCode returnCode = session.getReturnCode();

 // CALLED WHEN SESSION IS EXECUTED
 Log.d("IPRIPR", String.format("FFmpeg process exited with state %s and rc %s.%s", state, returnCode, session.getFailStackTrace()));
 }
 }, new LogCallback() {
 @Override
 public void apply(com.arthenica.ffmpegkit.Log log) {

 // CALLED WHEN SESSION PRINTS LOGS

 }
 }, new StatisticsCallback() {
 @Override
 public void apply(Statistics statistics) {

 }
 });

 } catch (Exception e) {
 }
 }
</string>


-
avfilter/vf_transpose_vulkan : add clock and cclock option
10 décembre 2021, par Wu Jianhuaavfilter/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.264The 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.264The 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.264Signed-off-by : Wu Jianhua <jianhua.wu@intel.com>