
Recherche avancée
Autres articles (21)
-
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (6647)
-
Array.push returns a number, not an array.
17 octobre 2013, par jonrohanArray.push returns a number, not an array.
-
avformat_alloc_context returns null
4 mars 2017, par dk123I’m currently trying to play a video from a stream through FFMPEG. I’m currently stuck however on a particular section : regardless of what I do,
avformat_alloc_context();
seems to return null.Would anyone perhaps know what might be going on ?
I’ve been referencing the link below :
Reading a file located in memory with libavformat -
ffmpeg's av_parser_init(AV_CODEC_ID_V210) returns null
31 mai 2017, par VorpalSwordI’m trying to read in a .mov file that has video encoded in V210 pixel format (AKA : uncompressed, YCbCr, 10 bits per component) for some image quality tests I’m doing.
My tech stack is ffmpeg 3.3.1 / gcc / Darwin.
The decode_video.c example compiles, links & runs just fine but it has the codec ID hard-coded as
AV_CODEC_ID_MPEG1VIDEO
. I reasonably/naïvely thought that changing this toAV_CODEC_ID_V210
would get me a long way to decoding my test files.Unfortunately not. The call to av_parser_init returns null.
Can anyone tell me why ? And how to fix this ? Thanks.
#include
#include
#include
#include <libavcodec></libavcodec>avcodec.h>
... // irrelevant code omitted, see linked example for details
avcodec_register_all();
pkt = av_packet_alloc();
if (!pkt)
exit(1);
/* set end of buffer to 0 (this ensures that no overreading happens for damaged MPEG streams) */
memset(inbuf + INBUF_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE);
/* find the MPEG-1 video decoder */
// codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO); this works!
codec = avcodec_find_decoder(AV_CODEC_ID_V210); // this injects my problem
if (!codec) {
fprintf(stderr, "Codec not found\n");
exit(1);
}
printf ("codec->id: %d, %d\n", AV_CODEC_ID_V210, codec->id); // codec->id: 128, 128
parser = av_parser_init(codec->id);
if (!parser) {
fprintf(stderr, "parser not found\n");
exit(1); // program exits here when AV_CODEC_ID_V210 used
}