
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 (58)
-
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 (...) -
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 (7713)
-
How to create a FFMPEG VIDSTAB batch script Windows
2 octobre 2019, par esdoublelefi’m a photographer and I download photographs (.jpg) and videos (.mov) into a single Windows folder
I’m looking to create a script that will run the below 3 lines of FFMPEG for every instance of .mov in the folder and let it create stabilized .mp4 copies of the video. I’ll delete the originals manually later.
ffmpeg -i DSCF0229.MOV -vf vidstabdetect=shakiness=5:accuracy=15:stepsize=6:mincontrast=0.3:show=2 -y dummy.mp4
ffmpeg -i DSCF0229.MOV -vf scale=trunc((iw*1.15)/2)*2:trunc(ow/a/2)*2 -y scaled.mp4
ffmpeg -i scaled.mp4 -vf vidstabtransform=smoothing=30:input="transforms.trf":interpol=linear:crop=black:zoom=0:optzoom=1,unsharp=5:5:0.8:3:3:0.4 -y DSCF0229stabilized.mp4i can tweak a bit of code, but i’m clueless on where to start. i tried "for do" and even a batch.bat file, but i just can’t get the proper syntax right.
really appreciate any help here !!
-
How can I run this command in a shell script
21 janvier 2011, par SaschaThis is my shell script but it gives errors :
#!/bin/sh
while getopts "i:o:" flag
do
case $flag in
i) file_input=$OPTARG
;;
o) file_output=$OPTARG
;;
esac
done
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output $file_output - ) $file_inputThe error message is :
Can't get memory or file handle to write ">(x264 —demuxer y4m —crf 20 —threads auto —output video.264 - )" !FATAL : Cannot initialize video driver.
When I run this cmd on putty :
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output video.264 - ) video.wmvit works perfectly..
What am I doing wrong ?
-
Redirect shell output for ruby script
2 juin 2015, par rs41I have simple ruby script :
#! /usr/bin/env ruby
require 'fileutils'
FileUtils.rm "output.mkv" if File.exists?("outp ut.mkv")
pid = Process.spawn("ffmpeg -i wrong_file.mp4 -c:v libx264 -preset veryslow -qp 0 output.mkv", STDOUT => "output.txt", STDERR => "error.txt")
puts "pid : #{pid}"
Process.wait(pid)But, STDOUT and STDERR outputs into error.txt, why ?
It looks, that ffmpeg have another exit codes ?(in usual case 0 for stdout, and 1 for stdin)
Note : I don’t want to use native shell redirect like ’> output.txt 2> error.txt’ because i want to get pid of ffmpeg process, not shell process and kill it in future.