
Recherche avancée
Autres articles (61)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 (...) -
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 (6820)
-
Why isn't my bash script working ?
15 mai 2016, par JulianJI’m trying to get this bash script to work but am at a loss. I have a text file that contains a list of frame numbers line by line. ffmpeg reports the error :
Undefined constant or missing '(' in '$name)'
The script
#!/bin/bash
source text.txt
while read name
do
ffmpeg -i result.mp4 -vf "setpts=N+1,select='eq(n,\$name)'" -vframes 1 frame-$i.jpg
done code> -
Automator shell script (using ffmpeg) won't run on other machine
24 mai 2014, par kavaI have an Automator patch that runs a shell script that calls ffmpeg on a 10.9.3 mac.
I just try to call it via
ffmpeg
for test reasons without any arguments.
but it returns
ffmpeg: command not found.
But I can open ffmpeg regularly from terminal AND I can run the script on my other machine (10.9.2)
What’s wrong ?
EDIT : I also tried to add :
/opt/local/bin
in the shell script to the path variable, but it still won’t run.
also/opt/local/bin/ffmpeg -arguments....
won’t run
-
String input in .bat script for ffmpeg encoder
27 janvier 2016, par Ѕвонко ПетровскиOkay, I have this script which does batch encoding in ffmpeg. It basically calls upon ffmpeg for every file. What I want to do is to make the script ask for input and output locations before it starts executing.
Here is the original script :
for %%a in ("*.mp4") do "G:\ffmpeg\bin\ffmpeg" -i "%%a" -c:v libx264 -preset slow -crf 20 -maxrate 15000k -bufsize 2000k -acodec copy "newfiles\%%~na.mp4"
Now I’d like to be able to input a string with a location for the files in he first brackets ("*.mp4") and at the end for "newfiles\%% na.mp4".
I would presume that %% na is used to generate number orders or something but I’m not completely sure.
I would presume that two variables/strings need to be created and then utilized by reading from keyboard. Sadly I have absolutely no experience with this. Did some c++ in school but that was that.
Thanks in advance.