
Recherche avancée
Autres articles (26)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)
Sur d’autres sites (7373)
-
Combining fading text with reencoding video
6 août 2020, par jmrickerI would like to renecode video then put fading text on the resulting video. Both of the parts work seperaetely but when I put them both together I get the error


Filtergraph 'scale=1280:720:force_original_aspect_ratio=decrease,setsar=1:1,pad=1280:720:(ow-iw)/2:(oh-ih)/2' 
was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.




ffmpeg -i inputtest.mp4 -vcodec libx264 -crf 27 -preset veryfast -vf vscale=1280:720:force_original_aspect_ratio=decrease,setsar=1:1,pad=1280:720:(ow-iw)/2:(oh-ih)/2" \
 -filter_complex \
 "color=black@0:100x100,format=yuva444p[c]; [c][0]scale2ref[ct][mv0]; [ct]setsar=1,split=3[t1][t2][t3]; \
 [t1]drawtext=fontfile= Helvetica 400.ttf:text=\'Test1\':fontsize=40:fontcolor=white,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=5:d=1:alpha=1[txta1]; \
 [t2]drawtext=fontfile= Helvetica 400.ttf:text=\'Test2\':fontsize=40:fontcolor=white,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=10:d=1:alpha=1[txta2]; \
 [t3]drawtext=fontfile= Helvetica 400.ttf:text=\'Test3\':fontsize=40:fontcolor=white,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=15:d=1:alpha=1[txta3]; \
 [mv0][txta1]overlay=x=\'100\':y=\'200\':shortest=1[mv1]; \
 [mv1][txta2]overlay=x=\'300\':y=\'200\':shortest=1[mv2]; \
 [mv2][txta3]overlay=x=\'500\':y=\'200\':shortest=1" \
 output.mp4




Any idea of what I can do to make this happen ? If nothing else I can separate the two commands but I thought putting together would make the encoding more efficient.


-
ffmpeg - overlay multiple fading texts with different colors
18 novembre 2017, par Abc123I have problem with this ffmpeg command, it works fine if the fading text is in white font color, but if I change the fontcolor to something else (for example black), the fading text will not appear, any ideas ?
ffmpeg -i ./based_video/480/clip3.mp4 -filter_complex "color=black:100x100[c]; [c][0]scale2ref[ct][mv0]; \
[ct]setsar=1,split=3[t1][t2][t3]; \
[t1]drawtext=fontfile=/usr/share/fonts/truetype/roboto/Roboto-Bold.ttf:text='\$30,000.0':fontsize=40:fontcolor=white,split[text1][alpha1]; \
[text1][alpha1]alphamerge,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=5:d=1:alpha=1[txta1]; \
[t2]drawtext=fontfile=/usr/share/fonts/truetype/roboto/Roboto-Bold.ttf:text='\$30,000.0':fontsize=40:fontcolor=white,split[text2][alpha2]; \
[text2][alpha2]alphamerge,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=5:d=1:alpha=1[txta2]; \
[t3]drawtext=fontfile=/usr/share/fonts/truetype/roboto/Roboto-Bold.ttf:text='\$30,000.0':fontsize=40:fontcolor=white,split[text3][alpha3]; \
[text3][alpha3]alphamerge,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=5:d=1:alpha=1[txta3]; \
[mv0][txta1]overlay=x='100':y='200':shortest=1[mv1]; \
[mv1][txta2]overlay=x='300':y='200':shortest=1[mv2]; \
[mv2][txta3]overlay=x='500':y='200':shortest=1" \
-c:v libx264 -c:a copy ./output_video/testnew-clip3-output.mp4full log is here :
https://docs.google.com/document/d/1y9Dnn0Df75J8P_hZ6LjHTX2dk-8z97UnTjlX8dnc0v0/edit?usp=sharingThanks in advance
-
Add text to video using FFMPEG
29 décembre 2023, par DexterI have a mp4 vertical video and I would like to add a text in center top of it. I read several things and found out 2 ways to do it (with and without font file).


ffmpeg -i .mp4 -vf "drawtext=text=’Stack Overflow’:fontcolor=white:x=100:y=100:font=Arial" -codec:a copy .mp4

ffmpeg -i .mp4 -vf "drawtext=fontfile='.ttf':text='Stack Overflow':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" -codec:a copy .mp4



They both work for other people but when I'm trying to do it so I do have an error.


Fontconfig error: Cannot load default config file: No such file: (null)



And that is even if with the without font file method.


Do someone have a solution for this error ?