
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (93)
-
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 ;
-
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 -
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
Sur d’autres sites (16719)
-
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
-
Is there a chance to check why a videostream on IOS does not work ?
13 septembre 2013, par mazleuI have a very strange problem.
To stream videos I use AMS (Adobe Media Server)
This works fine for the most Videos.
But 4 videos do not work on iOS devices. The first seconds work but then the Video break.
All Videos (over 1000) are convertet with the same ffmpeg settings.I try other settings and other converters but the Result are the same.
Is there any opportunity to show why IOS don't like this 4 Videos ?
Mediainfo form a failed video :
MediaInfoLib - v0.7.62
General
Complete name : ---
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 91.3 MiB
Duration : 24mn 27s
Overall bit rate mode : Variable
Overall bit rate : 522 Kbps
Encoded date : UTC 2013-09-12 14:24:13
Tagged date : UTC 2013-09-12 14:24:13
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 24mn 27s
Bit rate : 387 Kbps
Maximum bit rate : 4 885 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.014
Stream size : 67.7 MiB (74%)
Writing library : x264 core 130 r2273 b3065e6
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=28.0 / qcomp=0.70 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=50000 / vbv_bufsize=50000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:0.60
Encoded date : UTC 2013-09-12 14:24:13
Tagged date : UTC 2013-09-12 14:24:16
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 24mn 27s
Bit rate mode : Variable
Bit rate : 132 Kbps
Maximum bit rate : 172 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : 67ms
Stream size : 22.7 MiB (25%)
Encoded date : UTC 2013-09-12 14:24:15
Tagged date : UTC 2013-09-12 14:24:16 -
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);