
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (51)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
Sur d’autres sites (7386)
-
Capture ffmpeg's metadata output in powershell
17 mars 2016, par xdhmooreI’m trying to capture the output of
ffmpeg
in PowerShell(tm) to get some metadata on some ogg & mp3 files. But when I do :ffmpeg -i file.ogg 2>&1 | sls GENRE
The output includes a bunch of lines without my matching string, "GENRE" :
album_artist : Post Human Era
ARTIST : Post Human Era
COMMENT : Visit http://posthumanera.bandcamp.com
DATE : 2013
GENRE : Music
TITLE : Supplies
track : 1
At least one output file must be specifiedI am guessing something is different in the encoding. ffmpeg’s output is colored, so maybe there are color control characters in the output that are breaking things ? Or, maybe ffmpeg’s output isn’t playing nicely with powershell’s default UTF-16 ? I can’t figure out if there is another way to redirect stderr and remove the color characters or change the encoding of stderr.
EDIT :
Strangely, I also get indeterminate output. Sometimes the output is as shown above. Sometimes with precisely the same command the output is :GENRE :
Which makes slightly more sense, but is still missing the part of the line I care about (’Music’).
Somewhere powershell is interpreting something as newlines that is not newlines.
-
Capture ffmpeg's metadata output in powershell
17 janvier 2021, par xdhmooreI'm trying to capture the output of
ffmpeg
in PowerShell(tm) to get some metadata on some ogg & mp3 files. But when I do :


ffmpeg -i file.ogg 2>&1 | sls GENRE




The output includes a bunch of lines without my matching string, "GENRE" :



album_artist : Post Human Era
 ARTIST : Post Human Era
 COMMENT : Visit http://posthumanera.bandcamp.com
 DATE : 2013
 GENRE : Music
 TITLE : Supplies
 track : 1
At least one output file must be specified




I am guessing something is different in the encoding. ffmpeg's output is colored, so maybe there are color control characters in the output that are breaking things ? Or, maybe ffmpeg's output isn't playing nicely with powershell's default UTF-16 ? I can't figure out if there is another way to redirect stderr and remove the color characters or change the encoding of stderr.



EDIT :
Strangely, I also get indeterminate output. Sometimes the output is as shown above. Sometimes with precisely the same command the output is :



GENRE :







Which makes slightly more sense, but is still missing the part of the line I care about ('Music').



Somewhere powershell is interpreting something as newlines that is not newlines.


-
ImageMagick to crop image based on based on rectangular border color
3 septembre 2021, par Alvie MahmudI have some images that I would like to crop but hopefully via command line rather than doing each one manually.


I would like to crop the image (I've cropped top half, desaturated other colours and split frames with ffmpeg) based on where there is a border of a certain color (#31393C in this case). For example, I would like this image :


to be cropped like this :



I have tried some commands but they aren't working for me unfortunately.


convert image.jpg -bordercolor "#31393C" -border 2x2 -fuzz 10% -trim output.jpg



I have also tried to make the parts that aren't #31393C to be filled with white and then cropping which may potentially work as a solution as I want to improve the ability to use OCR :


convert image.jpg -fill white -fuzz 11% +opaque "#31393c" result.jpg
convert result.jpg -bordercolor white -border 10x10 -fuzz 10% -trim output.jpg



which works somewhat but not perfectly :