
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (81)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 -
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.
Sur d’autres sites (9932)
-
Revision 6522 : $GLOBALS[’liste_des_forums’] a disparu
12 juin 2012, par kent1 — Log$GLOBALSliste_des_forums ? a disparu
-
ffmpeg generate overlay complex filter for audio with background image
8 janvier 2016, par user1793606I am experimenting with ffmpeg and would like to generate overlay complex filter for audio with background image. The code normally works, except for when adding
-filter_complex "[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a
it crashes. I found the example code at https://trac.ffmpeg.org/wiki/Waveform Any help is appreciated.Command '['c:/ffmpeg/bin\\ffmpeg.exe', '-y', '-loop', '1', '-r', '1', '-i', 'temp\\bg.png', '-i', 'test.mp3', '-filter_complex', '[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]', '-map', '[v]', '-map', '0:a', '-c:v', 'libx264', '-preset', 'ultrafast', '-tune', 'stillimage', '-crf', '15', '-pix_fmt', 'yuv420p', '-strict', 'experimental', '-c:a', 'aac', '-b:a', '256k', '-shortest', '-threads', '0', 'done/test.mp4']'
EDIT 1 :
I tested this with the new verson :
ffmpeg -y -i input.mp3 -i background.png -filter_complex "[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy output.mp4
It generates an output file, but only the waveform, no background included. My end goal is to generate the waveform over the background.
-
discord.py. FFmpegPCMAudio. Applying filters to running source FFmpeg sub-procces
23 janvier 2024, par Vladimir BlanvenHow can I apply a new filter (e.g. the same afade) to source, after running voice.play(source) at any time, without killing the current one and creating a new ffmpeg sub-process ? For instance the user will call a voice.pause() command, after which the afade=t=out filter will be applied to the current timestamp, and only then will the source audio be stopped.


start_time = datetime.now()
audio_path = os.path.join(CURRENT_DIRECTORY, MUSIC_FOLDER_NAME, audiofile)
audio_long = MP3(audio_path)
end_time = int(audio_long.info.length)
before_options= f'-ss 0:00:00'
options = f'-af "afade=t=in:st=0:d={FADE_DURATION}, afade=t=out:st={end_time-FADE_DURATION}:d={FADE_DURATION}"'
source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(source=audio_path, executable=FFMPEG_EXECUTABLE_FILE_PATH, before_options=before_options, options=options))
voice.play(source)



For now I have this kinda premitive sort of construction (simulating linear afade=t=out effect) :


volume = 1.0
for _ in range(FADE_DURATION * 10):
 volume -= (1.0 / (FADE_DURATION * 10.0)
 voice.source.volume = volume
 await asyncio.sleep(SLEEP_DURATION)