
Recherche avancée
Autres articles (66)
-
Les sons
15 mai 2013, par -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (2844)
-
Play mp3 data with audiotrack with ffmpeg
1er février 2014, par Ichigo KurosakiI am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it.
I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track class, but requires PCM data only. So need to convert mp3 to pcm, so using ffmpeg.
My code for conversion is
AVCodec *codec;
AVCodecContext *c= NULL;
int out_size, len;
uint8_t *outbuf;
int iplen=(*env)->GetArrayLength(env, mp3buf);
int16_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
AVPacket avpkt;
av_init_packet(&avpkt);
av_register_all();
avcodec_register_all();
codec = avcodec_find_decoder(CODEC_ID_MP3);
if(!codec){
__android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "Codec not found");
}
c = avcodec_alloc_context();
outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
avpkt.data = (*env)->GetByteArrayElements(env,mp3buf,NULL);
avpkt.size = (*env)->GetArrayLength(env, mp3buf);
out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
int ao=avcodec_open(c, codec);
if (ao < 0) {
__android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "avcodec not open");
}
len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);The Problem is
avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);
returns -1 always.Cant figure out whats wrong.
Any help appreciated.
-
Image files as inputs with AWS Elastic Transcoder ?
7 décembre 2017, par GeuisHere’s my situation. I’ve been working on building a service at work that takes dynamically generated images and outputs animations as mp4 or gif. The user has the options of setting dimensions, time for each frame, etc.
I have this working currently with ffmpeg. It works ok, but is difficult (and potentially expensive) to scale due largely to the cpu/memory requirements that ffmpeg needs.
I just spent some time experimenting with AWS’s Elastic Transcoder. It doesn’t seem to like static image files (jpg, png) as source material in jobs. The file types aren’t listed under the available Preset options either.
I’m sure that I could adapt the existing architecture to save the static images as video files (sound isn’t needed) and upload those. That will still require ffmpeg to be in the pipeline though.
Are there any other AWS services that might work with my needs and allow the use of Elastic Transcoder ?
-
incompatible types when assigning to type 'atomic_int' from type 'int'
20 décembre 2017, par Lengesrc/libavcodec/h264_slice.c: In function 'ff_h264_execute_decode_slices': src/libavcodec/h264_slice.c:2757:36: error: incompatible types when assigning to type 'atomic_int' from type 'int'
sl->er.error_count = 0;
^ src/libavcodec/h264_slice.c:2781:48: error: invalid operands to binary
+ (have 'atomic_int' and 'atomic_int')
h->slice_ctx[0].er.error_count += h->slice_ctx[i].er.error_count;
^ make: *** [libavcodec/h264_slice.o] Error 1 make: *** Waiting for unfinished jobs....I compile ffmpeg for android. whether the problem is my environment configure or source code ?