
Recherche avancée
Autres articles (46)
-
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 (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (5120)
-
Bash Script using formatted date string in FFMPEG command
30 juin 2024, par cocoIn my
bash
(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




-
Running FFMPEG from Shell Script /bin/sh
19 octobre 2015, par Chris James ChampeauI am trying to setup a Shell Script to work within an automator watch folder...
Everything works with the exception of the Run Shell Scrip portion...
Essentially when a file shows up in the watch folder, it runs the shell scrip which calls FFMPEG and then will move the file to an archive folder for safe keeping. However right now automator is telling me everything worked but now file is being created.
I have the Shell set to /bin/sh and Pass input set to as arguments
Here is my script :
for f in "$@"
do
name=$(basename "$f")
dir=$(dirname "$f")
ffmpeg -i "$f" -b 250k -strict experimental -deinterlace -vcodec h264 -acodec aac "$dir/mp4/${name%.*}.mp4"
echo "$dir/mp4/${name%.*}.mp4"
doneit does echo the correct filename, but does not actually run ffmpeg
I have tried adding
-exec
before it like I have seen in some scripts but still nothing... -
Shell script not working on a different server
11 novembre 2013, par Alex BlundellI've just migrated a shell script to another server with similar specs (same CentOS version) but the following command seems to fail :
find /home/removed/captures -name '*.avi' -exec ffmpeg -y -i {} -ab 1280 -b 1024000 {}.mp4 \;
The following message gets returned :
find: `ffmpeg': No such file or directory
I have installed ffmpeg, and made sure it runs from the command line. I've also tried passing in the full path to ffmpeg instead of just 'ffmpeg'. Both ffmpeg versions are the same on each server. I was thinking it was something to do with syntax of the find program changing between versions, but they're both the same version too. This runs via the root crontab.
The script does run by itself though if I call it directly. Could this be an issue with permissions ? It runs on a cPanel server.
Thanks :)