
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (76)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (7665)
-
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 ?
-
I have installed FFMPEG and can't find it inside a PHP script
14 novembre 2019, par AntopI have installed FFMPeg in CentOS. It works perfectly.
It’s inside /usr/bin directory. Also, I have PHP 7.2.24 that comes with Plesk 18.0.20.I want to use FFMPeg inside a PHP script, but that script can’t find the executable of FFMpeg. I have tried giving the exact route (/usr/bin/ffmpeg) but doesn’t work.
It’s a production server. The same script, in my development server (macOS) works perfectly.
I tried using :
var_dump(getenv('PATH'));
var_dump(exec('which ffmpeg'));
var_dump(ini_get('open_basedir'));
var_dump(is_file(exec('which ffmpeg')));
var_dump(is_executable(exec('which ffmpeg')));And it returns me :
string(49) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
string(0) ""
string(44) "/var/www/vhosts/name-of-the-domain.com/:/tmp/"
bool(false)
bool(false)
NULL¿What could be happening ?
A very strange thing I’ve noticed is that I can’t access any command via php :
I tried using it with echovar_dump(exec('which echo'));
var_dump(is_file(exec('which echo')));
var_dump(is_executable(exec('which echo')));And it returns me :
string(0) ""
bool(false)
bool(false)
NULLAnd the permissions are right :
[root@vps bin]# ls -lha echo
-rwxr-xr-x 1 root root 33K ago 20 08:25 echo
[root@vps bin]# ls -lha ffmpeg
-rwxr-xr-x 1 root root 217K abr 4 2019 ffmpegBut if I make a
var_dump(exec('echo "HELLO"'))
it returns me
string(5) "HELLO"
-
FFmpeg works on command line but not working on PHP script [on hold]
6 août 2014, par burakcakirelHere is the screenshot to compare the results of command line output and PHP script output.
http://screencast.com/t/e8Cdmr6aQ
It works when ffmpeg command runs on command line, but it doesn’t work when using
exec()
command in php script. Any solution ?Also, the following screenshot shows that all about ffmpeg on the server :
http://screencast.com/t/N9TnOORJkx
I’ve tried
/opt/mct/bin/ffmpeg and /usr/local/bin/ffmpeg.
Nothing works on php script.safe_mode => OFF
FFmpeg paths => 755EDIT : FFmpeg command already exists in the screenshot. Anyway here are the commands which none of them don’t work :
/root/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1
/opt/mct/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1
/usr/local/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1