
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (76)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...)
Sur d’autres sites (8063)
-
Shell script works fine from shell but doesn’t work as expected when executed via PHP “shell_exec” code
9 décembre 2019, par Eric FeillantThis record.sh script shell is here and works fine on command line to record an MP4 file from a local flv live stream :
DATE=`date +"%d-%m-%Y-%T"`
if [ -s NAMESTREAM ]
then
cat config.php | dos2unix | grep auth | grep username | \
awk -F ' ' '{print $3}' | sed "s/'//g" | sed "s/;//g" | while read VAR
do echo $VAR > RECSTREAM
echo "Starting recording ..."
ffmpeg -i "rtmp://localhost/hls/$VAR" -crf 19 videos/"$VAR"_"$DATE".mp4
done
else
echo "Streaming is not started, please start it before"
fiI send a shell_exec to call the last shell script in a php script like this :
$old_path = getcwd();
chdir('/usr/local/nginx/html/mydir');
$output = shell_exec('nohup ./record.sh >/dev/null 2>/dev/null &');
chdir($old_path);The MP4 video files are generated but unreadable with VLC, etc… It seems that the problem is due to my PHP script but I am not able to know why.
When executing from the shell command line : PHP myphpscript.php works fine, MP4 video files are OK. But from the PHP web page, the MP4 video files are corrupted.
Any ideas ? Any param to test in FFmpeg to have a good mp4 video file ?
-
Revision 45293 : entourné les menu d’un div avec l’identifiant du menu. Si quelqu’un s’y ...
9 mars 2011, par maieul@… — Logentourné les menu d’un div avec l’identifiant du menu. Si quelqu’un s’y oppose, je retire, mais je ne vois pas de souci.
-
How do I write a batch file that opens a msys shell and then run commands in the shell ?
19 septembre 2024, par cxuI'm trying to automate the process of building ffmpeg on Windows 10. I'm following the guide here : https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC



Everything works fine when I do it manually, however I want to write a batch file that I can run to go through the entire process automatically.



Building requires me to set up the Visual Studio environment and the MSYS environment. This is where I'm having trouble, since running the MSYS environment opens up a new shell. I want to pass the configure/make/make install commands to the MSYS shell after it is opened.



I've tried the solution here : How to open a new shell in cmd,then run script in a new shell ?



The problem they had looks similar to mine, but the solutions posted there didn't work for me.



Here is the bat file currently :



call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64.bat"
call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" start cmd.exe /k bscript
pause




and bscript :



./configure --enable-shared --toolchain=msvc --arch=amd64
make
make install




I've tried all sorts of variations like :



call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" /k bscript
call "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" bscript
start "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" /k bscript
start "C:\workspace\windows\mingw-get\msys\1.0\msys.bat" bscript




And I've also tried leaving the bscript code in the original batch file.



The configure/make commands will either run in the original cmd window, a new cmd window or wont run at all.



Is there a way to pass commands to the MSYS shell like that ?