
Recherche avancée
Autres articles (58)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (15639)
-
encoding by using ffmpeg library
22 août 2013, par MustafeI am currently developing an application by using
ffmpeg
library. I have a problem with encodingpcm/raw
datas. In ffmpeg/encoding_decoding.c source code, at line 146 in this function :buffer_size = av_samples_get_buffer_size(NULL, c->channels, c->frame_size, c->sample_fmt, 0);
buffer_size
is being calculated. My function always returns -22 which states an error. After a little examanation I noticed that in line 1888 atavcodec.h
it is stated as following which shows the reason. SinceCODEC_CAP_VARIABLE_FRAME_SIZE
is set my function returns -22 and my program terminates. In this case the encoding code example inffmpeg
's website also could not work. How can I solve this problem ?encoding: set by libavcodec in avcodec_open2(). Each submitted frame except the last must contain exactly frame_size samples per channel. May be 0 when the codec has CODEC_CAP_VARIABLE_FRAME_SIZE set, then the frame size is not restricted. decoding: may be set by some decoders to indicate constant frame size
-
bytestream : Make get_bytes_left compatible with overread
14 décembre 2019, par Andreas Rheinhardtbytestream : Make get_bytes_left compatible with overread
bytestream2_get_bytes_left returns an unsigned int ; as a result,
it returns big positive numbers if an overread already happened,
making it unsuitable for scenarios where one wants to allow this
in a controlled way (because the buffer is actually padded so that
no segfaults can happen). So change it to return an ordinary int.Also, bytestream2_get_bytes_left_p has been modified in the same way.
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
ffmpeg + play video loop
3 septembre 2013, par Javier RamírezDoes anyone know how to make a video using ffmpeg + Opengl play continuously ?. Because this is only played once
tiempo = glfwGetTime();
duracion = 1.0/25.0; // 1 second / 25 fps
while(1){
...
if(glfwGetTime() > tiempo + duracion){
if(av_read_frame(pFormatCtx,&packet) >= 0){
if(packet.stream_index == 0){
avcodec_decode_video2(pCodecCtx,pFrame,&frameFin,&packet);
if(frameFin)sws_scale(img_convert_ctx,pFrame->data,pFrame->linesize,0,pCodecCtx->height,pFrameRGB->data,pFrameRGB->linesize);
}
av_free_packet(&packet);
}
tiempo += duracion;
}
...
}I know av_read_frame function (...) returns 0 if the end of file. But how do I make the function again returns a value other than zero ? o How I can I make the video is constantly repeated ?