
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (19)
-
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 (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
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 (...)
Sur d’autres sites (1583)
-
Bash script to convert imgs in subfolders to video (using ffmpeg and Ubuntu)
2 novembre 2015, par mcExchangeI’m trying to convert all files in folders given by
allFolders.txt
> head folderNames.txt
0001
0002
0003
0004
0005
...to a video using ffmpeg
ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 20 2015 13:38:52 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/home/myUsername/usr/local --enable-nonfree --enable-gpl --enable-pic --enable-shared --enable-libx264 --disable-vaapiAccording to some answers here on stackoverflow I wrote the following bash script :
#!/bin/bash
while read p; do
cd "$p"
ffmpeg -f concat -i "allImgNames.txt" -framerate 30 -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4
cd -
done < folderNames.txtwhere
allImgNames.txt
is a text file containing all the image names.The strange thing is that it works for a few videos but for the rest of the filelist it fails saying
allImgNames.txt: No such file or directory
, which is not true. I checked all paths several times. Also I can execute theffmpeg ...
command above manually without problems.
I don’t know what I’m doing wrong. All file / folder names are normal (no special characters). Maybe I don’t understand enough about bash or ffmpeg. -
How to create bash script with ffmpeg to stitch together AVI files, then rotate 180 degrees ?
25 septembre 2022, par Maude Rozencrance's CatI'm trying to make a bash script in linux to stitch a bunch of AVI files together then rotate the vid 180 degrees. My code works, but without the rotation part.


>videos.txt

files=DSCF*.AVI

for f in $files
do
 #make list of vids, copy to videos.txt
 echo "file '$f'" >> videos.txt;
 echo "duration 10.0" >> videos.txt;
 
done

#stitch all vids together
ffmpeg -f concat -safe 0 -i videos.txt -c copy bigvid.AVI



-
Use ffmpeg Windows batch script on OS X
3 novembre 2015, par andiskI got an ffmpeg batch script written by someone. The script takes all video clips of a specific folder, cuts off first and last frame, converts the clips to ProRes and saves them in a new folder. I got it running under Windows (just have to double-click the *.bat file and it does what it’s supposed to do).
But now I need that same script running on a mac. I’ve installed ffmpeg over homebrew. Then I tried to make a Automator-Service, but with no success. Best thing would be if I could just right click on the folder with the videos, go to services and click on convert. I’m not really into coding and scripting, but the people who should use the script are happy when they find the power switch of the computer..
Can anyone help me with this ?
Cheers andiskEdit : Here’s the code
`@echo off
mkdir tmp
mkdir converted
set pathtofind=%~dp0
echo Searching for files in %pathtofind%%1\
setlocal enableextensions
setlocal ENABLEDELAYEDEXPANSION
for %%f in (%pathtofind%%1\*) do (
echo Handling file %%f
ffmpeg -y -loglevel quiet -i %%f tmp\%%d.png
set count=0
for %%x in (tmp\*) do set /a count +=1
echo Deleting frames 1 and !count!
del tmp\1.png
del tmp\!count!.png
echo Saving %%~nf.mov
ffmpeg -y -loglevel verbose -f image2 -r 24 -i tmp\%%d.png -vcodec prores -profile:v 1 -r 24 converted\%%~nf.mov
del /q tmp\*.*
echo ---------------------------
)
rd tmp`