Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14984)

  • h264 : reset data partitioning at the beginning of each decode call

    28 novembre 2013, par Anton Khirnov
    h264 : reset data partitioning at the beginning of each decode call
    

    Prevents using GetBitContexts with data from previous calls.

    Fixes access to freed memory.

    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC:libav-stable@libav.org

    • [DBH] libavcodec/h264.c
  • h264 : reset data partitioning at the beginning of each decode call

    28 novembre 2013, par Anton Khirnov
    h264 : reset data partitioning at the beginning of each decode call
    

    Prevents using GetBitContexts with data from previous calls.

    Fixes access to freed memory.

    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC:libav-stable@libav.org

    • [DH] libavcodec/h264.c
  • Javacv : Decoding H.264 "live" stream coming from red5 server on android device

    26 mars 2015, par Ichigo Kurosaki

    Here is my problem,
    I have implemented a server side application using Red5, which sends H.264 encoded live stream, on client side the stream is received as byte[]
    In order to decode it on Android client side i have followed the Javacv-FFmpeg library. The code for decoding is as follows

    public Frame decodeVideo(byte[] data,long timestamp){
              frame.image = null;
              frame.samples = null;
              avcodec.av_init_packet(pkt);
              BytePointer video_data = new BytePointer(data);
              avcodec.AVCodec codec = avcodec.avcodec_find_decoder(codec_id);
              video_c = null;
              video_c = avcodec.avcodec_alloc_context3(codec);
              video_c.width(320);
              video_c.height(240);
              video_c.pix_fmt(0);
              video_c.flags2(video_c.flags2()|avcodec.CODEC_FLAG2_CHUNKS);
              avcodec.avcodec_open2(video_c, codec, null))
              picture = avcodec.avcodec_alloc_frame()
              pkt.data(video_data);
              pkt.size(data.length);
              int len = avcodec.avcodec_decode_video2(video_c, picture, got_frame, pkt);
              if ((len >= 0) && ( got_frame[0] != 0)) {
                ....
                 process the decoded frame into **IPLImage of Javacv** and render it with **Imageview** of Android
              }
    }

    Data received from server is as follows
    Few Frames having following pattern
    17 01 00 00 00 00 00 00 02 09 10 00 00 00 0F 06 00 01 C0 01 07 09 08 04 9A 00 00 03 00 80 00 00 16 EF 65 88 80 07 00 05 6C 98 90 00...

    Many frames having following pattern
    27 01 00 00 00 00 00 00 02 09 30 00 00 00 0C 06 01 07 09 08 05 9A 00 00 03 00 80 00 00 0D 77 41 9A 02 04 15 B5 06 20 E3 11 E2 3C 46 ....

    With H.264 codec for decoder, decoder outputs length >0 but got_frames=0 always.
    With MPEG1 codec, decoder outputs length >0 and got_frames>0 but the output image is green or distorted.

    However following FFmpegFrameGrabber code of javacv i can decode the local files( H.264 encoded ) with similar code as above.

    I wonder what details i am missing, and header related data manipulation or setting codec appropriate for decoder.

    Any suggestion, help appreciated.
    Thanks in advance.