
Recherche avancée
Autres articles (86)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (12383)
-
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
-
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.


-
Does exists other way of indenting ffmpeg batch script ?
22 mars 2021, par Toni Cambronero GarciaHow can I indent code in a Batch script other than using temporal variables %= =% ?
This is the only code that works for me with indentation.


::2020-12-31 10:43:40
@ECHO OFF
::SET VIDEO="E:\Vídeos\test.mp4"
SET VIDEO=%1
SET /P TITULO=Introduzca el título del vídeo: 
ffmpeg ^
 -y ^
 -loglevel verbose ^
 -i %VIDEO% ^
 -vf ^
 scale=^
%= =%width=-2:^
%= =%height=360,^
%= =%drawtext=^
%= =%fontfile='C\:/Windows/Fonts/impact.ttf':^
%= =%text=%TITULO%:^
%= =%fontcolor=white:^
%= =%borderw=1:^
%= =%fontsize=18:^
%= =%alpha=0.99:^
%= =%x=(w-tw)/2:^
%= =%y=th/4:^
%= =%expansion=none,^
%= =%drawtext=^
%= =%fontfile='C\:/Windows/Fonts/arial.ttf':^
%= =%text='WATERMARK':^
%= =%fontcolor=white:^
%= =%borderw=1:^
%= =%fontsize=18:^
%= =%alpha=0.60:^
%= =%x=w-tw-10:^
%= =%y=h-th-10:^
%= =%expansion=none^
 -map 0:v ^
 -map 0:a? ^
 -c:v h264 ^
 -crf 30 ^
 -c:a aac ^
 -q:a 1 ^
 -ac 1 ^
 %VIDEO:~0,-5%_WATERMARK.mp4



If I try to use spaces or tabs in the "-vf" section ffmpeg interprets them as the end of the filter and the start of the output file argument .