Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (54)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (10181)

  • installed ffmpeg not detected. Can't convert audio (python 2.7, mac os x)

    18 novembre 2017, par trezcast

    General information :

    I have a project in python that deals with audio classification ; the backend is complete but I’m suffering with the front-end. The backend requirement (that I can’t change) is that the audio file must be in wav format but I want users to be able to upload mp3 files as well. My front-end is a web server using python 2.7 and flask.

    So, I basically want to convert mp3 to wav, but keep on getting errors.
    (The complete code is at the bottom in case it is needed to understand the problem more clearly)

    My attempts :
    1- I used pydub library

    I installed homebrew, libav, and ffmpeg
    libav installation method : brew install libav —with-libvorbis —with-sdl —with-theora
    ffmpeg installation method : brew install ffmpeg —with-libvorbis —with-ffplay —with-theora

    Method1

    sound = AudioSegment.from_file(filename[i], format="mp3") #filename[i]=nameOfFile
    sound.export("input.wav", format="wav")

    Method2

    AudioSegment.from_file(filename[i], format="mp3").export("input.wav", format="wav")

    => Kept getting "file not found" and "cannot detect ffmpeg or avconv" runtime warning even though I installed ffmpeg and libav
    => Got same error above ("file not found") when I used "from_mp3" instead of "from_file"
    => Tried using "raw" instead of "mp3" and got "key error : sample_width" (couldn’t find what this error meant)
    Note : I made sure I’m in the right directory

    2- Used subprocess

    import subprocess
    subprocess.call(["ffmpeg", "-i",filename[i],"inputAudio.wav"])

    => Got "OSError : No such file or directory"

    I hope you can help me understand what the problem is and how to solve it...

    Complete Code :
    I have this at the top

    app = Flask(__name__)
    APP_ROOT = os.path.dirname(os.path.abspath(__file__))
    os.chdir(APP_ROOT)

    Inside the function that deals with the audio files

    data = request.files.getlist('file') #get all uploaded audio files
    fsize = len(data) #number of audio files
    i = 0 #index counter

    filename = ["" for x in range(fsize)] #LIST TO STORE EACH FILE'S NAME
    audiofile = ["" for x in range(fsize)] #LIST TO STORE CLASSIFICATION RESULTS OF EACH FILE


    #LOOP THROUGH EACH UPLOADED FILE
    for file in data:
       filename[i] = file.filename #ADD FILENAME TO LIST ABOVE
       destination = str(APP_ROOT)

    Problematic Part :

       if file.filename.endswith(".mp3"):
           from pydub import AudioSegment
           t = destination + "/" + filename[i]
           file.save(t) #SAVE UPLOADED MP3 FILE TO EXTRACT IT USING PYDUB

           sound = AudioSegment.from_file(filename[i], format="mp3")
           sound.export("input.wav", format="wav")
           os.remove(t) #DELETE MP3 FILE, WE ONLY WANT WAV
           destination +=  "/inputAudio.wav"

    Code Continuation :

    #STORE AUDIO FILE TO PREPARE FOR PROCESSING (CLASSIFICATION)
       else:
           destination +=  "/inputAudio.wav"
           file.save(destination)

    #FINAL STEP
       audiofile[i]=Raudio.start() #AUDIO PROCESSING (CLASSIFICATION)
       os.remove(destination) #DELETE AUDIO FILE TO PREVENT CLUTTERING OF FILES
       i += 1 #INCREMENT FILE INDEX
  • Anomalie #3875 : Impossible de voir les sous-rubriques

    9 février 2017, par denis -

    Juste pour préciser /158 donne en fait l’url complète /prog/2017/158/ qui pointe bien vers une rubrique.

    Et ça ne semble pas lié aux chiffres, si je crée une rubrique qui donne comme url coucou-coucou, j’ai bien accès à un article prog/2017/coucou-coucou/bonjour, si je la renomme en coucou l’url prog/2017/coucou/bonjour donne une erreur.

    C’est sans doute très marginal de se retrouver avec 2 urls /xxx et /xxx-xxx

  • Revision 95d0f87d6e : Fixing sub-optimal rdloop when testing supertx on 8x4/4x8 blocks Remove early t

    21 octobre 2014, par Yue Chen

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_rdopt.c



    Fixing sub-optimal rdloop when testing supertx on 8x4/4x8 blocks

    Remove early termination in vp9_rd_pick_inter_mode_sub8x8() in
    order to complete mode selection for 8x4/4x8 blocks which will
    try supertx in a higher level function.

    Change-Id : I457505257332f70d9cd8d22db52ad32ff15f7f87