
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (20)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (4749)
-
Why does moviepy complain about bitrate while generating audiofile ?
6 octobre 2023, par RomanI have just try to use
moviepy
library for the first time. Generation of movies fromnumpy
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 RomanI have just try to use
moviepy
library for the first time. Generation of movies fromnumpy
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 RomanI have just try to use
moviepy
library for the first time. Generation of movies fromnumpy
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 ?