
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (101)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (10776)
-
How to create a box shadow effect when overlaying an image on a video using FFmpeg ? [closed]
4 avril 2024, par KataklycmI'm working on a video project where I need to overlay an image on a background video. I've managed to achieve the basic overlay using the following FFmpeg command :


ffmpeg -i background.mp4 -i image_video.mp4 -filter_complex "[0][1]overlay=(W-w)/2:(H-h)/2" -c:v libx264 -crf 23 -preset veryfast output.mp4


This command overlays the image on the background video, centered. However, I would like to add an effect similar to a CSS box shadow, where the overlaid image has a shadow that gradually fades out, giving it a sense of depth.


I've tried various combinations of FFmpeg filters, such as
boxblur
,gblur
, anddrawbox
, but I can't quite achieve the desired effect.

I'm attaching two images to illustrate what I have and what I'm trying to achieve :


- 

- The current result of my FFmpeg command : https://i.imgur.com/3uK79jP.png
- An example of the desired box shadow effect : https://i.imgur.com/KaIq7VI.png






-
FFMPEG : how to overlay a moving PNG with multiply blend effect (overlay filter + blend filter) [closed]
22 avril 2024, par user24565885I tried hunting for all existing questions and couldn't find a match :-(


I have a video and a PNG image that I overlay on top of that. The PNG needs to move across the video (this I have working). But I want the PNG to use a "multiply" blend effect vs. a standard alpha overlay. Whenever I try to apply both filters I get an error.


This code works and moves the image (the last one) across as expected :


ffmpeg -i d6b5ec90-8823-41cf-9b81-3086ce83054a.mp4 -loop 1 -i 593e677d-02bb-49c2-a0c6-c3dd8f8c2f72.png -loop 1 -i 32fea58f-ebe1-447e-b079-06f8ebb9df52.png -loop 1 -i cb7435fb-5aff-4eeb-af2a-22b92c900db6.png -filter_complex "[0]fps=30,scale=3840:3840[o1];[1]fps=30,setpts=PTS+0.000/TB[t_1];[o1][t_1]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:enable='between(t,0.000,5.000)':shortest=1[o2];[2]fps=30,setpts=PTS+1.000/TB[t_2];[o2][t_2]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:enable='between(t,1.000,5.000)':shortest=1[o3];[3]fps=30[t_3];[o3][t_3]overlay='main_w*(1.5+(0-1.5)*max(0,1-(n-1.000*30)/(4.5*30)))':0:enable='between(t,1.000,4.500)':shortest=1" -r 30 -pix_fmt yuv420p -c:a aac -b:a 128k -c:v libx264 -b:v 8000k out.mp4



I now want that last effect to use multiply for blending and that's what I can't figure out. Applying both filters with a comma seems reasonable but bonks (NOTE : the MP4 and all PNGs are 3840x3840 so it's not a size issue)


[o3][t_3]overlay='main_w*(1.5+(0-1.5)*max(0,1-(n-1.000*30)/(4.5*30)))':0:enable='between(t,1.000,4.500)':shortest=1,blend=all_mode='multiply':all_opacity=1



The error I get is "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_10".


I've looked at this one : In FFmpeg, using -filter_complex, how can I overlay and blend at the same time ? but can't quite figure out how I would split, blend, then overlay in my situation where the last input PNG ([3]) needs to blend and move...


Would really appreciate the help if anyone has a solution.


THANKS !


-
Moviepy V2 How do you position a TextClip and apply an effect ?
31 janvier, par BrandonI am trying to refactor my code to use the new Moviepy Version 2.0 and I'm having trouble with .with_position / SlideIn / SlideOut effect.


When I apply the SlideIn effect it seems to override any position I have applied. It there a way to explicitly set the position of a TextClip and apply a SlideIn and SlideOut effect without using nested CompositeVideoClip ?


In the below example the with_position((0,0)) would not be implemented and the position of the TextClip would revert to the default centred position. If I remove the lines .with_effect... then the TextClip would be positioned as expected in the 0,0 location.


Any help would be much appreciated.


from moviepy import *

clips = []
clip = ImageClip("path1.png", duration=3).with_start(0)
clips.append(clip)
title = TextClip("path3.ttf", text="Text...", font_size=80, color="#fff", text_align="center", duration=1,)
title = title.with_start(1).with_position((0,0))
title = title.with_effects([vfx.SlideIn(0.25, "left")])
title = title.with_effects([vfx.SlideOut(0.25, "left")])
clips.append(title)

final_clip = CompositeVideoClip(clips)
final_clip.write_videofile("final_clip.mp4")



*EDIT
To get the expected behaviour I need to use multiple nested CompositeVideoClips but this significantly slows it down. Is there anyway that I can make this code more efficient ?


from moviepy import *

clips = []
clip = ImageClip("path1.png", duration=3).with_start(0)
clips.append(clip)
title = TextClip("path3.ttf", text="Text...", font_size=80, color="#fff", text_align="center", duration=1,)
title = CompositeVideoClip(title.with_effects([vfx.SlideIn(0.25, "left")]))
title = CompositeVideoClip(title.with_effects([vfx.SlideOut(0.25, "left")]))
title = title.with_start(1).with_position((0,0))
clips.append(title)

final_clip = CompositeVideoClip(clips)
final_clip.write_videofile("final_clip.mp4")