
Recherche avancée
Autres articles (55)
-
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 ;
-
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
Sur d’autres sites (10874)
-
avfilter/af_channelmap : fix mapping if in_channel was a string but out_channel was...
18 mars 2024, par Marton Balintavfilter/af_channelmap : fix mapping if in_channel was a string but out_channel was not specified
In this case in_channel_idx was never set and the default 0 was used.
Suprisingly no one noticed that the respective fate test output was wrong.Signed-off-by : Marton Balint <cus@passwd.hu>
-
lavc/qsvenc : add support for oneVPL string API
29 février 2024, par Mandava, Mounikalavc/qsvenc : add support for oneVPL string API
A new option -qsv_params <str> is added, where <str> is a :-separated
list of key=value parameters.Example :
$ ffmpeg -y -f lavfi -i testsrc -vf "format=nv12" -c:v h264_qsv -qsv_params
"TargetUsage=1:GopPicSize=30:GopRefDist=2:TargetKbps=5000" -f null -Signed-off-by : Mounika Mandava <mounika.mandava@intel.com>
Signed-off-by : Haihao Xiang <haihao.xiang@intel.com> -
Zsh script using formatted date string in FFMPEG command [closed]
1er juillet 2024, par cocoIn my
zsh
script, I am receiving a string that represents a Unix epoch, like :

myTimestamp="1719742786"



I want to change that date into a formatted string, and then store it in a variable so it can be used in an upcoming
ffmpeg
script. I'm doing it this way :

theDate=$(date -u -r "$myTimestamp" "+%b %d, %H:%M:%S")
echo "$theDate"



which prints to my screen what I want :


Jun 30, 06:19:48



but when I try to use this variable in my ffmpeg script, I get errors :


ffmpeg -y -i "$file" -vf \
 "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
 "$output"



Note that if I change out
'$theDate'
in the script (to something like'$myTimestamp'
), I do not get errors.

What I do get, along with
Error initializing filters
, is this (possibly important ?) error :



Both text and text file provided. Please provide only one




Note I am on MacOS v14.5. The
man date
mentionsThe date utility is expected to be compatible with IEEE Std 1003.2 (“POSIX.2”). With the exception of the -u option, all options are extensions to the standard.


My full script :


#!/bin/zsh
outDir="printed"
width=200
height=650
fontSize=95

for file in initial/*.png; do
 filename=$(basename "$file")
 prefix="${filename%.*}"
 theDate=$(date -u -r "$prefix" "+%b %d, %H:%M:%S")
 output="$outDir/$filename"

 echo "$theDate"

 ffmpeg -y -i "$file" -vf \
 "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
 "$output"

done
exit