
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (84)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (9524)
-
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.
-
-
Is there an easy way to use x264 presets with ffmpeg in code ?
29 août 2014, par NiorehI’m trying to encode video with ffmpeg and x264. I know ffmpeg can use x264 presets when using the program ffmpeg from command line. But is it possible to easily use these presets when encoding with ffmpeg in code ?
If not, what is the best way to set the x264 parameters from ffmpeg code ? Is it just using the properties of the AVCodecContext ? Are all the x264 options available through this ?
Thank you !
-
Is there an easy way to use x264 presets with ffmpeg in code ?
29 août 2014, par NiorehI’m trying to encode video with ffmpeg and x264. I know ffmpeg can use x264 presets when using the program ffmpeg from command line. But is it possible to easily use these presets when encoding with ffmpeg in code ?
If not, what is the best way to set the x264 parameters from ffmpeg code ? Is it just using the properties of the AVCodecContext ? Are all the x264 options available through this ?
Thank you !