
Recherche avancée
Autres articles (68)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 (7120)
-
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.
-
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]
-
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 ?