
Recherche avancée
Autres articles (61)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4180)
-
FFMPEG script to merge all files in a list and make a 1920x1080p 60fps mp4 video
28 février 2021, par BitBitI have a list of 46 videos in a text file. I tried the concat method to merge all of them, which worked but the quality is very poor and the audio is bugged/missing at parts.

Can someone please help me with a script to merge all 46 videos and the output to be 1920x1080 60fps mp4 video ?

-
How can i use exiftool ffmpeg and python to create a script that collects videos/images and puts them in a sequence ?
15 mars 2019, par David GHey all I am rather new to scripting in python and am looking for some help with a script that i am working on. the script i have in python uses exiftool to read metadata in video and image files however i need it to go further where it uses my input of some keywords that it searches the meta data for then copies the videos to another directory and then links them together in ffmpeg ready for me to make detailed edits in Premier Pro eg : my input will be
keywords = ("Opening", "part01", "part02", "ending")etc...
description = ("date", "client")etc...
then the script will find the videos with that in its meta and copy x2 them and then run one of the copies through ffmpeg to put them in a sequence respective to the order of the keywords.
import os
import subprocess
for path, subdirs, files in os.walk("/Users/me/Desktop/videosAndImages"):
input_file = "."
exe = "exiftool"
process = subprocess.Popen([exe, input_file], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
for output in process.stdout:
print(output.strip())this is the script if i have it with just the input as input_file"." and not the for loop i can run exiftool with the cmd /terminal and this for loop just scans directories and not the images inside please help.
-
How do I pass a variable to shell script ?
18 mars 2017, par BjörnI´m trying to create a textfile that my ffmpeg-command can use to merge two videofiles. The problem I´m having is getting my folder/file-paths to look like I want. The two lines that cause my problems are :
set theFile to path to replay_folder & "ls.txt"
I simply want this path to be the path of
replay_folder
andls.txt
In the shell script line I want the same thing.
do shell script "cd " & replay_folder & "
/usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"I get this path with the shell script
Macintosh HD:Users:BjornFroberg:Documents:wirecast:Replay-2017-03-17-12_11-1489749062:
But I want this
/Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/
The full code is :
tell application "Finder"
set sorted_list to sort folders of folder ("Macintosh HD:Users:bjornfroberg:documents:wirecast:") by creation date
set replay_folder to item -1 of sorted_list
set replay_files to sort items of replay_folder by creation date
end tell
set nr4 to "file '" & name of item -4 of replay_files & "'"
set nr3 to "file '" & name of item -3 of replay_files & "'"
set theText to nr4 & return & nr3
set overwriteExistingContent to true
set theFile to path to replay_folder & "ls.txt" --actual path is: POSIX file "/Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/ls.txt"
set theOpenedFile to open for access file theFile with write permission
if overwriteExistingContent is true then set eof of theOpenedFile to 0
write theText to theOpenedFile starting at eof
close access theOpenedFile
do shell script "cd " & replay_folder & "
/usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"Any help is appreciated :)