
Recherche avancée
Autres articles (54)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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 (8437)
-
librosa can't load wav file in aws lambda docker
30 novembre 2022, par Luka SavicI have an AWS Lambda function created using Docker.
I have librosa installed, ffmpeg installed using the solution from this question : install ffmpeg on amazon ecr linux python


I checked in a Lambda function with
os.system("ffmpeg -version")
and I managed to get valid output, stating different versions and parts of ffmpeg.

Problem is that when I do
librosa.load(wav_file)
it gives the following error :

/your/path/.venv/lib/python3.9/site-packages/librosa/util/decorators.py:88: UserWarning: PySoundFile failed. Trying audioread instead.
 return f(*args, **kwargs) 



From what I've read, librosa should natively support .wav files, even without ffmpeg, and even though I have ffmpeg installed, it doesn't work.


One more information, .wav file was downloaded, player, and loaded with librosa on my local PC without any problems. I tried also on different wav and mp3 files, and the problems were still there.


-
libavcodec : MIPS : MMI : Fix type mismatches
18 juillet 2020, par Jiaxun Yanglibavcodec : MIPS : MMI : Fix type mismatches
GCC complains about them.
Signed-off-by : Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by : Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
Getting wav buffer from stdout
3 août 2024, par KxAyI am trying to get a downsampled audio so that I can use it for an hotword detection API. In the solution I am currently using, the audio is correctly converted and the API is able to recognize the content of the audio file. However, I am constantly forced to write temporary output files. I have tried several times to use "pipe:1" in ffmpeg to output the converted audio as a stream to stdout, but it has always given me errors.


function downsampleAudio(pcmBuffer) {
 return new Promise((resolve, reject) => {
 const inputStream = new PassThrough();
 inputStream.end(pcmBuffer);

 let filePath = path.join(__dirname, "output.wav")

 const ffmpeg = spawn("ffmpeg", [
 "-f", "s16le", 
 "-ar", "48000", 
 "-ac", "1", 
 "-i", "pipe:0", 
 "-ar", "16000", 
 "-ac", "1", 
 "-c:a", "pcm_s16le", 
 filePath 
 ]);
 
 ffmpeg.stdin.on('error', (error) => {
 reject(new Error('Errore nello stream stdin di ffmpeg: ' + error.message));
 });

 ffmpeg.on('close', (code) => {
 if (code !== 0) {
 reject(new Error(`Il processo ffmpeg è terminato con codice ${code}`));
 } else {
 console.log('Conversione completata con successo');
 const waveBuffer = fs.readFileSync(filePath);
 fs.unlinkSync(filePath);
 resolve(waveBuffer)
 }
 });

 inputStream.pipe(ffmpeg.stdin);
 });
}



Can anyone help me figure out how to correctly use ffmpeg to output the audio as a stream to stdout without errors ? Thanks in advance !