
Recherche avancée
Autres articles (26)
-
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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...)
Sur d’autres sites (5055)
-
Run script after FFMPEG background task completes (via PHP)
9 novembre 2018, par UtkanosI have a PHP script which triggers an FFMPEG file conversion via
shell_exec()
.shell_exec('ffmpeg -i file.webm -c:v libx264 -c:a aac -strict -2 file.mp4 >/dev/null 2>/dev/null &');
This happens in the background (hence
&
), i.e. the script completes before conversion has finished.Is there a way to call and execute a PHP script (to update a DB flag) once the conversion is complete ?
I’ve done plenty of Googling but my knowledge of server commands just isn’t up to understanding what I’m reading (e.g. this answer). The best I could manage was to redirect stdout to a file via
shell_exec('ffmpeg -i file.webm -c:v libx264 -c:a aac -strict -2 file.mp4 > MYFILE.txt 2>/dev/null &');
...but obviously that just creates and writes to a file, it doesn’t call and execute it via PHP.
-
Find exe files in batch script
20 septembre 2017, par D.SpamOk so I have a batch script that looks something like this
:Input
ECHO.
SET url=
ECHO Enter URL
SET /P url=
IF "%url%" EQU "" GOTO End
IF "%url: =%" NEQ "%url%" GOTO Input
ECHO Enter start time (in seconds, or in hh:mm:ss form):
SET /P start=
ECHO Enter duration (in seconds, or in hh:mm:ss form):
SET /P dur=
ECHO.
FOR /F "delims==" %%A IN ('youtube-dl.exe --no-warnings --get-filename "%url%"') DO SET filename=%%A
FOR /F %%B IN ('youtube-dl.exe -g "%url%"') DO (
ffmpeg.exe -hide_banner -ss "%start%" -i "%%B" -c copy -t "%dur%" -bsf:a aac_adtstoasc video.mp4
)
:EndThe script works flawlessly but my only problem is the script only works when the batch file is inside the folder with all the executables (ffmpeg.exe, youtube-dl.exe). I would like the scripts to run outside the folder
The folder in which the executables are :
\Clips\ffmpeg\binThe folder I would like to store/run the batch files from is Clips.
Another tricky problem is that the Clips folder will be shared with other users so I dont want to specify a directory like G :\Desktop\Clips as it will not work for them.
-
FFMPEG & Centos7 Script
5 octobre 2017, par TonyLooking to install
FFMPEG
onCentos7
- there appears to be an official compilation guide here.BUT I find it hard to belive that someone hasn’t already done all the work to make this into a nice install script ? :) ?
If not I’ll proceed and make one but rather not if I don’t have too.