
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (104)
-
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 (...) -
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 (...) -
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 (11034)
-
Converting limited range YUV to sRGB using ImageMagick
6 juillet 2019, par RotemI am trying to convert a set of raw video frames from YUV444 to sRGB using ImageMagick.
Input format : Raw YUV444 limited range, BT.709 in planar data order.
Required output format : sRGB (set of PNG images).Main issue : ImageMagick conversion always applies JPEG conversion formula.
- Remark about "limited range" YUV format :
In 8 bits limited range YUV format, the range of Y is [16, 235] and the range of U, V is [16, 240]. (limited range BT.709 is used in HTDV systems).
JPEG uses "full range" YUV format, where Y,U,V range is [0, 255].
sRGB is used in PC systems, and the range of R,G,B is full range [0, 255].
YUV and YCbCr are interchangeable.
For testing, I used the following sample image :
I converted the sample to YUV444 format using FFmpeg :
ffmpeg -y -colorspace bt709 -i rgb_input.png -pix_fmt yuv444p yuv_input.yuv
Following image illustrates the YUV444 output (in planar data order) :
I converted
yuv_input.yuv
to PNG using ImageMagick converter (version 7.0.8-51) :
magick -depth 8 -interlace plane -size 128x96 -colorspace Rec709YCbCr -sampling-factor 4:4:4 yuv:yuv_input.yuv rgb_output_magick.png
- Result of ImageMagick (
rgb_output_magick.png
) :
If you look carefully you see that the image is different thanrgb_input.png
.
Same conversion using
FFmpeg
(used as reference) :
ffmpeg -y -s 128x96 -colorspace bt709 -pix_fmt yuv444p -i yuv_input.yuv -pix_fmt rgb24 rgb_output_ffmpeg.png
- Result of FFmpeg (
rgb_output_ffmpeg.png
) :
Note : The true format of my raw input video frames prevents me from using FFmpeg.
Conversion formula from 8 bits limited range YUV BT.709 to sRGB :
R = 1.1644*Y + 0.00000*U + 1.79270*V - 248.10
G = 1.1644*Y - 0.21325*U - 0.53291*V + 76.878
B = 1.1644*Y + 2.11240*U + 0.00000*V - 289.02
How can I do the above conversion using ImageMagick converter ?
- Remark about "limited range" YUV format :
-
avcodec/anm : Check extradata length before allocating frame
30 mai 2020, par Andreas Rheinhardt -
avfilter/vf_scale : set proper out frame color range
31 décembre 2015, par Thomas Mundtavfilter/vf_scale : set proper out frame color range
Prevents that following scalers in the filter chain will do unintentional color range conversions.
Fixes Ticket #5096Signed-off-by : Thomas Mundt <loudmax@yahoo.de>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>