
Recherche avancée
Autres articles (24)
-
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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (6914)
-
On-premise analytics demand grows as Google Analytics GDPR uncertainties continue
7 janvier 2020, par Jake Thornton — Privacy -
Why does not work audio element currentTime on ffmpeg encoded mp3 file in Chrome browser
25 juillet 2013, par PeterI have an HTML5 audio element :
<audio preload="auto">
<source src="./Sound/recording.mp3" type="audio/mpeg">
</source></audio>and I need to be able to play last 4 seconds from mp3 recording. My javaScript is :
audio.currentTime = audio.duration-4;
audio.play();Works ok in IE10 and Firefox, but Chrome starts playing from a wrong place. The difference between reported audio.currentTime and actual playback position is about 20s. The recording.mp3 is created with ffmpeg :
ffmpeg -i recording.wav -ab 32k recording.mp3
It works, when I strip the ID3v2 header from the recording.mp3 (deleting the first couple bytes in the file before the audio data).
It also works when I compress to ogg. Can somebody point me to the right direction (ffmpeg switches, audio element attributes or whatever) to get it work also in chrome ?
Thanks in advance
-
FFMPEG Reading audio from memory doesn't work
2 février 2021, par Tobi AkinyemiWhen I try to instantiate this struct, my program crashes :


struct MemoryAVFormat {
 MemoryAVFormat(const MemoryAVFormat &) = delete;

 AVFormatContext *ctx;
 AVIOContext *ioCtx;

 MemoryAVFormat(char *audio, size_t audio_length) :
 ctx(avformat_alloc_context()),
 ioCtx(create_audio_buffer_io_context(audio, audio_length)) {

 if (ctx == nullptr)
 throw audio_processing_exception("Failed to allocate context");

 if (ioCtx == nullptr)
 throw audio_processing_exception("Failed to allocate IO context for audio buffer");

 ctx->pb = ioCtx;
 ctx->flags |= AVFMT_FLAG_CUSTOM_IO;

 int err = avformat_open_input(&ctx, "nullptr", NULL, NULL);
 if (err != 0)
 throwAvError("Error configuring context from audio buffer", err);
 }

 AVIOContext *create_audio_buffer_io_context(char *audio, size_t audio_length) const {
 return avio_alloc_context(reinterpret_cast<unsigned char="char">(audio),
 audio_length,
 0,
 audio,
 [](void *, uint8_t *, int buf_size) { return buf_size; },
 NULL,
 NULL);
 }

 ~MemoryAVFormat() {
 av_free(ioCtx);
 avformat_close_input(&ctx);
 }
}
</unsigned>


I've read and tried every single tutorial on doing this and none of them work


Has anyone got this working before ?


crashes on the line :
int err = avformat_open_input(&ctx, "nullptr", NULL, NULL);