
Recherche avancée
Médias (33)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (12436)
-
fftools/cmdutils : extend stream specifiers to match by disposition
15 septembre 2024, par Anton Khirnov -
Extract alpha from video ffmpeg android
24 juin 2018, par Yarik DenisykI want to overlay transparent video on the background image. I have a video where the top half is RGB object and bottom half is an alpha mask.
Now, for making this I do next steps :
1) I am extracting all frames from video and save to the folder
2) Each frame splitting to top and bottom half bitmap
3) Top bitmap composite with bottom mask for extract alpha and get a frame with transparent background
3) I am drawing each frame on the background and save to a folder
4) Create a video using FFmpeg
The problem is step 2, 3 and 4, they very slow. Maybe has another way to overlay transparent video on the background image ?
-
ffmpeg zoompan + crop
24 février 2021, par andykaisI need to pan across a video that is also being cropped by ffmpeg. How can I accomplish this in a single ffmpeg command ?


So far I see two possible options :


Option #1 : use crop variables pan across the video. This is choppy, but possibly fixed by upscaling the input.


ffmpeg -i input.mp4 -vf 'crop=w=in_w/2:h=in_h:x=t*10' crop_panned_output.mp4



Option #2 : create an alpha mask in the shape of the crop, and then apply it on top of the input video with a zoompan filter. ffmpeg is doing extra work in this case, because we have to pad the input, then zoom in on it, then pan across it, then apply the alpha mask. This is actually using the "zoompan" feature to "pan" though.


magick -size 1920x1080 xc:none -fill black -draw "rectangle 480,0 1440,1080" rectangular-alpha-mask.png
ffmpeg -i input.mp4 -i rectangular-alpha-mask.png -filter_complex "
 [0:v]pad=2112:1188,zoompan=z=1.1:px+0.5:d=1:fps=60:s=1920x1080[input_pan];
 [1:v]alphaextract[alf];
 [input_pan][alf]alphamerge[masked];
 color=s=1920x1080:color=red[base];
 [base][masked]overlay=shortest=1
" mask_panned_output.mp4



Are either of these the right way to do it or are they incredibly inefficient ? Is there another option ? Cropping & panning together feels like a fairly common workflow, but these solutions feel a bit hacky.


Here is a visual description of what panning and cropping a video looks like :


First start with a video. Here is a simple one.



I want to crop the video to a certain width/height, and move from the left to the right across the video. The background is colored red for clarity



The video moves from left to right across the original video, and keeps the same crop ratio.