Recherche avancée

Médias (91)

Autres articles (82)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (5970)

  • How do you get pydub to find ffmpeg ?

    11 juin 2024, par Isaac Howse

    I'm trying to import pydub into my python program but any time I run the code it says it can't locate where ffmpeg is. I have tried everything including putting "pip install ffmpeg-python" in command prompt, juggling around the locations of the ffmpeg and python files, changing the system environment lables in PATH (although this is not saving for some reason)
I don't know what to do from here

    


    My exact code from before would've looked like this :

    


    import pydub
import ffmpeg
from pydub import AudioSegment
trumpet = AudioSegment.from_mp3("C:/Users/*redacted*/Downloads/trumpet-e4-14829.mp3")
pydub.playback.play(trumpet)


    


    And I got this beautiful long error message :

    


    Warning (from warnings module):&#xA;  File "C:\Users\*redacted*\AppData\Roaming\Python\Python312\site-packages\pydub\utils.py", line 170&#xA;    warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\*redacted*\pydub test.py", line 4, in <module>&#xA;    trumpet = AudioSegment.from_mp3("C:/Users/*redacted*/Downloads/trumpet-e4-14829.mp3")&#xA;  File "C:\Users\*redacted*\AppData\Roaming\Python\Python312\site-packages\pydub\audio_segment.py", line 796, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "C:\Users\*redcated*\AppData\Roaming\Python\Python312\site-packages\pydub\audio_segment.py", line 651, in from_file&#xA;    file, close_file = _fd_or_path_or_tempfile(file, &#x27;rb&#x27;, tempfile=False)&#xA;  File "C:\Users\*redacted*\AppData\Roaming\Python\Python312\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile&#xA;    fd = open(fd, mode=mode)&#xA;OSError: [Errno 22] Invalid argument: &#x27;C:/Users/*redacted*/Downloads/trumpet-e4-14829.mp3&#x27;&#xA;</module>

    &#xA;

  • FFMPEG Concat failing - System cannot find the file specified

    16 janvier 2017, par geekman

    I’m a PC. I just reversed a video, and want to combine the original file and the reversed file into one new output.mp4 file

    I’m using code copied directly from the ffmpeg wiki

    ffmpeg -i input1.mp4 -i input2.webm \
    -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \
    -map "[v]" -map "[a]" <encoding options="options"> output.mkv
    </encoding>

    This is my version :

    ffmpeg -i C:\xampp\htdocs\reviews\uploads\0115171331.mp4 -i C:\xampp\htdocs\reviews\uploads\R0115171331.mp4 \
    -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \
    -map "[v]" -map "[a]"  C:\xampp\htdocs\reviews\output.mp4

    And when I run it, it just gives me :

    The system cannot find the file specfied.

    Again, my other ffmpeg commands worked, and these files (except for output) do exist. I’ve double checked.

    Any idea what could be going wrong ?

  • Elevenlabs API unable to find ffmpeg on device (Python 3.11)

    3 août 2023, par Ben Dyer

    When I'm trying to generate and play some speech using the elevenlabs API, the following text occurs at the very beginning of the program :&#xA;Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;This is despite ffmpeg being installed correctly, and being recognized by Powershell. The relevent code is below.

    &#xA;

    import openai, requests, ffmpeg, pydub&#xA;from elevenlabs import *&#xA;&#xA;set_api_key(&#x27;i have my key here&#x27;)&#xA;pydub.AudioSegment.converter = &#x27;C:/ffmpeg/bin/ffmpeg.exe&#x27;&#xA;&#xA;audio = generate(&#xA;  text=(response["choices"][0]["message"]["content"]),  #&lt;--- This is correct, and grabs the text I need.&#xA;  voice="Charlie",&#xA;  model=&#x27;eleven_multilingual_v1&#x27;&#xA;  )&#xA;&#xA;play(audio)&#xA;

    &#xA;

    I want it to simply play the audio generated through my default Windows playback device, but am instead met with the crash error upon playback ; ValueError: ffplay from ffmpeg not found, necessary to play audio.

    &#xA;