
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (58)
-
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 -
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 (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (7325)
-
FFMpeg : audio resampling changes slightly the speed of the music [on hold]
24 octobre 2018, par thenaohIn my Android app, I use the FFMpeg library to extract audio samples from an audio file on the fly, and also resample them (since my file is encoded in 44100 Hz, and my device expects 48000 Hz sound).
The problem is : even if the sound quality is perfect, the speed is a little bit higher than the regular speed of the music.
The difference is very small (small enough so you won’t hear it), but you can hear it when you play the same song at the same time on a regular player (like VLC for example).
I think it comes from the resampling, but I don’t know how to fix it.
Here is my code (I get my samples thanks to the
getPcmFloat()
function) : https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099aHow can I correct the speed of the music ?
Thanks for your help.
-
Seekbar issue in FFMPEG
25 décembre 2014, par user543I am using FFMPEG for playing audio files. But, seeking file for some audio files are inaccurate.Means, song is playing out of total duration also. This issue is coming while seeking the audio file. If I play continuously without seek, then there is no issue. I have used below code :
int stream_index = av_find_default_stream_index(fmt_ctx);
int64_t target = av_rescale(seekValue, audio_st->time_base.den,
audio_st->time_base.num);
if (avformat_seek_file(fmt_ctx, stream_index, INT64_MIN, target, INT64_MAX,
AVSEEK_FLAG_FRAME) < 0) {
av_log(NULL, AV_LOG_ERROR, "ERROR av_seek_frame");
} else {
av_log(NULL, AV_LOG_ERROR, "SUCCEEDED av_seek_frame");
avcodec_flush_buffers(fmt_ctx->streams[stream_index]->codec);
}Any help ?
-
discord.py FFMPEG Option reconnect not found
19 avril 2021, par LukeleleI'm working on a music bot using discord.py, I've looked online and found that I needed to pass in ffmpeg options into discord.FFmpegPCMAudio() for the bot to not stop half way through the song. However it returns an error "Option reconnect not found."


vc = await ctx.message.author.voice.channel.connect()

ydl_opts = {
 'format': 'bestaudio/best',
 'outtmpl': 'C:/Luke/YoutubeDLAudio/audio.mp3',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192'
 }],
 'prefer_ffmpeg': True,
 'keepvideo': True
}

ffmpeg_opts = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn'} # <---------------

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([url])

vc.play(discord.FFmpegPCMAudio(executable="C:/Luke/ffmpeg/bin/ffmpeg.exe", source="C:/Luke/YoutubeDLAudio/audio.mp3", **ffmpeg_opts)) <--------------



Does anyone know the problem ? Thanks for any help.