
Recherche avancée
Autres articles (55)
-
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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (11790)
-
FFMMEP Trim video then add watermark with multiple text
20 novembre 2016, par Iura GaiturI want to trim a video then convert a video using FFMPEG and place a watermark with multiple texts on it. I have commands for trimming :
ffmpeg -i 1.mp4 -ss 00:00:03 -t 00:00:08 -async 1 -c copy output1.mp4
and for watermark with text placing
ffmpeg -i 1.mp4 -i watermark_small.png -filter_complex "[0:v][1:v]overlay=10:10, drawtext=enable='between(t,0,12)':fontfile=font.ttf:text='Some text' : fontcolor=black: fontsize=18: box=1: boxcolor=yellow@0.5:boxborderw=5: x=(w-text_w)/1.15:y=30, drawtext=enable='between(t,14,22)':fontfile=font.ttf:text='Next text' : fontcolor=black: fontsize=18: box=1: boxcolor=yellow@0.5:boxborderw=5: x=(w-text_w)/1.15:y=30" -codec:v libx264 -preset ultrafast output1.mp4
Can someone help me to combine them together ?
-
ffmpeg How to add multiple drawtext to one input video
22 mai 2018, par RavenI need to add two texts to a video. First text appears in the bottom right for the first 6 seconds, and the second text at the center of the video for the last 3 seconds.
Below is my code :
ffmpeg -i input.mp4 -vf drawtext="text='Stack Overflow': fontcolor=white: borderw=2: fontfile=Arial Black: fontsize=w*0.04: x=(w-text_w)-(w*0.04): y=(h-text_h)-(w*0.04): enable='between(t,0,6)'", -vf drawtext="text='Stack Overflow': fontcolor=white: borderw=2: fontfile=Arial Black: fontsize=w*0.04: x=(w-text_w)/2: y=(h-text_h)/2: enable='between(t,7,10)'" -codec:a copy output2.mp4
I don’t get any error running the above code but in the output file, only the second drawtext is applied.
-
Concatenate multiple Genrated Output Video files using single command [closed]
20 septembre 2024, par Vinesh Chauhani am trying to Build a FFMPEG command that accept 4 input Videos and generate the output video with 2x2 Grid also play all those video one after another one. so Archive this I have pass lavfi 4 inputs with duration with size. then I have passed 4 input videos. then I have first generate thumbnail of those videos, so what I am gonna do is I place first video and second thumbnail in hstack, third thumbnail and fourth thumbnail in hstack the both hstack output in vstack. i will do it this 4 times for all videos respectively and then lastly I am trying to contact all those video in one. but I am getting overflow buffer warnings (as shown in image 1). and also getting not a proper video output(as link 1). then I try to create 4 videos using map to test whether its a stack issue or not so I have successfully create 4 videos and its working fine as expect but in 4 output files. i want it in one and also I want it in one command execution I don't want to execute multiple command for this.


the code that generate 4 output videos with is working fine


ffmpeg -y -f lavfi -t 00:00:37.000 -i color=black:s=360x360 -f lavfi -t 00:01:15.000 -i color=black:s=360x360 -f lavfi -t 00:00:14.000 -i color=black:s=360x360 -f lavfi -t 00:00:50.000 -i color=black:s=360x360 -i instagram_1.mp4 -i instagram_2.mp4 -i instagram_3.mp4 -i instagram_4.mp4 -filter_complex "[4:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_1];[5:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_2];[6:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_3];[7:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_4];[4:v]scale=-2:360:force_original_aspect_ratio=decrease[sc1];[0:v][sc1]overlay=(W-w)/2:(H-h)/2[ovv1];[5:v]scale=-2:360:force_original_aspect_ratio=decrease[sc2];[1:v][sc2]overlay=(W-w)/2:(H-h)/2[ovv2];[6:v]scale=-2:360:force_original_aspect_ratio=decrease[sc3];[2:v][sc3]overlay=(W-w)/2:(H-h)/2[ovv3];[7:v]scale=-2:360:force_original_aspect_ratio=decrease[sc4];[3:v][sc4]overlay=(W-w)/2:(H-h)/2[ovv4];[0:v][thumb_1]overlay=(W-w)/2:(H-h)/2[ov1];[1:v][thumb_2]overlay=(W-w)/2:(H-h)/2[ov2];[2:v][thumb_3]overlay=(W-w)/2:(H-h)/2[ov3];[3:v][thumb_4]overlay=(W-w)/2:(H-h)/2[ov4];[ov1][ov2]hstack[hs1];[ov3][ov4]hstack[hs2];[hs1][hs2]vstack[vs1];[vs1]split=4[vss1][vss2][vss3][vss4];[vss1][ovv1]overlay=0:0[final1];[vss2][ovv2]overlay=w:0[final2];[vss3][ovv3]overlay=0:h[final3];[vss4][ovv4]overlay=w:h[final4]" -map "[final1]" -t 00:00:37.000 outPut1.mp4 -map "[final2]" -t 00:01:15.000 outPut2.mp4 -map "[final3]" -t 00:00:14.000 outPut3.mp4 -map "[final4]" -t 00:00:50.000 outPut4.mp4 



the command I am getting problem


ffmpeg -y -f lavfi -t 00:00:37.000 -i color=black:s=360x360 -f lavfi -t 00:01:15.000 -i color=black:s=360x360 -f lavfi -t 00:00:14.000 -i color=black:s=360x360 -f lavfi -t 00:00:50.000 -i color=black:s=360x360 -i instagram_1.mp4 -i instagram_2.mp4 -i instagram_3.mp4 -i instagram_4.mp4 -filter_complex "[4:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_1];[5:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_2];[6:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_3];[7:v]select='eq(n\,0)',scale=-2:360:force_original_aspect_ratio=decrease[thumb_4];[4:v]scale=-2:360:force_original_aspect_ratio=decrease[sc1];[0:v][sc1]overlay=(W-w)/2:(H-h)/2[ovv1];[5:v]scale=-2:360:force_original_aspect_ratio=decrease[sc2];[1:v][sc2]overlay=(W-w)/2:(H-h)/2[ovv2];[6:v]scale=-2:360:force_original_aspect_ratio=decrease[sc3];[2:v][sc3]overlay=(W-w)/2:(H-h)/2[ovv3];[7:v]scale=-2:360:force_original_aspect_ratio=decrease[sc4];[3:v][sc4]overlay=(W-w)/2:(H-h)/2[ovv4];[0:v][thumb_1]overlay=(W-w)/2:(H-h)/2[ov1];[1:v][thumb_2]overlay=(W-w)/2:(H-h)/2[ov2];[2:v][thumb_3]overlay=(W-w)/2:(H-h)/2[ov3];[3:v][thumb_4]overlay=(W-w)/2:(H-h)/2[ov4];[ov1][ov2]hstack[hs1];[ov3][ov4]hstack[hs2];[hs1][hs2]vstack[vs1];[vs1]split=4[vss1][vss2][vss3][vss4];[vss1][ovv1]overlay=0:0[final1];[vss2][ovv2]overlay=w:0[final2];[vss3][ovv3]overlay=0:h[final3];[vss4][ovv4]overlay=w:h[final4];[final1][final2][final3][final4]concat=n=4:v=1:a=0[final]" -map "[final]" -t 00:02:56.000 outPutIMagesFinaLCheck.mp4 



Link 1(output video that has issue)
https://zippyshare.day/c0vhq9MvIMUTb8i/file