
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (79)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7367)
-
Combining two FFMPEG filters into single command
31 mai 2022, par shawnI would like to combine two filters and commands to a single ffmpeg command. What I want to achieve is overlay a static image on the video and draw a 90 degree rotated text as well.


Can anyone help with this ?


ffmpeg -y -i input.mp4 -i line.png -filter_complex "[0:v][1:v] overlay=105:625" -c:a copy output_video.mp4



ffmpeg -y -i input.mp4 -i line.png -filter_complex "color=black:100x100[c];[c][0]scale2ref[ct][mv];[ct]setsar=1,split=2[t1][t2];


[t1]drawtext=fontfile=/Library/Fonts/GenerisSansW01Heavy.ttf:
text=$TITLE:line_spacing=10:fontsize=23:fontcolor=white,split[text1][alpha1];
[text1][alpha1]alphamerge,rotate=270*PI/180:ow=rotw(270*PI/180):oh=roth(270*PI/180):c=black@0[txta1]; 

[t2]drawtext=fontfile=/Library/Fonts/GenerisSansW01Heavy.ttf:
text=$CONTENTS:line_spacing=0.5:fontsize=18:fontcolor=white,split[text2][alpha2];
[text2][alpha2]alphamerge,rotate=270*PI/180:ow=rotw(270*PI/180):oh=roth(270*PI/180):c=black@0[txta2]; 


[mv][txta1]overlay=x='min(0,-H*sin(270*PI/180))+40':y='min(0,W*sin(270*PI/180))+751':shortest=1[mv1]; 
[mv1][txta2]overlay=x='min(0,-H*sin(270*PI/180))+138':y='min(0,W*sin(270*PI/180))+752':shortest=1" -c:a copy output_video.mp4



-
FFMPEG - make a stable & zero-padded frame counter
2 octobre 2020, par L0LockI use FFMPEG to print a frame counter on my videos, but I have two issues :




- 

- The text stutters
- I'd like to have the possibility to have the number zero-padded (I.E. write
001
002
003
instead of1
2
3
).






Code :


@echo off
:again

cd /D %~p1

ffmpeg ^
 -i "%~nx1" ^
 -vf "drawtext=fontfile=arialbd.ttf: text='Frame \: %%{n}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: fontsize=40: box=1: boxcolor=black@0.4: boxborderw=8" ^
 -c:a copy ^
 "%~p1%~n1_framenumbered.mov"
if NOT ["%errorlevel%"]==["0"] goto:error
echo [92m%~n1 Done![0m

shift
if "%~1" == "" goto:end
goto:again

:error

echo [93mThere was an error. Please check your input file or report an issue on github.com/L0Lock/FFmpeg-bat-collection/issues.[0m
pause
exit 0

:end

cls
echo [92mEncoding succesful. This window will close after 10 seconds.[0m
timeout /t 10



Solutions :


- 

- use `text='Frame : %eif:n:d:3' to get the zero-padded frame count (thanks to this answer)
- use a monospace font (courrier new is common on Windows)
- the script was failing to load the font, use the full path instead but without the drive (thanks to this answer) :

- 

- Do :
/Windows/Fonts/courbd.ttf
- Don't
C:/Windows/Fonts/courbd.ttf
nor use\






- Do :








-
How to add text on a video using FFMPEG in android
19 juin 2014, par Divya MotiwalaI am trying to add text to the video but not getting the syntax right.
I am forming the command as a string (given below) :String concatePath = "data/data/"+ this.getPackageName() +"/cache/ffmpeg" + " -y -i " +
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)+"/Camera/wildlife.mp4 -vf " +
"drawtext=fontfile=/system/fonts/DroidSans.ttf\\: text='this' \\:x=(w-text_w)/2\\:y=H-60 \\:fontcolor=white \\:box=1 -y "
+ Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC)+"/test/output_text.mp4";So the command that gets executed is :
data/data/com.example.videomerger/cache/ffmpeg -y -i /storage/emulated/0/DCIM/Camera/wildlife.mp4 -vf drawtext=fontfile=/system/fonts/DroidSans.ttf\: text='this' \:x=(w-text_w)/2\:y=H-60 \:fontcolor=white \:box=1 -y /storage/emulated/0/Music/test/output_text.mp4
It is giving the error :
Unable to find a suitable output format for ’text=’this’’
, text=’this’ : Invalid argumentHow to solve it ?
Update : I could add text to the video but it takes only single words. When i give space for multi words, it considers it as an invalid argument ! How can i add space to it ?