Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (10)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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, par

    The 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, par

    Les 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 Golsangi

    I 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:&#xA;[h264_amf @ 00000000004ec840] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36&#xA;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&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 251, in saving&#xA;    yield self&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 363, in grab_frame&#xA;    self.fig.savefig(self._frame_sink(), format=self.frame_format,&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\figure.py", line 2311, in savefig&#xA;    self.canvas.print_figure(fname, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 81, in print_figure&#xA;    super().print_figure(*args, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 2210, in print_figure&#xA;    result = print_method(&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 1639, in wrapper&#xA;    return func(*args, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_agg.py", line 456, in print_raw&#xA;    fh.write(renderer.buffer_rgba())&#xA;BrokenPipeError: [Errno 32] Broken pipe&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "prime_counting_function.py", line 63, in <module>&#xA;    ani.save("D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png", writer=writer)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__&#xA;    self.gen.throw(type, value, traceback)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 253, in saving&#xA;    self.finish()&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 354, in finish&#xA;    self.cleanup()&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 390, in cleanup&#xA;    raise subprocess.CalledProcessError(&#xA;subprocess.CalledProcessError: Command &#x27;[&#x27;C:/ffmpeg/bin/ffmpeg.exe&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-vcodec&#x27;, &#x27;rawvideo&#x27;, &#x27;-s&#x27;, &#x27;640x480&#x27;, &#x27;-pix_fmt&#x27;, &#x27;rgba&#x27;, &#x27;-r&#x27;, &#x27;10&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-i&#x27;, &#x27;pipe:&#x27;, &#x27;-vcodec&#x27;, &#x27;h264&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;-metadata&#x27;, &#x27;artist=Mitrajeet&#x27;, &#x27;-y&#x27;, &#x27;D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png&#x27;]&#x27; returned non-zero exit status 1.&#xA;</module>

    &#xA;

    So whats wrong here ??

    &#xA;

  • Raspberry Pi Camera feedback freezes when moving NEMA 17 stepper motor with A4988 stepper motor driver [closed]

    31 août 2023, par Broteen Das

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

    &#xA;

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

    &#xA;

    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.

    &#xA;

    How do I get rid of this issue ?

    &#xA;

  • FFMPEG batch remove the last 2 seconds of a list of videos

    22 avril 2016, par Lisfmeg

    Removing 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 offset

    I 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 ?