Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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.

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

Sur d’autres sites (9618)

  • Why does moviepy complain about bitrate while generating audiofile ?

    11 janvier 2017, par Roman

    I have just try to use moviepy library for the first time. Generation of movies from numpy arrays was really simple, intuitive and worked out of box. This is what I tried :

    from moviepy.editor import VideoClip
    import numpy as np

    def make_frame(t):

       val = int(255.0*(t/3.0))

       ls = []
       for height in range(100):
           row = []
           for width in range(300):
               row.append([val,0,0])
           ls.append(row)
       frame = np.array(ls)
       return frame

    animation = VideoClip(make_frame, duration = 3)

    animation.write_gif('first_try.gif', fps=24)
    animation.write_videofile('first_try.mp4', fps=24)

    Then I wanted to use moviepy to generate sound. In theory it should work in a very similar way. Here is what I tried :

    from moviepy.editor import AudioClip
    import numpy as np

    make_frame = lambda t : 2*[ np.sin(404 * 2 * np.pi * t) ]
    clip = AudioClip(make_frame, duration=5)

    clip.write_audiofile('sound.mp4')

    However, I got an error message :

    [MoviePy] Writing audio in sound.mp4
    |----------| 0/111   0% [elapsed: 00:00 left: ?, ? iters/sec]Traceback (most recent call last):
     File "sound.py", line 9, in <module>
       clip.write_audiofile('sound.mp4')
     File "<string>", line 2, in write_audiofile
     File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/AudioClip.py", line 204, in write_audiofile
       verbose=verbose, ffmpeg_params=ffmpeg_params)
     File "<string>", line 2, in ffmpeg_audiowrite
     File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 162, in ffmpeg_audiowrite
       writer.write_frames(chunk)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 122, in write_frames
       raise IOError(error)
    IOError: [Errno 32] Broken pipe

    MoviePy error: FFMPEG encountered the following error while writing file sound.mp4:

    Invalid encoder type 'libx264'


    The audio export failed, possily because the bitrate you specified was two high or too low for the video codec.
    </string></string></module>

    Does anybody know what this error means and how this problem can be resolved ?

  • Why does moviepy complain about bitrate while generating audiofile ?

    11 janvier 2017, par Roman

    I have just try to use moviepy library for the first time. Generation of movies from numpy arrays was really simple, intuitive and worked out of box. This is what I tried :

    from moviepy.editor import VideoClip
    import numpy as np

    def make_frame(t):

       val = int(255.0*(t/3.0))

       ls = []
       for height in range(100):
           row = []
           for width in range(300):
               row.append([val,0,0])
           ls.append(row)
       frame = np.array(ls)
       return frame

    animation = VideoClip(make_frame, duration = 3)

    animation.write_gif('first_try.gif', fps=24)
    animation.write_videofile('first_try.mp4', fps=24)

    Then I wanted to use moviepy to generate sound. In theory it should work in a very similar way. Here is what I tried :

    from moviepy.editor import AudioClip
    import numpy as np

    make_frame = lambda t : 2*[ np.sin(404 * 2 * np.pi * t) ]
    clip = AudioClip(make_frame, duration=5)

    clip.write_audiofile('sound.mp4')

    However, I got an error message :

    [MoviePy] Writing audio in sound.mp4
    |----------| 0/111   0% [elapsed: 00:00 left: ?, ? iters/sec]Traceback (most recent call last):
     File "sound.py", line 9, in <module>
       clip.write_audiofile('sound.mp4')
     File "<string>", line 2, in write_audiofile
     File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/AudioClip.py", line 204, in write_audiofile
       verbose=verbose, ffmpeg_params=ffmpeg_params)
     File "<string>", line 2, in ffmpeg_audiowrite
     File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 162, in ffmpeg_audiowrite
       writer.write_frames(chunk)
     File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 122, in write_frames
       raise IOError(error)
    IOError: [Errno 32] Broken pipe

    MoviePy error: FFMPEG encountered the following error while writing file sound.mp4:

    Invalid encoder type 'libx264'


    The audio export failed, possily because the bitrate you specified was two high or too low for the video codec.
    </string></string></module>

    Does anybody know what this error means and how this problem can be resolved ?

  • Why does moviepy complain about bitrate while generating audiofile ?

    6 octobre 2023, par Roman

    I have just try to use moviepy library for the first time. Generation of movies from numpy arrays was really simple, intuitive and worked out of box. This is what I tried :

    &#xA;&#xA;

    from moviepy.editor import VideoClip&#xA;import numpy as np&#xA;&#xA;def make_frame(t):&#xA;&#xA;    val = int(255.0*(t/3.0))&#xA;&#xA;    ls = []&#xA;    for height in range(100):&#xA;        row = []&#xA;        for width in range(300):&#xA;            row.append([val,0,0])&#xA;        ls.append(row)&#xA;    frame = np.array(ls)&#xA;    return frame&#xA;&#xA;animation = VideoClip(make_frame, duration = 3)&#xA;&#xA;animation.write_gif(&#x27;first_try.gif&#x27;, fps=24)&#xA;animation.write_videofile(&#x27;first_try.mp4&#x27;, fps=24)&#xA;

    &#xA;&#xA;

    Then I wanted to use moviepy to generate sound. In theory it should work in a very similar way. Here is what I tried :

    &#xA;&#xA;

    from moviepy.editor import AudioClip&#xA;import numpy as np&#xA;&#xA;make_frame = lambda t : 2*[ np.sin(404 * 2 * np.pi * t) ]&#xA;clip = AudioClip(make_frame, duration=5)&#xA;&#xA;clip.write_audiofile(&#x27;sound.mp4&#x27;)&#xA;

    &#xA;&#xA;

    However, I got an error message :

    &#xA;&#xA;

    [MoviePy] Writing audio in sound.mp4&#xA;|----------| 0/111   0% [elapsed: 00:00 left: ?, ? iters/sec]Traceback (most recent call last):&#xA;  File "sound.py", line 9, in <module>&#xA;    clip.write_audiofile(&#x27;sound.mp4&#x27;)&#xA;  File "<string>", line 2, in write_audiofile&#xA;  File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration&#xA;    return f(clip, *a, **k)&#xA;  File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/AudioClip.py", line 204, in write_audiofile&#xA;    verbose=verbose, ffmpeg_params=ffmpeg_params)&#xA;  File "<string>", line 2, in ffmpeg_audiowrite&#xA;  File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration&#xA;    return f(clip, *a, **k)&#xA;  File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 162, in ffmpeg_audiowrite&#xA;    writer.write_frames(chunk)&#xA;  File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 122, in write_frames&#xA;    raise IOError(error)&#xA;IOError: [Errno 32] Broken pipe&#xA;&#xA;MoviePy error: FFMPEG encountered the following error while writing file sound.mp4:&#xA;&#xA;Invalid encoder type &#x27;libx264&#x27;&#xA;&#xA;&#xA;The audio export failed, possily because the bitrate you specified was two high or too low for the video codec.&#xA;</string></string></module>

    &#xA;&#xA;

    Does anybody know what this error means and how this problem can be resolved ?

    &#xA;