Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (37)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (6440)

  • How save an audio buffer with Fluent FFmpeg

    17 juin 2016, par Luke

    I have a Buffer object that contains audio data and I’m wondering if I can save this Buffer through Fluent FFmpeg without writing it to a file temporary first.

    I came across this other question : fluent-ffmpeg module : "end" event does not fire

    Which seems to do what I need but with video, however, this technique doesn’t seem to work for me. I get the following error :

    ffmpeg write error 'Input stream error: not implemented'

    How can I pipe a Buffer directly to Fluent FFmpeg without writing it to a temporary file first ?

  • Use animation.save with ffmpeg writer within a Python package

    16 janvier 2021, par Logan Yang

    I'm writing a Python package that produces some animated plots. I can successfully use matplotlib.animation.save to save gifs as such :

    


    anim.save(f"./{file}", writer="imagemagick", fps=15)


    


    But if I try to save it to mp4 like this, it doesn't work because I guess it can't find ffmpeg on my system (MacOS)

    


    anim.save(f"./{file}",writer=FFMpegWriter(fps=15))


    


    Error :

    


    MovieWriter stderr:
dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.165.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found
...


    


    My intention is to make it platform agnostic, since it's a Python package I'm writing, I would like it to be portable so that the user can use it out-of-the-box with pip install . Since gif is already working with imagemagick, I'm not sure how to make it work for ffmpeg writer.

    


    I tried pip install ffmpeg in my project but that didn't work. Any suggestion is appreciated !

    


  • save matplotlib animation error

    27 juillet 2017, par Matt

    I created a program (see below) that takes position, force, and time from a pandas dataframe. The goal is to plot position vs force and animate it based on the time data associated with it.

    The animation is working well so far but I cannot save the animation, either as a gif or mp4. I have read countless solutions online for this sort of problem but none seem to work.

    I am using OS X El Capitan version 10.11.6 and python3.6. I used brew install ffmpeg and brew install mencoder. For both I get the error

    File "animation.py", line 73, in <module>
       ani.save('test.mp4', writer=writer)
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1009, in save
       for a in all_anim]):
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1009, in <listcomp>
       for a in all_anim]):
     File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/animation.py", line 1482, in new_saved_frame_seq
       return itertools.islice(self.new_frame_seq(), self.save_count)
    ValueError: Stop argument for islice() must be None or an integer: 0 &lt;= x &lt;= sys.maxsize.
    </listcomp></module>

    I used pip to install the rest of my packages so maybe that is the root of the problem ?

    import matplotlib.pyplot as plt
    import matplotlib.animation as animation
    import pandas
    import sys

    TABLE = pandas.read_csv("Data.csv")


    fig = plt.figure()
    ax1 = fig.add_subplot(1,1,1)

    xs=[]
    ys=[]

    def animate(interval):

       time = interval

       #convert to TIME series to int for handling purposes
       TABLE.TIME = TABLE.TIME.astype(int)

       if time in TABLE.TIME.unique():

           POSIT_series = TABLE[TABLE.TIME == time].POSIT
           POSIT_list = POSIT_series.tolist()
           x = POSIT_list[0]

           FORCE_series = TABLE[TABLE.TIME == time].FORCE
           FORCE_list = FORCE_series.tolist()
           y = FORCE_list[0]

           xs.append(x)
           ys.append(y)

           ax1.clear()
           ax1.plot(xs,ys)
       elif time > TABLE.TIME.max():
           sys.exit("Animation Done")
       return

    FRAMES= TABLE.TIME.astype(int).max()    
    plt.rcParams['animation.ffmpeg_path']='/usr/local/bin/ffmpeg'
    writer = animation.FFMpegWriter()
    ani = animation.FuncAnimation(fig, animate, interval=1, frames=FRAMES, repeat=False)
    plt.show()

    #same error for writer = 'mencoder' and writer ='ffpmeg
    ani.save('test.mp4', writer=writer)