Advanced search

Medias (1)

Tag: - Tags -/Rennes

Other articles (25)

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

    5 September 2013, by

    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;

  • Publier sur MédiaSpip

    13 June 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

  • Support de tous types de médias

    10 April 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...); audio (MP3, Ogg, Wav et autres...); vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...); contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google (...)

On other websites (4558)

  • Unable to use Multithread for librosa melspectrogram

    15 April 2019, by Raven Cheuk

    I have over 1000 audio files (it’s just a initial development, in the future, there will be even more audio files), and would like to convert them to melspectrogram.

    Since my workstation has a Intel® Xeon® Processor E5-2698 v3, which has 32 threads, I would like to use multithread to do my job.

    My code

    import os
    import librosa
    from librosa.display import specshow
    from natsort import natsorted
    import numpy as np
    import sys
    # Libraries for multi thread
    from multiprocessing.dummy import Pool as ThreadPool
    import subprocess
    pool = ThreadPool(20)

    songlist = os.listdir('../opensmile/devset_2015/')
    songlist= natsorted(songlist)

    def get_spectrogram(song):
       print("start")
       y, sr = librosa.load('../opensmile/devset_2015/' + song)

       ## Add some function to cut y
       y_list = y
       ##

       for i, y_i in enumerate([y_list]): # can remove for loop if no audio is cut
           S = librosa.feature.melspectrogram(y=y, sr=sr, n_mels=128,fmax=8000)
           try:
               np.save('./Test/' + song + '/' + str(i), S)
           except:
               os.makedirs('./Test/' + song)
               np.save('./Test/' + song + '/' + str(i), S)
           print("done saving")

    pool.map(get_spectrogram, songlist)

    My Problem

    However, my script freezes after finished the first conversion.

    To debug what’s going on, I commented out S = librosa.feature.melspectrogram(y=y, sr=sr, n_mels=128,fmax=8000) and replace it by S=0.
    Then the multi-thread code works fine.

    What’s wrong with the librosa.feature.melspectrogram function? Does it not support multi-thread? Or is it a problem of ffmpeg? (When using librosa, it asks me to install ffmpeg before.)

  • Revision 4aa2d593520b162518e3bef7fc6eaeff1e4d8f0d: #FORMULAIRE_CONFIGURER_PREVISUALEUR remplace configuration/previsualiseur ...

    4 October 2010, by Cerdic — Log

    #FORMULAIRE_CONFIGURER_PREVISUALEUR remplace configuration/previsualiseur l’icone qui etait utilisee est reformatee en 24x24 au lieu de 26x20 et renomee preview-24.png git-svn-id: svn://trac.rezo.net/spip/spip@16391 caf5f3e8-d4fe-0310-bb3e-c32d5e47d55d

  • Anomalie #3665 (Nouveau): notice Undefined index: REDIRECT_STATUS

    25 January 2016, by jluc -

    Dans ecrire/inc/headers.php (220) au lieu de
    if ($GLOBALS[’REDIRECT_STATUS’] && $GLOBALS[’REDIRECT_STATUS’] $status)

    il faudrait
    if (isset($GLOBALS[’REDIRECT_STATUS’]) && $GLOBALS[’REDIRECT_STATUS’] $status)