Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (44)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7401)

  • avcodec/videotoolboxenc : use color parameters conversion from avutil

    16 juillet 2023, par Zhao Zhili
    avcodec/videotoolboxenc : use color parameters conversion from avutil
    

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] libavcodec/videotoolboxenc.c
  • FFMPEG - AVFrame to per channel array conversion

    27 décembre 2016, par ahmadh

    I am looking to copy an AVFrame into an array where pixels are stored one channel at a time in a row-major order.

    Details :

    I am using FFMPEG’s api to read frames from a video. I have used avcodec_decode_video2 to fetch each frame as an AVFrame as follows :

    AVFormatContext* fmt_ctx = NULL;
    avformat_open_input(&amp;fmt_ctx, filepath, NULL, NULL);
    ...
    int video_stream_idx;  // stores the stream index for the video
    ...
    AVFrame* vid_frame = NULL;
    vid_frame = av_frame_alloc();
    AVPacket vid_pckt;
    int frame_finish;
    ...
    while (av_read_frame(fmt_ctx, &amp;vid_pckt) >= 0) {
       if (b_vid_pckt.stream_index == video_stream_idx) {
           avcodec_decode_video2(cdc_ctx, vid_frame, &amp;frame_finish, &amp;vid_pckt);
           if (frame_finish) {
               /* perform conversion */
           }
       }
    }

    The destination array looks like this :

    unsigned char* frame_arr = new unsigned char [cdc_ctx->width * cdc_ctx->height * 3];

    I need to copy all of vid_frame into frame_arr, where the range of pixel values should be [0, 255]. The problem is that the array needs to store the frame in row major order, one channel at a time, i.e. R11, R12, ... R21, R22, ... G11, G12, ... G21, G22, ... B11, B12, ... B21, B22, ... (I have used the notation [color channel][row index][column index], i.e. G21 is the green channel value of pixel at row 2, column 1). I have had a look at sws_scale, but I don’t understand it enough to figure out whether that function is capable of doing such a conversion. Can somebody help !! :)

  • avcodec/apedec : simplify sign conversion

    13 février 2015, par zhaoxiu.zeng
    avcodec/apedec : simplify sign conversion
    

    Signed-off-by : Zeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/apedec.c