Recherche avancée

Médias (91)

Autres articles (35)

  • 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 (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire 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 (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (8922)

  • Live Stream Android Screen

    27 janvier 2012, par salamis

    I would like to stream Android Screen using FFMPEG and MonkeyRunners(MonkeyImage)

    I found a good Tutorial for streaming your webcam using FFMPEG and video4linux2.

    Is it possible to send the bytes from the Monkeyrunner.MonkeyImage to the FFMPEG to be converted to a live video stream ?

    Actual code :

    $ffmpeg -f video4linux2 -i /dev/video0 http://78.47.18.19:8090/cam1.ffm

    Replace it with something similar to :

    $ffmpeg -f video4linux2 -i <add here="here" python="python" stream="stream"> http://78.47.18.19:8090/cam1.ffm
    </add>

    Any suggestions ?

  • android ffmpeg opengl es render movie

    18 janvier 2013, par broschb

    I am trying to render video via the NDK, to add some features that just aren't supported in the sdk. I am using FFmpeg to decode the video and can compile that via the ndk, and used this as a starting point. I have modified that example and instead of using glDrawTexiOES to draw the texture I have setup some vertices and am rendering the texture on top of that (opengl es way of rendering quad).

    Below is what I am doing to render, but creating the glTexImage2D is slow. I want to know if there is any way to speed this up, or give the appearance of speeding this up, such as trying to setup some textures in the background and render pre-setup textures. Or if there is any other way to more quickly draw the video frames to screen in android ? Currently I can only get about 12fps.

    glClear(GL_COLOR_BUFFER_BIT);
    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    glBindTexture(GL_TEXTURE_2D, textureConverted);

    //this is slow
    glTexImage2D(GL_TEXTURE_2D, /* target */
    0, /* level */
    GL_RGBA, /* internal format */
    textureWidth, /* width */
    textureHeight, /* height */
    0, /* border */
    GL_RGBA, /* format */
    GL_UNSIGNED_BYTE,/* type */
    pFrameConverted->data[0]);

    glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
    glVertexPointer(3, GL_FLOAT, 0, vertices);
    glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, indices);
    glDisableClientState(GL_VERTEX_ARRAY);
    glDisableClientState(GL_TEXTURE_COORD_ARRAY);

    EDIT
    I changed my code to initialize a gltextImage2D only once, and modify it with glSubTexImage2D, it didn't make much of an improvement to the framerate.

    I then modified the code to modify a native Bitmap object on the NDK. With this approach I have a background thread that runs that process the next frames and populates the bitmap object on the native side. I think this has potential, but I need to get the speed increased of converting the AVFrame object from FFmpeg into a native bitmap. Below is currently what I am using to convert, a brute force approach. Is there any way to increase the speed of this or optimize this conversion ?

    static void fill_bitmap(AndroidBitmapInfo*  info, void *pixels, AVFrame *pFrame)
    {
    uint8_t *frameLine;

    int  yy;
    for (yy = 0; yy &lt; info->height; yy++) {
       uint8_t*  line = (uint8_t*)pixels;
       frameLine = (uint8_t *)pFrame->data[0] + (yy * pFrame->linesize[0]);

       int xx;
       for (xx = 0; xx &lt; info->width; xx++) {
           int out_offset = xx * 4;
           int in_offset = xx * 3;

           line[out_offset] = frameLine[in_offset];
           line[out_offset+1] = frameLine[in_offset+1];
           line[out_offset+2] = frameLine[in_offset+2];
           line[out_offset+3] = 0;
       }
       pixels = (char*)pixels + info->stride;
    }
    }
  • Using librtmpdump in android

    29 mars 2012, par iSun

    anyone can help to me to use rtmpdump in android ?

    i copied librtmp.so To libs\armeabi but i dont know that how can use it to playing an rtmp live stream using rtmpdump ?

    i use this code to my activity :

    static {

       System.loadLibrary("rtmp");

    }

    thanks in advance