
Recherche avancée
Autres articles (10)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (2807)
-
CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36
16 février 2021, par Mitrajeet GolsangiI am working on a matplotlib project and want to save it in a mp4 video format.
I am using the ffmpeg program for converting the animation in a video. This is the code for conversion


# The animation definition

ani = FuncAnimation(figure, my_frame_function, frames=100,
 interval=5, init_func=init, blit=True, repeat=True)


# Path for ffmpeg

plt.rcParams['animation.ffmpeg_path'] = 'C:/ffmpeg/bin/ffmpeg.exe'


# Setting up the writer

Writer = writers['ffmpeg']
writer = Writer(fps=10, metadata=dict(artist='Mitrajeet'), bitrate=None)

# Trying to Save the file
ani.save("test.png", writer=writer) # ---- Error here



After running the file I get this Error


MovieWriter stderr:
[h264_amf @ 00000000004ec840] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Traceback (most recent call last):
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 251, in saving
 yield self
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 363, in grab_frame
 self.fig.savefig(self._frame_sink(), format=self.frame_format,
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\figure.py", line 2311, in savefig
 self.canvas.print_figure(fname, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 81, in print_figure
 super().print_figure(*args, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 2210, in print_figure
 result = print_method(
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 1639, in wrapper
 return func(*args, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_agg.py", line 456, in print_raw
 fh.write(renderer.buffer_rgba())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "prime_counting_function.py", line 63, in <module>
 ani.save("D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png", writer=writer)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
 self.gen.throw(type, value, traceback)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 253, in saving
 self.finish()
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 354, in finish
 self.cleanup()
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 390, in cleanup
 raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['C:/ffmpeg/bin/ffmpeg.exe', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '640x480', '-pix_fmt', 'rgba', '-r', '10', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-metadata', 'artist=Mitrajeet', '-y', 'D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png']' returned non-zero exit status 1.
</module>


So whats wrong here ??


-
Raspberry Pi Camera feedback freezes when moving NEMA 17 stepper motor with A4988 stepper motor driver [closed]
31 août 2023, par Broteen DasI have a Raspberry Pi with a camera module and a NEMA 17 stepper motor connected to it. When I run the command
ffplay /dev/video0
, the video runs perfectly. However, whilst the video is running, and I run a script that moves the Stepper motor with the A4988 stepper motor driver, the video feed freezes and needs to be restarted.

At first I thought it was ffmpeg's fault, so I tried viewing the feed with OpenCV, but the same probelem persisted.


I also thought that the CPU prioritization was causing the problem, but this one time, the entire Raspberry Pi froze. The Keyboard, mouse, keys, numlock key, everything was dead (the Numlock light on my keyboard was on, I tried toggling the NumLock, but it did not go off) and so I had to turn off and turn on again the power supply to reboot the Pi.


How do I get rid of this issue ?


-
FFMPEG batch remove the last 2 seconds of a list of videos
22 avril 2016, par LisfmegRemoving the first seconds of a video is easy and work easy.
But I need a way to remove the last 2 seconds of all videos in a folder. (it’s the moment my mouse go to the screen-record-program (also ffmpeg btw.) and press quit/stop)
The ffmpeg help give me that for my wish....
-to time_stop record or transcode stop time
-sseof time_off set the start time offset relative to EOF
-seek_timestamp enable/disable seeking by timestamp with -ss
-ss time_off set the start time offsetI miss something like -toeof. But ffmpeg dont have it, yet.
Some substr in diffrent languages offer just a negative value, so I tried ....
ffmpeg -seek_timestamp 1 -i source.mp4 -to -120 -y test.mp4
and
ffmpeg -seek_timestamp 1 -i source.mp4 -to -00:02 -y test.mp4
But that follow only in "-to value smaller than -ss ; aborting." :-(
Anyone have idea ?
I’m on windows and think I need linux console with bash now. But before I install a virtual linux machine and try to script something the next days ..... Is there maybe a easier way ?