Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (62)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (7214)

  • OpenCL generating YUV420P black pixel

    2 mai 2021, par Albert Tinon

    I'm working on an FFmpeg OpenCL filter for converting GoPro Max .360 files in Google EAC projected files.
For doing that I need to "stack" the 2 input streams to a twice height output.
It is working very well at a realtime speed. (The working code is in comment)

    


    For going further I need to replace some pixels with some specific colors.
I wrote some macros for making RGB->YUV conversion. But I get only some green or pink pixel (only grey is OK).
this is my test code (with stacking in comment)

    


    #define Y(R,G,B) 0.299 * R + 0.587 * G + 0.114 * B
#define U(R,G,B) -0.147 * R - 0.289 * G + 0.436 * B
#define V(R,G,B) 0.615 * R - 0.515 * G - 0.100 * B
#define YUV(R,G,B) (float4)(Y(R,G,B),U(R,G,B),V(R,G,B),0)

__kernel void gopromax_stack(__write_only image2d_t dst,
                                __read_only  image2d_t gopromax_front,
                                __read_only  image2d_t gopromax_rear)
{
    const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
                               CLK_FILTER_NEAREST);
    
    float4 val;
    int2 dst_size = get_image_dim(dst);
    int2 loc = (int2)(get_global_id(0), get_global_id(1));
    int split_loc = dst_size.y/2;

        if (loc.y < split_loc)
        {
          // working code for stacking
          //  val = read_imagef(gopromax_front, sampler, (int2)(loc.x, loc.y));

          // testing to put grey (working)
            val = YUV(0.5f,0.5f,0.5f);
        }
        else
        {
          // working code for stacking
          //  val = read_imagef(gopromax_rear, sampler, (int2)(loc.x, loc.y-split_loc));

          // testing to put black (gives green !)
            val = YUV(0,0,0);
        }

    if ((loc.xcode>

    


    I tried many think I cannot succeed to generate black or anything except grey.
What did I make wrong ?
I supposed that my pixels are YUV because I specified yuv420p as the format in my filter :

    


    -filter_complex '[0:0]format=yuv420p,hwupload[a] , [0:4]format=yuv420p,hwupload[b], [a][b]gopromax_opencl, hwdownload,format=yuv420p'


    


    The source streams are in hevc / nv12.

    


    Thanks all for your help.

    


  • OpenCL YUV420P black pixel

    30 avril 2021, par Albert Tinon

    I'm working on an FFmpeg OpenCL filter for converting GoPro Max .360 files in Google EAC projected files.
For doing that I need to "stack" the 2 input streams to a twice height output.
It is working very well at a realtime speed. (The working code is in comment)

    


    For going further I need to replace some pixels with some specific colors.
I wrote some macros for making RGB->YUV conversion. But I get only some green or pink pixel (only grey is OK).
this is my test code (with stacking in comment)

    


    #define Y(R,G,B) 0.299 * R + 0.587 * G + 0.114 * B
#define U(R,G,B) -0.147 * R - 0.289 * G + 0.436 * B
#define V(R,G,B) 0.615 * R - 0.515 * G - 0.100 * B
#define YUV(R,G,B) (float4)(Y(R,G,B),U(R,G,B),V(R,G,B),0)

__kernel void gopromax_stack(__write_only image2d_t dst,
                                __read_only  image2d_t gopromax_front,
                                __read_only  image2d_t gopromax_rear)
{
    const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
                               CLK_FILTER_NEAREST);
    
    float4 val;
    int2 dst_size = get_image_dim(dst);
    int2 loc = (int2)(get_global_id(0), get_global_id(1));
    int split_loc = dst_size.y/2;

        if (loc.y < split_loc)
        {
          // working code for stacking
          //  val = read_imagef(gopromax_front, sampler, (int2)(loc.x, loc.y));

          // testing to put grey (working)
            val = YUV(0.5f,0.5f,0.5f);
        }
        else
        {
          // working code for stacking
          //  val = read_imagef(gopromax_rear, sampler, (int2)(loc.x, loc.y-split_loc));

          // testing to put black (gives green !)
            val = YUV(0,0,0);
        }

    if ((loc.xcode>

    


    I tried many think I cannot succeed to generate black or anything except grey.
What did I make wrong ?
I supposed that my pixels are YUV because I specified yuv420p as the format in my filter :

    


    -filter_complex '[0:0]format=yuv420p,hwupload[a] , [0:4]format=yuv420p,hwupload[b], [a][b]gopromax_opencl, hwdownload,format=yuv420p'


    


    The source streams are in hevc / nv12.

    


    Thanks all for your help.

    


  • ffmpeg options that work with Chrome

    21 avril 2015, par James

    I am trying to find the magic options that make mp4 work in Chrome. I think my videos were working, but don’t seem to any more after Chrome updated.

    Chrome, Version 41.0.2272.101 (Windows)

    I tried some other machines and found some of the videos worked on older versions, and my Mac seems to still work on the latest Chrome.

    I am using the ffmpeg options to convert from png series,

    ffmpeg -framerate 10 -i dance%02d.png  -r 10 -pix_fmt yuv420p dance.mp4

    Some videos work, some don’t, some work some of the time, or stop half way through.

    I tried various other options like,

    ffmpeg -start_number 16 -framerate 10 -i dance%02d.png -r 10 -an -s hd720 \
    -vcodec libx264 -pix_fmt yuv420p -preset slow -profile:v baseline \
    -movflags faststart -y dance.mp4

    but this just seemed to make things worse.

    here is one of the videos,
    http://www.botlibre.com/media/a786625.mp4

    and another one,
    http://www.botlibre.com/media/a812450.mp4

    Firefox seems to work no problem, on any version, grey background though.
    IE works fine, white background.
    Safari works, grey background.

    Another thing, they videos used to have white background on older Chrome version, but now are grey, except on Mac still white.

    and one more thing. Webm format works, but anyone know the option to remove transparency ? I’m using,

    ffmpeg -i dance%02d.png  -r 10 -c:v libvpx -crf 10 -b:v 512k -c:a libvorbis dance.webm

    just want a solid white background.