
Recherche avancée
Autres articles (53)
-
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 -
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 (...) -
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 (10808)
-
On memcpy application crashes - FFMPEG, C++
3 mai 2013, par SpamdarkI have been working with ffmpeg, I got it working good, but I got a memory leak, I followed some instructions to fix it (like use
av_frame_unref
), so I needed to update ffmpeg to the version 1.2.
This is weird for me, because everything was working good, and then, with the update, the application started to crash in a memcpy.Honestly, I don't know what's happening, I tried to google it but no answer. I would appreciate your help, here is the segment of the code which is failing :
int WbMedia::DecodeAudioFrame(int16_t *audio_buf){
static AVFrame *frame;
static AVPacket pkt;
static uint8_t *audio_pkt_data = NULL;
static int audio_pkt_size = 0;
static bool first_time = true;
if(first_time){
first_time=false;
}
int len1, data_size = 0;
for(;;){
bool do_rt = false;
while(audio_pkt_size > 0){
int obt_frame = 0;
if (!frame) {
if (!(frame = avcodec_alloc_frame())) {
MessageBox(0,"Out of memory error","Error: Memory",MB_ICONWARNING | MB_OK);
return -1;
}
}
len1 = avcodec_decode_audio4(_audio_ccontext,frame,&obt_frame,&pkt);
if(len1 < 0){
audio_pkt_size = 0;
break;
}
if(obt_frame){
data_size = av_samples_get_buffer_size(NULL,channel_count,sample_fr,_audio_ccontext->sample_fmt,1);
memcpy(audio_buf,frame->data[0],data_size);
}
audio_pkt_data+=len1;
audio_pkt_size-=len1;
if(data_size < 0){
continue;
}
return data_size;
}
if(pkt.data){
//MessageBox(0,"hi","Hi",MB_OK); // This is only for test if the app si reaching this av_free_packet
av_free_packet(&pkt);
}
if(do_rt){
return data_size;
}
// Try to get a new packet
if(!audio_packets.empty()){
WaitForSingleObject(Queue_Audio_Mutex,INFINITE);
pkt = *audio_packets.front();
audio_packets.pop();
ReleaseMutex(Queue_Audio_Mutex);
audio_pkt_size = pkt.size;
audio_pkt_data = pkt.data;
}else{
return -1;
}
}
return 0;
}Thanks so much.
-
Video editor application in android [on hold]
26 janvier 2019, par Mustafa ÇakarI want to make a video editor app, I also I want to add and remove text in the video. You can check renderforest video tab for example. I can use FFMPEG for basic editing operations like cropping, cutting, but I have no idea about set text or change text in the video. Do you have a source or library to suggest ? Sorry for my bad english.
-
Révision 18749 : Application du patch de JLuc concernant la mise en forme des formulaires de conf...
20 novembre 2011, par marcimat -Ticket #2408