
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 (69)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6513)
-
Using `grab_frame` with `FFMpegFileWriter` Yields Error in the Figure Argument to Subprocess
7 juillet 2024, par GPU ProgrammerI want to generate an MP4 file using frames produced by a rather complicated simulation. If I have to watch the movie as a side affect of generating it I will not complain too much, but would rather not "show" anything on the screen. The overhead of making the movie is trivial compared to the simulations, so I care much more about clean simple code than about performance.


It seemed natural to use
grab_frame
withFFMpegFileWriter
. The following code seemed right.

fig, ax = plot.subplots(figsize=(6.5, 6.5))

assert(animation.FFMpegFileWriter().isAvailable())
writer = animation.FFMpegFileWriter(fig)
writer.setup(fig, "test1.mp4",224)

with writer.saving(fig,"test1.mp4", dpi=224):
 for i in range(len(frameSeg)):
 PlotFrame(i)
 writer.grab_frame()

# writer.finish()

print("done")



It runs, but yeilds the following error




[image2 demuxer @ 0000021fab8c1000] Unable to parse option value "Figure(650x650)" as video rate
[image2 demuxer @ 0000021fab8c1000] Error setting option framerate to value Figure(650x650).
[in#0 @ 0000021fab8c1e00] Error opening input : Invalid argument
Error opening input file ... AppData\Local\Temp\tmpe19ci2wz\tmp%07d.png.
Error opening input files : Invalid argument






subprocess.CalledProcessError : Command '['ffmpeg', '-framerate', 'Figure(650x650)', '-i', 'F :\Users\Kenne.DESKTOP-BT6VROU\AppData\Local\Temp\tmpe19ci2wz\tmp%07d.png', '-loglevel', 'error', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-y', 'test1.mp4']' returned non-zero exit status 4294967274.




Did I miss something in
setup
, is it an installation problem, or is it a bug ?

By the way using
FFMpegWRiter
withFuncAnimation
works ...

-
FFmpeg - add an animated gif (cropped by mask) to the video
11 mars 2021, par zeromoduleI have 3 inputs :


- 

- Video file : https://file.io/6jtUlnZ7TGmT
- Animated GIF with transparent background https://i.imgur.com/Vo3KHZm.gif
- Mask file (BW) the same resolution as the video https://i.imgur.com/YJXUUrZ.png








I want to put the image on the video, but throw out all GIF pixels that are transparent in the mask (replace them with transparent ones).









My current command, without masking (it works fine) :


ffmpeg -i input.mp4 -ignore_loop 0 -i animation.gif \
-filter_complex "[1]scale=700x700[scaled_gif];\
[0][scaled_gif]overlay=50:30:shortest=1" \
-codec:a copy output.mp4



UPDATE #1


I managed to get closer to my goal with this command :


ffmpeg -y -i input.mp4 -loop 1 -i mask.png \ 
-filter_complex "[1:v]alphaextract[mask]; \
movie=animation.gif,scale=1920x1080[scaled_gif]; \
[scaled_gif][mask]alphamerge[masked]; \
[0:v][masked]overlay=0:0" \
-c:a copy output_masked.mp4



but it has 2 problems :


- 

- GIF loses it's transparency. Transparent pixels become white.
- GIF plays only once (i.e. no loop)






Output : https://file.re/2021/03/11/outputmasked/


-
ffmpeg need perfect pixels for LED processing (h264, mpeg 1, 2)
24 avril 2018, par Shawn Faherty