Recherche avancée

Médias (91)

Autres articles (50)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (8642)

  • opengl es yuv to rgb conversion display only green and pink colors

    3 février 2014, par DSG

    I am doing yuv to rgb conversion using opengl shaders. But its only show green and pink colors. I am using ffmpeg to decode movie. I am beginner in this, so have no idea how to solve it. ffmpeg give me three buffers of yuv. I am directly assigning these buffers to three textures.

    Here are shaders I am using.

    static const char* VERTEX_SHADER =
    "attribute vec4 vPosition;                      \n"
    "attribute vec2 a_texCoord;                     \n"
    "varying vec2 tc;                               \n"
    "uniform mat4 u_mvpMat;                         \n"
    "void main()                                    \n"
    "{                                              \n"
    "   gl_Position = u_mvpMat * vPosition;         \n"
    "   tc = a_texCoord;                            \n"
    "}                                              \n";

    static const char* YUV_FRAG_SHADER =
    "#ifdef GL_ES                                   \n"
    "precision highp float;                         \n"
    "#endif                                         \n"
    "varying vec2 tc;                               \n"
    "uniform sampler2D TextureY;                    \n"
    "uniform sampler2D TextureU;                    \n"
    "uniform sampler2D TextureV;                    \n"
    "uniform float imageWidth;                      \n"
    "uniform float imageHeight;                     \n"

    "void main(void)                                \n"
    "{                                              \n"
       "float nx, ny;                              \n"
       "vec3 yuv;                                  \n"
       "vec3 rgb;                                  \n"
       "nx = tc.x;                                 \n"
       "ny = tc.y;                                 \n"

       "yuv.x = texture2D(TextureY, tc).r;         \n"
       "yuv.y = texture2D(TextureU, vec2(nx/2.0, ny/2.0)).r - 0.5;   \n"
       "yuv.z = texture2D(TextureV, vec2(nx/2.0, ny/2.0)).r - 0.5;   \n"

       // Using BT.709 which is the standard for HDTV
       "rgb = mat3( 1,              1,      1,     \n"
                   "0,       -0.18732, 1.8556,     \n"
                   "1.57481, -0.46813,      0)*yuv;\n"

       // BT.601, which is the standard for SDTV is provided as a reference
       //"rgb = mat3( 1,            1,     1,        \n"
       //            "0,     -0.34413, 1.772,        \n"
       //            "1.402, -0.71414,     0) * yuv; \n"
       "gl_FragColor = vec4(rgb, 1.0);             \n"
    "}                                              \n";

    Output :

    enter image description here

    What wrong am I doing ? Please help me out with this.

    Thank You.

    UPDATE :

    While debugging ffmpeg decoding, I found that ffmpeg decoder give PIX_FMT_YUV420P output format. Do I have to make some tweaks to get correct image colors ?

  • Revision 3cd37dfeb5 : Adds a non-normative resize library to vp9 encoder Adds an arbitrary-size resiz

    17 janvier 2014, par Deb Mukherjee

    Changed Paths :
     Modify /test/resize_test.cc


     Modify /vp9/encoder/vp9_onyx_if.c


     Add /vp9/encoder/vp9_resize.c


     Add /vp9/encoder/vp9_resize.h


     Modify /vp9/vp9cx.mk



    Adds a non-normative resize library to vp9 encoder

    Adds an arbitrary-size resize library for use in scaling of input
    frames in a non-normative manner in the vp9 encoder. The method
    used is as follows :
    Downsampling - Uses a 8 tap filter for factor of 2 decimation upto
    a size just higher than the desired size. Then interpolates pixels
    at a precision of 1/32 pel using a set of 8-tap filters.
    Upsampling - Interpolates pixels at a precision of 1/32 pel using
    a set of 8-tap filters.

    There is no assembly optimization yet.

    Change-Id : Ib5b81e174fc139da322bb97c8214d52289d60d8a

  • Documentation #3052 (Fermé) : manque l’appel à layer.js dans prive/editer_article.html

    1er novembre 2013, par b b

    Grosse précision qui était absente du rapport de bug initial :

    b_b si je me souviens bien c’est que quand tu passes le formulaire_editer_article en public, le sélecteur de rubrique ne fonctionne pas

    Du coup je ne pense pas que ça soit un bug, à mon avis c’est à la personne qui utilise ce formulaire dans ses squelettes de gérer l’insertion de layer.js.

    Par contre on peut considérer ça comme un "bug" ou manque dans le doc, il faudrait y préciser que l’insertion du script layer.js peut être nécessaire lors de l’utilisation des cvt du core dans le public. Je viens d’ajouter l’information dans cet article de spip.net :

    http://www.spip.net/fr_article3788.html

    Et hop, on peut fermer le ticket :)