Recherche avancée

Médias (91)

Autres articles (47)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (9828)

  • 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 ?

  • FFmpeg to push RTMP stream problem, the video completed by push stream takes a long time to display。

    5 juin 2020, par Sacher

    FFmpeg to push RTMP stream problem, the video completed by push stream takes a long time to display。
    
I feel that ffmpeg has a long start time。
My command is
    
ffmpeg -i rtmp://play ip/appName/streamName -threads 4 -tune zerolatency -vcodec copy -bf 0 -g 1 -preset ultrafast -acodec copy -f flv rtmp://push ip/appName/streamName
    
In this way, the startup user will wait for a long time to use, how to deal with it.

    


  • How to display frame number starting from one on each frame of a video using ffmpeg ?

    26 octobre 2020, par Misha Homiak

    I need the numbering to start not from zero, but from one

    


    numbering from zero works

    


    drawtext='%{n}'"...


    


    but from one does not work

    


    drawtext='%{n+1}'"...