
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (54)
-
MediaSPIP : Modification des droits de création d’objets et de publication définitive
11 novembre 2010, parPar défaut, MediaSPIP permet de créer 5 types d’objets.
Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...) -
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 -
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 (...)
Sur d’autres sites (10217)
-
Reuse value of a filter parameter for another one
26 mars 2023, par Raphaël GoisqueI have this command which draws a text ('First line Second line') on two different lines. Each text has a box drawn around it but they are not the same dimension as the size of the texts differs.


As I want a unique box englobing the two lines, I thought of using the
drawbox
filter. The problem is that I need to know the values of thex
parameter of thedrawtext
filters (i.ex=(main_w-text_w)/2
) in order to set thex
of thedrawbox
filter accordingly... but these value uses the variabletext_w
which is obviously not available from thedrawbox
filter.

So does someone know if we can access the value of a parameter previously set ; or maybe create custom variables that we could reuse elsewhere in the command ?


ffmpeg -y -i video.mp4 -vf /
"drawtext=box=1:boxcolor=white:fontcolor=black: /
text='First line':fontsize=55: /
x=(main_w-text_w)/2:y=main_h*1/6, /
drawtext=box=1:boxcolor=white:fontcolor=black: /
text='Second line':fontsize=55: /
x=(main_w-text_w)/2:y=main_h*1/6+57, /
drawbox=color=white" title.mp4



-
create video with fluctuated background color and drawbox with fluctuated color ?
27 mai 2019, par WangIs there anyway to create a video with fluctuated background color choosing from a list for example
[R, G, B]
the background color along time will be R,G,B,R,G,B .... I might use nullsrc with geq. But seems the geq is quite slow which apply to each pixel.I would also like to change the color of drawbox too, is there any easy way to do it ? I knew we might be able to use openclsrc but it seems overkill for this simple task.
Update, for drawbox I found a way, which is kind of abuse the timeline editing :
ffmpeg -f lavfi -i smptebars=r=30:d=30:size=800x600 -vf "drawbox=enable='eq(mod(n,3),0)':x=0:y=0:t=20:c=red,drawbox=enable='eq(mod(n,3),1)':x=0:y=0:t=20:c=green,drawbox=enable='eq(mod(n,3),2)':x=0:y=0:t=20:c=blue" /tmp/test_box.mp4
-
ffmpeg options that work with Chrome
21 avril 2015, par JamesI am trying to find the magic options that make mp4 work in Chrome. I think my videos were working, but don’t seem to any more after Chrome updated.
Chrome, Version 41.0.2272.101 (Windows)
I tried some other machines and found some of the videos worked on older versions, and my Mac seems to still work on the latest Chrome.
I am using the ffmpeg options to convert from png series,
ffmpeg -framerate 10 -i dance%02d.png -r 10 -pix_fmt yuv420p dance.mp4
Some videos work, some don’t, some work some of the time, or stop half way through.
I tried various other options like,
ffmpeg -start_number 16 -framerate 10 -i dance%02d.png -r 10 -an -s hd720 \
-vcodec libx264 -pix_fmt yuv420p -preset slow -profile:v baseline \
-movflags faststart -y dance.mp4but this just seemed to make things worse.
here is one of the videos,
http://www.botlibre.com/media/a786625.mp4and another one,
http://www.botlibre.com/media/a812450.mp4Firefox seems to work no problem, on any version, grey background though.
IE works fine, white background.
Safari works, grey background.Another thing, they videos used to have white background on older Chrome version, but now are grey, except on Mac still white.
and one more thing. Webm format works, but anyone know the option to remove transparency ? I’m using,
ffmpeg -i dance%02d.png -r 10 -c:v libvpx -crf 10 -b:v 512k -c:a libvorbis dance.webm
just want a solid white background.