Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (92)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (16845)

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

    


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

  • How to open&save a video file in python ?

    27 août 2014, par AliGH

    I’ve just started to make a ubuntu application using PyGtk. My very first object is to open, convert and then save a video file. Ignoring convert phase, I’m going to implant open-save functions. But at the moment when I open a video file, and save it, I get non-video file with 11B size. I’ve just google this and found OpenCV for python. But I’m not sure if it’s the best way to do it. I also think I’m going to use ffmpeg libraries to do some manipulates on video files. Is it what I want or there might be other built-in libraries ?

    By the way, here’s my code to open and save the file :

       def on_openFile_clicked(self, widget):
           filename=None
           dialog = Gtk.FileChooserDialog("Please choose a file", self,
               Gtk.FileChooserAction.OPEN,
               (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                Gtk.STOCK_OPEN, Gtk.ResponseType.OK))

           response = dialog.run()
           self.add_filters(dialog)

           if response == Gtk.ResponseType.OK:
               filename = dialog.get_filename()
           elif response == Gtk.ResponseType.CANCEL:
               print 'Cancel Clicked'
           dialog.destroy()

           print "File Choosen: ", filename

       def add_filters(self, dialog):

           filter_py = Gtk.FileFilter()
           filter_py.set_name("Video Files")
           filter_py.add_mime_type("video/mp4")
           filter_py.add_mime_type("video/x-flv")
           dialog.add_filter(filter_py)

           filter_any = Gtk.FileFilter()
           filter_any.set_name("Any files")
           filter_any.add_pattern("*")
           dialog.add_filter(filter_any)

       def on_saveFile_clicked(self, widget):
           filename=None
           dialog = Gtk.FileChooserDialog("Please choose a file", self,
               Gtk.FileChooserAction.SAVE,
               (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                Gtk.STOCK_SAVE, Gtk.ResponseType.OK))

           response = dialog.run()
           self.add_filters(dialog)

           if response == Gtk.ResponseType.OK:
               filename = dialog.get_filename()
           elif response == Gtk.ResponseType.CANCEL:
               print 'Cancel Clicked'
           dialog.destroy()

           if filename != None:
               save_file=open(filename, 'w')
               save_file.write("Sample Data")
               save_file.close()
           print "File Saved: ", filename