Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (7086)

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

    


  • imgutils : add function to clear an image to black

    22 juillet 2017, par wm4
    imgutils : add function to clear an image to black
    

    Black isn't always just memset(ptr, 0, size). Limited YUV in particular
    requires relatively non-obvious values, and filling a frame with
    repeating 0 bytes is disallowed in some contexts. With component sizes
    larger than 8 or packed YUV, this can become relatively complicated. So
    having a generic function for this seems helpful.

    In order to handle the complex cases in a generic way without destroying
    performance, this code attempts to compute a black pixel, and then uses
    that value to clear the image data quickly by using a function like
    memset.

    Common cases like yuv410p10 or rgba can't be handled with a simple
    memset, so there is some code to fill memory with 2/4/8 byte patterns.
    For the remaining cases, a generic slow fallback is used.

    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    Merged from Libav commit 45df7adc1d9b7.

    • [DH] doc/APIchanges
    • [DH] libavutil/imgutils.c
    • [DH] libavutil/imgutils.h
    • [DH] libavutil/version.h
  • Need to convert file format then merge audio files in ffmpeg using bat file

    14 août 2018, par Matthew

    I have been searching quite a bit and cannot find the pieces to make this work. I am looking to convert .g729 audio files to .wav then merge 2 files, and IN and an OUT, into 1 file. I have this much working already.

    @echo off
    for %%A IN (*.g729) DO ffmpeg -i "%%A" "%%A.wav" done

    I have not been able to get the merge to work, I have the basic ffmpeg command to accomplish what I need but it isn’t part of the loop.

    ffmpeg -i <filename>-in.wav -i <filename>-out.wav -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 output.wav
    </filename></filename>

    Any input to get both into one batch would be very helpful.