
Recherche avancée
Autres articles (74)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (7068)
-
ffprobe/ffmpeg exec doesn't return result on local machine, but works on production system
27 juillet 2015, par KinesiasI want to get the duration of a movie, using ffprobe (part of ffmpeg).
The command line I’m using is this :ffprobe -v error -show_entries format=duration -of
default=noprint_wrappers=1:nokey=1
path/to/video.movIt works perfectly in the shell, gives me a result of 4.5554 (seconds).
However, if I call this command via exec on my local machine, I get an empty result.
var_dump( exec("ffprobe -v .......") );
returns string(0) ""Now comes the burner : It works perfectly on the production machine, though !!
These are my configurations :
Local machine: Mac OS 10.9.5, PHP 5.6.11 ffmpeg 2.7.1
Production machine: Mac OS Server 10.6 PHP 5.3.1 ffmpeg 2.7.2Is this kind of a bug in PHP 5.6 or something ???
Thanks, Matt -
How to deploy external library along with function source code to firebase ?
2 octobre 2017, par Yizhou YanI am new to the firebase. I am doing a project which requires using ffmpeg to process video.
What I know about ffmpeg is that it runs on cmd. If I want to use ffmpeg to process video on my local computer in node.js, I need to install two things :
I first need to download the ffmpeg source code from its website, and set the system path variable so that I can run ffmpeg cmd in any directory. By doing this, I am now able to run ffmpeg in cmd to process video.
Second, install the ffmpeg module via npm. By doing this, I am now able to write code in node.js(or javascript ?) and uses functions that ffmpeg module provided to process video.
Now I want to do it with firebase. what I know about the firebase is that I am only allowed to write functions in node.js(or javascript ?) and deploy the functions to firebase server which could be trigger by events.
I also know that if I run
npm install --save ffmpeg
. in the function folder, it installs the module and--save
builds the dependency for me. Here the question comes. Where should I put the ffmpeg source code file and deploy it along with the ffmpeg module and my js function source code to the firebase ? and do I need to configure the ffmpeg source file(like setting the system path variable) ? Thank you in advanced ! -
Windows python can't pass system variables [duplicate]
14 mai 2016, par Soner BThis question already has an answer here :
I can cut video ffmpeg command prompt like this :
ffmpeg -ss 00:41:12.200 -i "the_video.mp4" -t 00:00:03.100 -c:v
libx264 -preset slow -profile:v high -crf 21 "the_video_cut.mp4" -yffmpeg.exe is in C :\Windows\System32
But I try with python.
import subprocess as sp
CRF_VALUE = '21'
PROFILE = 'high'
PRESET = 'slow'
cmd = ['ffmpeg', '-ss', '%s'%start_time, '-i', '"%s"'%inputFile, '-t', '%s'%diffTime, '-c:v', 'libx264', '-preset', PRESET, '-profile:v', PROFILE, '-crf', CRF_VALUE, '"%s_cut.%s"'%('_'.join(file_strip[:-1]),file_strip[-1]), '-y']
sp.call(' '.join(cmd))Error message :
Traceback (most recent call last):
File "test.py", line 81, in <module>
main(sys.argv[1:])
File "test.py", line 76, in main
isle(inputFile, start_time, diffTime)
File "test.py", line 48, in isle
sp.call(' '.join(cmd))
File "C:\Program Files (x86)\Python35-32\lib\subprocess.py", line 560, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Program Files (x86)\Python35-32\lib\subprocess.py", line 950, in __init__
restore_signals, start_new_session)
File "C:\Program Files (x86)\Python35-32\lib\subprocess.py", line 1220, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Sistem belirtilen dosyayı bulamıyor
</module>with try
sp.call(' '.join(cmd), shell=True)
This error message :
’ffmpeg’ is not recognized as an internal or external command,
operable program or batch file.If i copy ffmpeg.exe in the same folder test.py, it’s okey, working.