
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 (89)
-
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 (...) -
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 (5420)
-
Replace blank spaces to run command
1er mai 2017, par ChrisBlpI’m using Runtime.getRuntime.exec(String) to cut some songs with ffmpeg.
But when my song has a name with a blankspace it doesn’t work ...So before I cut the song, I want to replace every blank space of my songs by "\ ".
I did that :
String in = directory+songs.get(i);
String out = directory+"trimed_"+songs.get(i);
in.replaceAll(" "," \\ ");
out.replaceAll(" ", "\\ ");
String str = "ffmpeg -t 1 -i "+in+" -vcodec copy "+out;
Runtime.getRuntime().exec(str);But it doesn’t replace anything at all when I print str, am I missing something ?
-
Can pyAudioAnalysis be used on a live http audio stream ?
30 mars 2022, par TompoI am trying to use pyAudioAnalysis to analyse an audio stream in real-time from a HTTP stream. My goal is to use the Zero Crossing Rate (ZCR) and other methods in this library to identify events in the stream.


pyAudioAnalysis only supports input from a file but converting a http stream to a .wav will create a large overhead and temporary file management I would like to avoid.


My method is as follows :


Using ffmpeg I was able to get the raw audio bytes into a subprocess pipe.


try:
 song = subprocess.Popen(["ffmpeg", "-i", "https://media-url/example", "-acodec", "pcm_s16le", "-ac", "1", "-f", "wav", "pipe:1"],
 stdout=subprocess.PIPE)



I then buffered this data using pyAudio with the hope of being able to use the bytes in pyAudioAnalysis


CHUNK = 65536

p = pyaudio.PyAudio()

stream = p.open(format=pyaudio.paInt16,
 channels=1,
 rate=44100,
 output=True)

data = song.stdout.read(CHUNK)

while len(data) > 0:
 stream.write(data)
 data = song.stdout.read(CHUNK)



However, inputting this data output into AudioBasicIO.read_audio_generic() produces an empty numpy array.


Is there a valid solution to this problem without temporary file creation ?


-
Retain EXIF and ICC headers with client-side image processing. Closes #1207.
11 juin 2013, par blueimpRetain EXIF and ICC headers with client-side image processing. Closes #1207.
Use Exif data thumbnails if available, which increases UI performance
largely when displaying thumbnails of large image files.