Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Support de tous types de médias

    10 avril 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 Earth) (...)

Sur d’autres sites (5541)

  • How can I save an animation from matplotlib as a mp4 video file ? [duplicate]

    19 décembre 2018, par Manza

    This question already has an answer here :

    I’m trying to render a animation.ArtistAnimation object into a 24 fps video file in format mp4.

    I have search about and I reached this. However, even after compiling ffmpeg I get this error message :

    C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\Scripts\python.exe
    "C:/Users/trite/OneDrive/Documentos/MusiTex/Python/venv/Saving Animation.py"
    Traceback (most recent call last):
     File "C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\lib\site-
    packages\matplotlib\animation.py", line 161, in __getitem__
       return self.avail[name]
    KeyError: 'ffmpeg'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:/Users/trite/OneDrive/Documentos/MusiTex/Python/venv/Saving
    Animation.py", line 20, in <module>
       FFMpegWriter = manimation.writers['ffmpeg']
     File "C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\lib\site-
    packages\matplotlib\animation.py", line 164, in __getitem__
       'Requested MovieWriter ({}) not available'.format(name))
    RuntimeError: Requested MovieWriter (ffmpeg) not available

    Process finished with exit code 1
    </module>

    What is the problem with ?

    I would really appreciate if you can help me. Actually, if there is other ways to saving/render this kind of object into a video file (preferably mp4) I will be delighted to hear them.

    Thank you very much

  • MoviePy Error : The system cannot find the file specified

    4 juillet 2017, par JohnSmithy1266

    I’m getting the error in the title when trying to run the example code below on Windows 10/Python 3.6.1/Sublime Text Editor 3. I made sure to set my MAGICK_HOME environment variable to point to where I manually installed ImageMagick. I made sure to only have 1 version of ImageMagick installed. I made sure FFMPEG, Numpy, imageio, Decorator, and tqdm were all installed.

    Yes, the file "vidclip.mp4" exists. The desired behavior here is to simply clip the video and add text to the center as per the example on the github page, i.e. to simply run the code successfully.

    Does anyone know what might be wrong ?

    Example code from github :

    from moviepy.editor import *

    video = VideoFileClip("vidclip.mp4").subclip(7,64)

    # Make the text. Many more options are available.
    txt_clip = ( TextClip("Ken Block who?",fontsize=70,color='white')
                .set_position('center')
                .set_duration(10) )

    result = CompositeVideoClip([video, txt_clip]) # Overlay text on video
    result.write_videofile("vidclip_edited.webm",fps=25) # Many options...

    The full error trace :

    Traceback (most recent call last):
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 1220, in __init__
       subprocess_call(cmd, verbose=False )
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\tools.py", line 42, in subprocess_call
       proc = sp.Popen(cmd, **popen_params)
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in __init__
       restore_signals, start_new_session)
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
       startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\av\Desktop\Desktop\Projects\Youtube\blender\test\testMoviePy.py", line 6, in <module>
       txt_clip = ( TextClip("Ken Block who?",fontsize=70,color='white')
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 1229, in __init__
       raise IOError(error)
    OSError: MoviePy Error: creation of None failed because of the following error:

    [WinError 2] The system cannot find the file specified.

    .This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or.that the path you specified is incorrect
    </module>
  • copy .wav audio file settings to new .wav file

    18 novembre 2020, par Jonas

    currently I am working with a speech to text translation model that takes a .wav file and turns the audible speech within the audio into a text transcript. The model worked before on .wav audio recordings that were recorded directly. However now I am trying to do the same with audio that was at first present within a video.

    &#xA;

    The steps are as follows :

    &#xA;

      &#xA;
    • retrieve a video file from a stream url through ffmpeg
    • &#xA;

    • strip the .aac audio from the video
    • &#xA;

    • convert the .aac audio to .wav
    • &#xA;

    • save the .wav to s3 for later usage
    • &#xA;

    &#xA;

    The ffmpeg command I use is listed below for reference :

    &#xA;

      rm /tmp/jonas/*&#xA;  ffmpeg -i {stream_url} -c copy -bsf:a aac_adtstoasc /tmp/jonas/{filename}.aac&#xA;  ffmpeg -i /tmp/jonas/{filename}.aac /tmp/jonas/{filename}.wav&#xA;  aws s3 cp /tmp/jonas/{filename}.wav {s3_audio_save_location}&#xA;

    &#xA;

    The problem now is that my speech to text model does not work on this audio anymore. I use sox to convert the audio but sox does not seem to grab the audio. Also without sox the model does not work. This leads me to believe there is a difference in the .wav audio formatting and therefore I would like to know how I can either format the .wav with the same settings as a .wav that does work or find a way to compare the .wav audio formatting and set the new .wav to the correct format manually through ffmpeg

    &#xA;

    I tried with PyPy exiftool and found the metadata of the two files :

    &#xA;

    The metadata of the working .wav file is enter image description here

    &#xA;

    The metadata of the .wav file that does not work is enter image description here

    &#xA;

    So as can be seen the working .wav file has some different settings that I would like to mimic in the second .wav file presumably that would make my model work again :)

    &#xA;

    with kind regards,&#xA;Jonas

    &#xA;