
Recherche avancée
Autres articles (45)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP 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 (9463)
-
using FFmpeg, how to decode H264 packets
28 mars 2017, par JunI’m new to FFmpeg struggling to decode H264 packets which can be obtained as an array of uint8_t.
After many of investigations, I think it should be able to just put the array into an AVPacket like the below
AVPacket *avpkt = (AVPacket *)malloc(sizeof(AVPacket) * 1);
av_init_packet(avpkt);
avpkt->data = ct; // ct is the array
avpkt->length =....and decode by avcodec_decode_video2(). A part of the code is like
...
codec = avcodec_find_decoder(CODEC_ID_H264);
gVideoCodecCtx = avcodec_alloc_context();
gFrame = avcodec_alloc_frame();
avcodec_decode_video2(gVideoCodecCtx, gFrame, &frameFinished, packet);
...I guess I set all required properties properly but this function is returning only -1 :(
I just found the -1 is coming from
ret = avctx->codec->decode(avctx, picture, got_picture_ptr, avpkt) ;
in the avcodec_decode_video2() ;
Actually, what I’m wondering is if I can decode H264 packets (without RTP header) by avcodec_decode_video2().
Thanks for the help in advance.
/////////// added
OK, I’m still trying to find a solution. What I’m doing now is the below
** the H264 stream in this RTP stream is encoded by FU-A
-
receive a RTP packet
-
look if the second byte of the RTP header is > 0 which means it’s the first packet (and possibly will be followed)
-
see if the next RTP packet has > 0 at its second byte also, then it means the previous frame was a complete NAL or if this is < 0, the packet should be appended to the previous packet.
-
remove all RTP header of the packets so it has only like FU indicator | FU header | NAL
-
try play it with avcodec_decode_video2()
but it’s only returning -1..... am I supposed to remove FU indicator and header too ??
any suggestion will be very appreciated
thanks in advance.
-
-
h264 : K&R formatting cosmetics for header files (part I/II)
7 mai 2012, par Diego Biurrunh264 : K&R formatting cosmetics for header files (part I/II)
-
h264 : K&R formatting cosmetics for header files (part II/II)
7 mai 2012, par Diego Biurrunh264 : K&R formatting cosmetics for header files (part II/II)