
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (19)
-
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 (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
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 (...)
Sur d’autres sites (2061)
-
How can I pass a variable containing spaces as an argument in a bash script ?
8 décembre 2017, par Bill DI am trying to pass a variable containing a filename with spaces as an argument to
ffmpeg
in a bash script, and I am not having success.varToPass="file name with spaces.mp4"
ffmpeg -i "$varToPass" -ss "${array[j]}" -t "${anotherArray[j]}" output.mp4I have tried passing the argument as
"$varToPass"
with double quotes as suggested by this answer and others, but I’m still unable to get it to work.I’ve also tried putting escape characters in the string like this :
varToPass=`echo $varToPass | sed 's/ /\ /'`
But still no luck.
Any suggestions for how this can be done ?
-
ffmpeg getting syntax error when run inside shell script only.. Why ? [duplicate]
10 décembre 2017, par bmck2006This question already has an answer here :
-
Unexpected ’(’ in bash [duplicate]
2 answers
OS : Raspbian
I’m currently working on a bash script that will merge all .AVI videos in the current directory, to one .AVI file. I’ve found the following to work perfectly for me, when run directly in the terminal :
ffmpeg -f concat -safe 0 -i <(find . -name '*.avi' -printf "file '$PWD/%p'\n") -c copy "$(date -d '-1 day' +'%F')".avi
This works perfectly, and I find a new .AVI file listed in the current directory (with a date name from yesterday).
Now, when I add this same command to my script (merge.sh), I get the following output :
/home/pi/Documents/MotionScripts/merge.sh: 11:
/home/pi/Documents/MotionScripts/merge.sh: Syntax error: "(" unexpectedThis is beyond frustrating. And yes, ffmpeg command from earlier is on line 11. The script navigates to the correct directory where the multiple .avi files are stored.
Here is the entire script :
#!/bin/bash
#This script combines multiple AVI files within the current directory, into one long video
cd /media/myBook/Security/yesterday
sudo mv * /home/pi/Videos/tempconversion
cd /home/pi/Videos/tempconversion
ffmpeg -f concat -safe 0 -i <(find . -name '*.avi' -printf "file '$PWD/%p'\n") -c copy "$(date -d '-1 day' +'%F')".avi
sudo mv "$(date -d '-1 day' +'%F')".avi /media/myBook/Security/yesterday
sudo rm -f *Why am I getting the syntax error only when the same command is being issued within an executable script ?
RESOLVED ! Shouldn’t have used ’sh’ to run the script. Make sure the script is executable (sudo chmod +x merge.sh) and run by entering the full path.
-
Unexpected ’(’ in bash [duplicate]
-
When passing arguments with php shell script eval isn't properly executing the script
19 décembre 2017, par Aleksandra LozanovskaThis is the part of my php script :
$result ='ffmpeg -re -i /home/neotel/sample.mp4 -s 320x240 -vf setdar=4:3 -r
25 -c:v libx264 -b:v 2500k -c:a aac -b:a 128k -f mpegts
udp://192.168.88.211:5000'
$FILE1 = escapeshellarg($result);
$output = shell_exec("sh testpetar.sh $FILE1 2>&1");This is my shell script :
#!/usr/bin/env bash
FILE1=$1
FILE2="nohup "
FILE3=" > log.txt"
FILE="$FILE2$FILE1$FILE3"
eval $FILEI am trying to pass the $results strings as the $FILE1 argument and then concatenate it with the strings $FILE2 and $FILE3 to form a whole ffmpeg command and execute it as a script in shell. When i execute it manually through Putty it is working properly, but when i am passing the $results command from php the eval function is not working.