Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (54)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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, par

    Pré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 2013

    Puis-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 Savic

    I 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 Yang
    libavcodec : 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>

    • [DH] libavcodec/mips/h264dsp_mips.h
    • [DH] libavcodec/mips/h264dsp_mmi.c
    • [DH] libavcodec/mips/xvid_idct_mmi.c
    • [DH] libavcodec/mips/xvididct_mips.h
  • Getting wav buffer from stdout

    3 août 2024, par KxAy

    I 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.

    &#xA;

    function downsampleAudio(pcmBuffer) {&#xA;    return new Promise((resolve, reject) => {&#xA;        const inputStream = new PassThrough();&#xA;        inputStream.end(pcmBuffer);&#xA;&#xA;        let filePath = path.join(__dirname, "output.wav")&#xA;&#xA;        const ffmpeg = spawn("ffmpeg", [&#xA;            "-f", "s16le",   &#xA;            "-ar", "48000",  &#xA;            "-ac", "1",     &#xA;            "-i", "pipe:0",  &#xA;            "-ar", "16000",  &#xA;            "-ac", "1",      &#xA;            "-c:a", "pcm_s16le", &#xA;            filePath &#xA;        ]);&#xA;                    &#xA;        ffmpeg.stdin.on(&#x27;error&#x27;, (error) => {&#xA;            reject(new Error(&#x27;Errore nello stream stdin di ffmpeg: &#x27; &#x2B; error.message));&#xA;        });&#xA;&#xA;        ffmpeg.on(&#x27;close&#x27;, (code) => {&#xA;            if (code !== 0) {&#xA;                reject(new Error(`Il processo ffmpeg &#xE8; terminato con codice ${code}`));&#xA;            } else {&#xA;                console.log(&#x27;Conversione completata con successo&#x27;);&#xA;                const waveBuffer = fs.readFileSync(filePath);&#xA;                fs.unlinkSync(filePath);&#xA;                resolve(waveBuffer)&#xA;            }&#xA;        });&#xA;&#xA;        inputStream.pipe(ffmpeg.stdin);&#xA;    });&#xA;}&#xA;

    &#xA;

    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 !

    &#xA;