
Recherche avancée
Autres articles (79)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Les images
15 mai 2013
Sur d’autres sites (9082)
-
How to append new images into a video file which already exists using ffmepg
28 juin 2014, par user3786605Is there any way to append new images into a video file using FFMpeg command line ?
Thanks in advance,
-
Crossfade Animation with multiple Images using Ffmpeg
15 avril 2022, par Vivek ThummarI'm creating video with Multiple images using Ffmpeg and i'm using given link -


(Remember most important thing is All the images have different sizes)


https://superuser.com/a/834035/1243959


Now First of all i'm creating video with fade in/out animation and for that i'm using 3rd code with title
For input images with varying or arbitrary sizes
and it works well -

ffmpeg \
-loop 1 -t 5 -i input0.png \
-loop 1 -t 5 -i input1.png \
-loop 1 -t 5 -i input2.png \
-loop 1 -t 5 -i input3.png \
-loop 1 -t 5 -i input4.png \
-filter_complex \
"[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=out:st=4:d=1[v0]; \
 [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1]; \
 [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2]; \
 [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v3]; \
 [4:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v4]; \
 [v0][v1][v2][v3][v4]concat=n=5:v=1:a=0,format=yuv420p[v]" -map "[v]" out.mp4



but when i want to create Cross Fade animation using given command with the title
MP4 output
inCross fade
section,in output video,portrait images are fits into video,but square and landscape images are getting cropped (@llogan has specified that if images have different sizes than we have to use same command which is used for fade in/out) -

ffmpeg \
-loop 1 -t 5 -i 1.png \
-loop 1 -t 5 -i 2.png \
-loop 1 -t 5 -i 3.png \
-loop 1 -t 5 -i 4.png \
-loop 1 -t 5 -i 5.png \
-filter_complex \
"[1]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+4/TB[f0]; \
 [2]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+8/TB[f1]; \
 [3]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+12/TB[f2]; \
 [4]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+16/TB[f3]; \
 [0][f0]overlay[bg1];[bg1][f1]overlay[bg2];[bg2][f2]overlay[bg3]; \
 [bg3][f3]overlay,format=yuv420p[v]" -map "[v]" -movflags +faststart out.mp4



But I don't know exactly what to do and I think I have to first fit the images in a certain ratio like
1280 * 720
, by which all the images will be of same size and then the animation should be applied to those images and may be different solution can work too but right now I'm confused about what to do because I've tried a lot of solutions like scaling images and some other attempts and not a single solution worked (maybe I didn't even try right)..

if
SAR
andDAR
can help than they are as below
(I don't know difference between these variables) :

SAR 1:1 / DAR 197:295
SAR 1:1 / DAR 2:3
SAR 96:96 / DAR 16:9
SAR 1:1 DAR / 540:961
SAR 1:1 DAR / 2567:3113



Any help will be appreciated..Thank you !


-
Anomalie #3095 (Nouveau) : Le filtre |image_renforcement ne préserve pas la transparence des images
15 novembre 2013, par charles razackLe filtre image_renforcement applatit les images PNG transparentes, et ce quelque soit la méthode de fabrication de vignette utilisée.
Testé avec SPIP 3.0.13, PHP 5.4.9, Imagick 3.1.0