Recherche avancée

Médias (91)

Autres articles (99)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • 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 (4385)

  • Ffmpeg on idle python Mac

    27 février 2020, par lllakkka

    I am trying to use FFMPEG on idle 3.7.4 python on macOS Catalina.

    I ran brew install ffmpeg and it successfully installed.

    However, when I go to IDLE and run my script (the script is to convert a .mp3 file to a .wav) :

    from os import path
    from pydub import AudioSegment    

    src = "transcript.mp3"
    dst = "test.wav"        

    sound = AudioSegment.from_mp3(src)
    sound.export(dst, format="wav")

    This is what I get in return :

    Warning (from warnings module):
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/utils.py", line 165
       warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
    RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

    Warning (from warnings module):
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/utils.py", line 193
       warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
    RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
    Traceback (most recent call last):
     File "/Users/edenhikri/Desktop/transcript.py", line 9, in <module>
       sound = AudioSegment.from_mp3(src)
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/audio_segment.py", line 716, in from_mp3
       return cls.from_file(file, 'mp3', parameters=parameters)
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/audio_segment.py", line 665, in from_file
       info = mediainfo_json(orig_file)
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/utils.py", line 263, in mediainfo_json
       res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
       restore_signals, start_new_session)
     File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
       raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'
    </module>
  • Combining audio file and image with ffmpeg in python

    6 octobre 2018, par Liam

    tl ;dr : how to use a bash ffmpeg command in python

    So I’m trying to take one JPEG image and an audio file as input and generate a video file of the same duration as the audio file (by stretching the still image for the whole duration).

    So, I found these :
    https://superuser.com/questions/1041816/combine-one-image-one-audio-file-to-make-one-video-using-ffmpeg

    So, I now have the code for the merging :
    ffmpeg -loop 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4

    Then I want to use that in python but unable to figure out how to port this to ffmpeg-python or ffpy.

    I found this : Combining an audio file with video file in python

    So, I tried the same thing as him :

    cmd = 'ffmpeg -loop 1 -i image.jpg -i message.mp3 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4'
    subprocess.check_output(cmd, shell=True)
    subprocess.call(cmd, shell=True)

    But I got "returned non-zero exit status 1". So what did I do wrong ?

  • Redact parts of an audio file using python (FFMPEG)

    18 août 2020, par K3rn3l5

    I have a use case where I need to dynamically redact parts of an audio file using python. For example sometimes I may have to remove between timestamps 10 to 15 and other times between 5 to 7, 12 to 16 and 21 to 26 . I have tried looking at FFMPEG and think it may be possible with filters or chaining filters, but I am having trouble figuring out which ones to use and the combination. Any help or pointers will be highly appreciated. TIA !

    &#xA;