
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (84)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
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 (...)
Sur d’autres sites (10722)
-
Python / Discord FFMPEG playing not a audio
19 août 2022, par F L R U ZI wanted to play an mp3 file in a voice channel, however, it gives me an error... I have already installed FFMPEG correctly on my computer.


My Code :


@bot.command()
async def joinandplay(ctx):
 song = os.path.isfile("musik.mp3")
 voice_channel = bot.get_channel(940326390857883648)
 vc = await voice_channel.connect()
 voice = discord.FFmpegPCMAudio(song)
 vc.play(voice)



The error :


AttributeError: 'FFmpegPCMAudio' object has no attribute '_process'



-
FFMPEG : How to merge two sounds with good quality ?
26 avril 2021, par Mahmoud EidarousI'm trying to merge a recorded sound with an audio file and make it sound like an original song.


I'm using this command


ffmpeg -i audiofile.mp3 -i recorded_file.wav -filter_complex "[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a1]; [1:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=7[a2]; [a1][a2]amerge=inputs=2,pan=stereo|c0code>


This command does achieve the merge, but the quality of the output song is very bad.


I tried to manipulate the
volume
values but still the quality is bad.

I believe a filter is required on the recorded sound or something...


Any help to make the output sound like an original song would be really appreciated.


-
Python FuncAnimation is saved only 30%
4 mars 2017, par cvutI am trying to make a movie out of data I’ve calculated. I am using ffmpeg writer. When I start the animation in Spyder it is working fine and goes to the end, but when I try to save it it goes only for first 30% of animation. How can I make it to save the whole animation ?
Here is a bit of code( it’s long) ; MM is place where the matrices are stored (1200 of them).
import matplotlib
matplotlib.use("Agg")
from mpl_toolkits.mplot3d import axes3d
import matplotlib.animation as animation
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
nx = 10
ny = 10
X=np.linspace(0, Lx, nx)
Y=np.linspace(0, Ly, ny)
Writer = animation.writers['ffmpeg']
writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1)
plt.ion()
fig = plt.figure()
im = plt.contourf(X, Y, MM[0], np.linspace(T_ok,np.max(MM[-1]),150), cmap = cm.hot)
ax = fig.add_subplot(111, projection='3d')
plt.colorbar(im)
def anime(i):
ax.cla()
im = ax.contourf(X, Y, MM[i], np.linspace(T_ok,np.max(MM[-1]),150), cmap = cm.hot)
plt.title('%5.3f'%i)
return im,
anim = animation.FuncAnimation(fig, anime)
anim.save('anime.mp4', writer=writer)EDIT : I just set frames to 10000 and it’s working, but I would like to know why. There are 1200 matrices that should be plotted.