Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (91)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (3547)

  • pyinstaller and moviepy, ffmpeg works from terminal but not from finder

    24 juin 2017, par Todd

    I am packaging python using pyinstaller 2.1 on OSX Mavericks. I have done this successfully in the past, but this is my first package that uses moviepy and ffmpeg. I use the following import :

    from moviepy.video.io import ffmpeg_reader

    Without this line in the code, everything works fine and I can launch my final package from its icon in finder. With the moviepy import, it will work if I launch from the terminal like this :

    open ./myapp.app

    but it will not open if I click on the icon from finder (opens quickly and crashes). I am assuming this has something to do with paths or environment variables that are set in terminal, but are not transferred to my packaged app. I have tried various hidden imports in pyinstaller for moviepy and its dependencies, but nothing seems to work. —debug mode hasn’t provided much info to track it down. Any other ideas ?

    Thanks !

  • Doesn't python's ffmpy works with temporary files made using tempfile.TemporaryFile ?

    8 juin 2017, par tkhurana96

    I am making a function whose purpose is to take a mp3 file and analyse and process it. So, taking help from this SO answer, I am making a temporary wav file, and then using python ffmpy library I am trying to convert mp3(actual given file) to wav file. But the catch is that I am giving the temporary wav file generated above as the output file to ffmpy to store the result to i.e. I am doing this :

    import ffmpy
    import tempfile
    from scipy.io import wavfile

    # audioFile variable is known here

    tempWavFile = tempfile.TemporaryFile(suffix="wav")
    ff_obj = ffmpy.FFmpeg(
                         global_options="hide_banner",
                         inputs={audioFile:None},
                         outputs={tempWavFile: " -acodec pcm_s16le -ac 1 -ar 44000"}
                        )

    ff_obj.run()

    [fs, frames] = wavfile.read(tempWavFile)
    print(" fs is: ", fs)
    print(" frames is: ", frames)

    But on line ff_obj.run() this error occurs :

    File "/home/tushar/.local/lib/python3.5/site-packages/ffmpy.py", line 95, in run
       stderr=stderr
     File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
       restore_signals, start_new_session)
     File "/usr/lib/python3.5/subprocess.py", line 1490, in _execute_child
       restore_signals, start_new_session, preexec_fn)
    TypeError: Can't convert '_io.TextIOWrapper' object to str implicitly

    So, my question is :

    • When I replaced tempWavFile = tempfile.TemporaryFile(suffix="wav") with tempWavFile = tempfile.mktemp('.wav'), no error occurs, why so ?
    • What does this error mean and what is the cause of it’s occurrence and how can it be corrected ?
  • Doesn't python's ffmpy works with temporary files ?

    8 juin 2017, par tkhurana96

    I am making a function whose purpose is to take a mp3 file and analyse and process it. So, taking help from this SO answer, I am making a temporary wav file, and then using python ffmpy library I am trying to convert mp3(actual given file) to wav file. But the catch is that I am giving the temporary wav file generated above as the output file to ffmpy to store the result to i.e. I am doing this :

    import ffmpy
    import tempfile
    from scipy.io import wavfile

    # audioFile variable is known here

    tempWavFile = tempfile.TemporaryFile(suffix="wav")
    ff_obj = ffmpy.FFmpeg(
                         global_options="hide_banner",
                         inputs={audioFile:None},
                         outputs={tempWavFile: " -acodec pcm_s16le -ac 1 -ar 44000"}
                        )

    ff_obj.run()

    [fs, frames] = wavfile.read(tempWavFile)
    print(" fs is: ", fs)
    print(" frames is: ", frames)

    But on line ff_obj.run() this error occurs :

    File "/home/tushar/.local/lib/python3.5/site-packages/ffmpy.py", line 95, in run
       stderr=stderr
     File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
       restore_signals, start_new_session)
     File "/usr/lib/python3.5/subprocess.py", line 1490, in _execute_child
       restore_signals, start_new_session, preexec_fn)
    TypeError: Can't convert '_io.TextIOWrapper' object to str implicitly

    So, my question is :

    • Doesn’t ffmpy work with temporary files, and if it doesn’t then what is the workaround(except the one mentioned in the linked question, as it increases a dependency) ?
    • What does this error mean and what is the cause of it’s occurrence and how can it be corrected ?