
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (77)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (6965)
-
How to run ffmpeg in a scheduled batch file with a file exclusion list ?
5 juin 2022, par MrZoopsI have the following batch file created to run as a schedule task. It auto encodes the audio to AAC in my main media folder. Everything is working, but now I need to do 2 more things :



- 

- Delete the original upon completion.
- Set it so that the next time it runs, it does not try to convert the already converted files.







Is that possible ? How would that look ? Is there a way to "disregard" file names with
CONVERTED
in them ?


for /r "C:\Users\USER\Desktop\TEST" %%a in ("*.mkv") do ffmpeg -i "%%a" -vcodec copy -acodec aac -ac 2 -ab 256K %%~dpnaCONVERTED.mkv



-
a command in a script doesn't work when the script is launched by cron
5 mai 2023, par a kWhen I launch the script manually both as a not-root user (with sudo) and as the root, everything work correctly.
When Cron (Cron of the root) launches it, ffmpeg doesn't work (but the others lines of the script work correctly).


#!/bin/bash
log=/var/log/log2/log2.txt

echo ______________ $(date) >> "$log"
echo -n whoami ' ' >> "$log" ; whoami >> "$log"
echo -n pwd ' ' >> "$log" ; pwd >> "$log"
echo "$""USER" = ' ' "$USER" >> "$log"
echo PATH ' ' $PATH >> "$log"
echo -n which ffmpeg ' ' >> "$log" ; which ffmpeg >> "$log"
echo -n whereis ffmpeg ' ' >> "$log" ; whereis ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/bin/* | grep ffmpeg" ' ' >> "$log"
ls -l /bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/usr/bin/* | grep ffmpeg" ' '>> "$log"
ls -l /usr/bin/* | grep ffmpeg >> "$log"

echo "" >> "$log"
echo ls -l "/var/log | grep log2" ' '>> "$log"
ls -l /var/log | grep log2 >> "$log"

echo "" >> "$log"
echo ls -l "/var | grep log" ' '>> "$log"
ls -l /var | grep log >> "$log"

ffmpeg -y -f x11grab -s 1366x768 -i :0.0 /var/log/log2/test.mp4 2>/dev/null &
echo "$!"
sleep 5
kill "$!"
exit



The script puts in the file /var/log/log2/log2.txt :


whoami root
pwd /root
$USER = 
PATH /usr/bin:/bin
which ffmpeg /usr/bin/ffmpeg
whereis ffmpeg ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz

ls -l /bin/* | grep ffmpeg 
-rwxr-xr-x 1 root root 284976 mai 18 2022 /bin/ffmpeg

ls -l /usr/bin/* | grep ffmpeg 
-rwxr-xr-x 1 root root 284976 mai 18 2022 /usr/bin/ffmpeg

ls -l /var/log | grep log2 
drwxrwxrwx 2 root root 4096 mai 5 03:22 log2

ls -l /var | grep log 
drwxrwxr-x 16 root syslog 36864 mai 5 00:00 log



I have tried to verify :


- 

- the permissions of the file ffmpeg
- the permissions of the folder where ffmpeg writes to
- the $PATH
- the path of ffmpeg
- the path of the file where ffmpeg should write to












-
Updated version number to account for the bugfix for jQuery 1.7.
8 novembre 2011, par Sebastian Tschanm jquery.fileupload.js Updated version number to account for the bugfix for jQuery 1.7.