
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (52)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (6412)
-
avcodec/libfdk-aacenc : change MODE_7_1_FRONT_CENTER to map to AV_CH_LAYOUT_7POINT1_WI...
26 janvier 2014, par Michael Niedermayeravcodec/libfdk-aacenc : change MODE_7_1_FRONT_CENTER to map to AV_CH_LAYOUT_7POINT1_WIDE_BACK
This was suggested by Rodeo on IRC
<Rodeo> for consistency with the rest, MODE_7_1_FRONT_CENTER would be AV_CH_LAYOUT_7POINT1_WIDE_BACK (since LS+RS is mapped to back channels in other modes)Reviewed-by : Jean First <jeanfirst@gmail.com>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at> -
Is it possible to concatenate few videos together, setting their timings and displaying background image, if no video for the current frame ?
13 juillet 2020, par Valeryi CherdakovI have an audio track, say, a few minutes long, as well as several short videos of several tens of seconds. For each of these videos I have a timing - the video should start at a certain second. The audio tracks of these videos are not needed.
The output video should last exactly as long as the audio lasts.
If at the moment there is no video to display, a picture should be displayed (as if the picture is on layer #1, and the rest of the videos are on layer #2).


Is it possible to complete this task using a command or a series of ffmpeg commands ?


-
SDL2 + ffmpeg2 intermittent clicks instead of audio
25 janvier 2014, par FertoVordalastrUsing c++, SDL2, SDL2_mix, ffmpeg2.
Inited SDL2_mix with callback
Mix_HookMusic(MusicPlayer, &g_audioPos);
Decoded audio from ogg to AVFrame* by this code :
while(av_read_frame(m_formatContext, &m_packet) >= 0)
{
if(m_packet.stream_index == m_audioStream)
{
int audio_frame_finished;
avcodec_decode_audio4(m_audioCodecContext, m_audioFrame, &audio_frame_finished, &m_packet);
if(!audio_frame_finished)
{
continue;
}
}
}After this code i have frame with some
m_audioFrame->data[0]
andm_audioFrame->linesize[0] == 4096
Once in a while my callback being called :
void MusicPlayer(void *_udata, Uint8 *_stream, int _len)
{
if(!g_audioData)
{
return;
}
AudioData* audio = reinterpret_cast(g_audioData);
if(!audio || audio->Frame->linesize[0] == 0)
{
return;
}
SDL_memcpy((Uint8*)audio->Data + audio->Pos, (Uint8*)audio->Frame->data[0], audio->Frame->linesize[0]);
audio->Pos+= audio->Frame->linesize[0];
int rest = g_chunkSize - audio->Pos;//frame->linesize[0];
if(rest <= 0)
{
SDL_memcpy(_stream, audio->Data, _len);
audio->Pos = 0;
*(int*)_udata += _len;
}
}_len == 8192, so i must push 2 frames to fill stream, but all i get - clicks in my speaker. What am i doing wrong ?
PS : Tried to reopen MIX with
Mix_OpenAudio(m_audioCodecContext->sample_rate, AUDIO_S16SYS, m_audioCodecContext->channels, 4096);
. Interesting thing ism_audioCodecContext->channels == 2
and when my callback being called_len = 16384
. Have no idea what to do. Please help !!!