
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (50)
-
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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 (...)
Sur d’autres sites (7521)
-
avconv : Fix volume adjustment for non-s16 sample formats
27 septembre 2011, par Alex Converseavconv : Fix volume adjustment for non-s16 sample formats
-
Reduce volume when the watermark playing using FFMPEG
2 novembre 2020, par Mouaad Abdelghafour AITALII'm using the
createWaterMark
method to create an audio watermark that play 3 times, theinjectWaterMark
inject the created watermark into the original audio file, everything works fine, but I would like to reduce the volume of the original audio file when the watermark start playing.

public static String createWaterMark(String inputPath, String outputPath, int duration) {
 return "-y -i " + inputPath + " -af apad -t " + duration / 3 + " " + outputPath;
 }

 public static String injectWaterMark(String inputPath, String waterMarkPath, String outputPath) {
 return "-y -i " + inputPath + " -filter_complex amovie=" + waterMarkPath + ":loop=0,asetpts=N/SR/TB[beep];[0][beep]amix=duration=shortest,volume=2 " + outputPath;
 }



Thank you


-
How to read realtime microphone audio volume in python and ffmpeg or similar
20 octobre 2016, par Ryan MartinI’m trying to read, in near-realtime, the volume coming from the audio of a USB microphone in Python.
I have the pieces, but can’t figure out how to put it together.
If I already have a .wav file, I can pretty simply read it using wavefile :
from wavefile import WaveReader
with WaveReader("/Users/rmartin/audio.wav") as r:
for data in r.read_iter(size=512):
left_channel = data[0]
volume = np.linalg.norm(left_channel)
print volumeThis works great, but I want to process the audio from the microphone in real-time, not from a file.
So my thought was to use something like ffmpeg to PIPE the real-time output into WaveReader, but my Byte knowledge is somewhat lacking.
import subprocess
import numpy as np
command = ["/usr/local/bin/ffmpeg",
'-f', 'avfoundation',
'-i', ':2',
'-t', '5',
'-ar', '11025',
'-ac', '1',
'-acodec','aac', '-']
pipe = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=10**8)
stdout_data = pipe.stdout.read()
audio_array = np.fromstring(stdout_data, dtype="int16")
print audio_arrayThat looks pretty, but it doesn’t do much. It fails with a [NULL @ 0x7ff640016600] Unable to find a suitable output format for ’pipe :’ error.
I assume this is a fairly simple thing to do given that I only need to check the audio for volume levels.
Anyone know how to accomplish this simply ? FFMPEG isn’t a requirement, but it does need to work on OSX & Linux.