
Recherche avancée
Autres articles (28)
-
MediaSPIP : Modification des droits de création d’objets et de publication définitive
11 novembre 2010, parPar défaut, MediaSPIP permet de créer 5 types d’objets.
Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (7989)
-
ffmpeg error : "Missing ')' or too many args in 'if(gt(a,1),650,-1)'"
23 février 2015, par Remini meI am trying to run this ffmpeg command in linux shell, to scale down the video (if portrait, than to maximum height of 650, while adjusting the width. And if landscape, then 650 maximum width, and adjust the height with aspect ratio) :
ffmpeg -i 1.mp4 -r 30 -vf scale="'if(gt(a,1),650,-1)':'if(gt(a,1),-1,650)'" -vcodec libx264 output_file1.mp4
But I get the following error :
[scale @ 0x1d48a40] [Eval @ 0x7fff53a49340] Missing ’)’ or too many
args in ’if(gt(a,1),650,-1)’ [scale @ 0x1d48a40] [Eval @
0x7fff53a49340] Missing ’)’ or too many args in ’if(gt(a,1),-1,650)’
Error when evaluating the expression ’if(gt(a,1),-1,650)’**EDIT : I have tried using the new @slhck syntax :
-vf "scale=if(gt(a\,1)\,650\,-2):if(gt(a\,1)\,-2\,650)"
The result I got was :
ffmpeg version 0.8.16-4:0.8.16-0ubuntu0.12.04.1, Copyright (c)
2000-2014 the Libav developers built on Sep 16 2014 18:33:49 with
gcc 4.6.3 The ffmpeg program is only provided for script compatibility
and will be removed in a future release. It has been deprecated in the
Libav project to allow for incompatible command line syntax
improvements in its replacement called avconv (see Changelog for
details). Please use avconv instead.Seems stream 0 codec frame rate differs from container frame rate :
180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’1.mp4’ : Metadata :
major_brand : isom
minor_version : 0
compatible_brands : isom3gp4
creation_time : 2015-02-05 14:54:24 Duration : 00:00:45.30, start : 0.000000, bitrate : 17058 kb/s
Stream #0.0(eng) : Video : h264 (High), yuv420p, 1920x1080, 17021 kb/s, 30.01 fps, 90k tbr, 90k tbn, 180k tbc
Metadata :
creation_time : 2015-02-05 14:54:24
Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 124 kb/s
Metadata :
creation_time : 2015-02-05 14:54:24 File ’output_file1.mp4’ already exists. Overwrite ? [y/N] y[buffer @ 0x747ec0] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x745a40] [Eval @ 0x7fffac94b220] Missing ’)’ or too many args in
’if(gt(a,1),650,-2)’ [scale @ 0x745a40] [Eval @ 0x7fffac94b220]
Missing ’)’ or too many args in ’if(gt(a,1),-2,650)’ Error when
evaluating the expression ’if(gt(a,1),-2,650)’ Error opening
filters !What should I do ?
-
Convert a ffmpeg video to an appropriate dimension
6 mars 2015, par georgechalhoubI am writing a video conversion script using ffmpeg, it has been completed to full. Ideally, my video conversion script should output the video to many formats (like YouTube) :
- 140p : 256 x 144
- 240p : 426 x 240
- 360p : 640 x 360
- 480p : 854 x 480
- 720p : 1280 x 720
- 1080p : 1920x 1080
The problem I am facing is that if a user uploads a 480p (854 x 480) video or close to 480p (854 x 480) the script will convert to all formats (1080p and 720p) which would seem like a waste of bandwidth and disk space in this case.
The problem isn’t as easy as it seems. If a user uploads a 500 x 300 video I don’t want it to get converted to a 240p, there has to be some estimations.
Who can help me or has some experience with such kind of problems ?
-
ffmpeg conversion dimension error
7 mars 2015, par georgechalhoubI am writing a video conversion script using ffmpeg, it has been completed to full. Ideally, my video conversion script should output the video to many formats (similar to YouTube) :
- 140p : 256 x 144
- 240p : 426 x 240
- 360p : 640 x 360
- 480p : 854 x 480
- 720p : 1280 x 720
- 1080p : 1920x 1080
The problem I am facing is that if a user uploads a 480p (854 x 480) video or close to 480p (854 x 480) the script will convert to all formats (1080p and 720p) which would seem like a waste of bandwidth and disk space in this case.
The problem isn’t as easy as it seems. If a user uploads a 500 x 300 video I don’t want it to get converted to a 240p, there has to be some estimations.
Is there some command in ffmpeg which does any help dealing with such type of problems ?