
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (93)
-
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 sons
15 mai 2013, par -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (6077)
-
Overlay timelapse video on solid background colour using ffmpeg
13 septembre 2020, par hamchapmanI've got a load of screenshots of a homepage that are named
homescreen000001.png
,homescreen000002.png
, etc and I'm trying to create a time-lapse video of these images using ffmpeg.


I've got it working in general when I run the following :



ffmpeg -f image2 \
 -i ~/Desktop/homescreen%06d.png \
 -r 0.5 \
 -s 1440x900 \ 
 -b:v 1M \
 -vcodec libx264 \ 
 -pix_fmt yuv420p \
 ~/Desktop/timelapse.mp4




However, it turns out that some of the images have transparent backgrounds so the background is showing up as black on those images.



I'd like a white background so I've been trying to set that up using ffmpeg as follows :



ffmpeg -f image2 \
 -loop 1 \
 -i ~/Desktop/whitebg.png \
 -i ~/Desktop/homescreen%06d.png \
 -filter_complex overlay \ 
 -r 0.5 \
 -s 1440x900 \ 
 -b:v 1M \
 -vcodec libx264 \ 
 -pix_fmt yuv420p \
 ~/Desktop/timelapse.mp4




Here
whitebg.png
is 2px x 2px png with a white background, and that's it.


This ffmpeg command produces a really tiny (in file size) video that's just a white background.



Can anyone explain how I can overlay the images as a time-lapse video over a white background using ffmpeg ?


-
Overlay timelapse video on solid background colour using ffmpeg
28 juillet 2014, par hamchapmanI’ve got a load of screenshots of a homepage that are named
homescreen000001.png
,homescreen000002.png
, etc and I’m trying to create a time-lapse video of these images using ffmpeg.I’ve got it working in general when I run the following :
ffmpeg -f image2 \
-i ~/Desktop/homescreen%06d.png \
-r 0.5 \
-s 1440x900 \
-b:v 1M \
-vcodec libx264 \
-pix_fmt yuv420p \
~/Desktop/timelapse.mp4However, it turns out that some of the images have transparent backgrounds so the background is showing up as black on those images.
I’d like a white background so I’ve been trying to set that up using ffmpeg as follows :
ffmpeg -f image2 \
-loop 1 \
-i ~/Desktop/whitebg.png \
-i ~/Desktop/homescreen%06d.png \
-filter_complex overlay \
-r 0.5 \
-s 1440x900 \
-b:v 1M \
-vcodec libx264 \
-pix_fmt yuv420p \
~/Desktop/timelapse.mp4Here
whitebg.png
is 2px x 2px png with a white background, and that’s it.This ffmpeg command produces a really tiny (in file size) video that’s just a white background.
Can anyone explain how I can overlay the images as a time-lapse video over a white background using ffmpeg ?
-
ffmpeg - filter_complex list too long
2 mars 2016, par BaumiLet’s say I want to overlay a clock in the video using special font, color, etc to video that is aprox 30 min long. I end up with command :
ffmpeg -y -i in.mp4 -filter_complex "
[0:v]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:00':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,0,7)'[tmp];
[tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:01':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,7,8)'[tmp];
[tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:02':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,8,9)'[tmp];
[tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:03':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,9,10)'[tmp];
[tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:04':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,10,11)'[tmp];
......."
-map "[tmp]" -map 0:a -acodec copy -c:v h264 out.mp4This clock is not the only overlay I have so finally I have end up with command 216kB long but this I cannot even run in bash because of argument list being too long.
I wanted to re-encode the video only once. Is there any other way I can do that ?
Thanks !