
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (86)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (10452)
-
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.
-
-
how to decode h264 data from rtsp stream directively to BGR24 pixel format for cv::Mat or cv::cuda::GpuMat with ffmpeg c lib on NVIDIA GPU ?
30 septembre 2019, par WussupI want decode h264 dirctively to cv::Mat or cv::cuda::GpuMat without sws_scale to saving CPUs.
So is there any way to make it realized ? thanks in advance.
-
Write video in a memory stream using libav
28 novembre 2012, par Dídac PérezI am successfully capturing video packets from the network using libav. Currently, I have an AVFormatContext object in which I can write the header, the packets, etc... The point is that I want to dump everything on this context into a file when required. What should I do ?
Thanks in advance,
Dídac Pérez