
Recherche avancée
Autres articles (53)
-
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (8187)
-
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.
-
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 ?

-
Powershell script finishes after the first ffmpeg call
25 mars 2014, par sk904861The following Powershell script only executes the first ffmpeg call, no matter which one is first. Both the ffmpeg and the powershell processes never finish. Stopping the server, however, leads to the processes finishing and suddenly the second picture also appears.
Param($InputFile, $OutputFile, $Thumbnail, $Sprites)
$ThumbnailWidth = 120
$ThumbnailHeight = 120
# Thumbnail
ffmpeg -i $InputFile -f image2 -vframes 1 -filter:v "crop=min(iw\,ih):min(iw\,ih), scale=$($ThumbnailWidth):$($ThumbnailHeight)" -crf 18 "$($Thumbnail)\150x150.png"
# Poster
ffmpeg -i $InputFile -f image2 -vframes 1 -filter:v "crop=min(iw\,ih):min(iw\,ih), scale=$($PosterWidth):$($PosterHeight)" -crf 18 "$($Thumbnail)\1000x1000.png"The script gets called within an ASP.NET application as follows :
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "powershell.exe";
startInfo.Arguments = String.Format("-executionpolicy RemoteSigned -file \"{0}\" \"{1}\" \"{2}\" \"{3}\" \"{4}\"", scriptPath, fullPath, videoPath, thumbnailPath, sprites);
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
Process process = new Process();
process.StartInfo = startInfo;
process.EnableRaisingEvents = true;
process.Exited += delegate
{
// Do some cleaning up
};
process.Start();Does anyone have a clue, why only the first the two ffmpeg calls is working, while each call seems to be correct ?
Adding
process.StandardError.ReadToEnd();
makes the script finish as expected, but also makes it block, which is not acceptable.