
Recherche avancée
Autres articles (43)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (3993)
-
I want live stream 1 folder on youtube by ffmpeg
19 octobre 2017, par Duy HoàngI have code for live any video, but I don’t know how to live 1 folder have several videos.
ffmpeg -re -stream_loop -1 -i "1.mp4" -vcodec libx264 -preset veryfast -maxrate 2000k -bufsize 1000k -vf “scale=1280:720,format=yuv420p” -g 50 -acodec libmp3lame -b:a 128k -ac 2 -ar 44100 -f flv rtmp://a.rtmp.youtube.com/live2/*****
-
How to fix "Cannot find a valid font for the family Sans' while adding text on image using react-native-ffmpeg
13 mai 2024, par coffeeI am trying to add text on image using the code below
RNFFmpeg
.execute(
`-y -i ${input} -vf "drawtext=text='Hello World':fontcolor=white:fontsize=75:x=0:y=0" ${output}`
) ;

I am not using any custom font but still get this error.


Error :


[Parsed_drawtext_0 @ 0x7f87a1ce40] Cannot find a valid font for the family Sans


index.js:115 [AVFilterGraph @ 0x7f6765e760] Error initializing filter 'drawtext'
index.js:115 [AVFilterGraph @ 0x7f6765e760] with args 'text=Hello World:fontcolor=white:fontsize=75:x=0:y=0'
index.js:115 [AVFilterGraph @ 0x7f6765e760]


index.js:115 Error reinitializing filters !


index.js:115 Failed to inject frame into filter network : No such file or directory


index.js:115 Error while processing the decoded data for stream #0:0


Note :


I also tried using a custom font but not able to do it.
When I use RNFFmpegConfig.setFontDirectory('../../assets/fonts') function and with it the following code to add text on image
RNFFmpeg
.execute(
`-y -i ${input} -vf "drawtext=text='Hello World':fontfile='../../assets/fonts/MyFont.ttf':fontcolor=white:fontsize=75:x=0:y=0" ${output}`
) ;

It gives me the same error.


How can I fix this issue.


-
: and - characters not showing when applying drawtext
6 mars 2019, par SPYBUG96I am trying to get the characters ’-’ and ’ :’ to show up when I draw text on an image so I can have the date and time show up properly formatted. When I run the python code and all that to set up the text it is exactly how I want it, I printed it to the screen. When the command is run though, the date and time don’t show, at least when I try drawing this :
2018-12-12 T03:20:40
What shows up on the image is12 T
This is an example of the ’ :’ and ’-’ characters having a problem
ffmpeg -y -i TifImageLoc -vf vflip,drawtext=fontfile=C:WINDOWS\Fonts\sserife.fon:fontsize=200:fontcolor=white:x=(w-text_w)/2:y=(h-texth-texth)/2:text="Hello\-\ \:World" -frranes:v 1 output1.tif
When this is run I want the result of
Hello- :World
to be drawn on the image, but the actual result isHello
perfectly centered on the pictureHow do you draw the ’-’ and ’ :’ to an image using FFmpeg so that a date in this
2018-12-12 T03:20:40
format can be on the image ?