Advanced search

Medias (91)

Other articles (46)

  • Installation en mode ferme

    4 February 2011, by

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 February 2011, by

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • MediaSPIP v0.2

    21 June 2013, by

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

On other websites (6686)

  • libx264: fix open gop default.

    21 June 2011, by Michael Niedermayer

    libx264: fix open gop default.

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

    27 August 2014, by 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
  • avcodec/mpegvideo_dec: Don't use MotionEstContext as scratch space

    30 October 2022, by Andreas Rheinhardt
    avcodec/mpegvideo_dec: Don't use MotionEstContext as scratch space
    

    Decoders that might use quarter pixel motion estimation
    (namely MPEG-4 as well as the VC-1 family) currently
    use MpegEncContext.me.qpel_(put|avg) as scratch space
    for pointers to arrays of function pointers.
    (MotionEstContext contains such pointers as it supports
    quarter pixel motion estimation.) The MotionEstContext
    is unused apart from this for the decoding part of
    mpegvideo.

    Using the context at all is for decoding is actually
    unnecessary and easily avoided: All codecs with
    quarter pixels set me.qpel_avg to qdsp.avg_qpel_pixels_tab,
    so one can just unconditionally use this in ff_mpv_reconstruct_mb().
    MPEG-4 sets qpel_put to qdsp.put_qpel_pixels_tab
    or to qdsp.put_no_rnd_qpel_pixels_tab based upon
    whether the current frame is a b-frame with no_rounding
    or not, while the VC-1-based decoders set it to
    qdsp.put_qpel_pixels_tab unconditionally. Given
    that no_rounding is always zero for VC-1, using
    the same check for VC-1 as well as for MPEG-4 would work.
    Since ff_mpv_reconstruct_mb() already has exactly
    the right check (for hpeldsp), it can simply be reused.

    (This change will result in ff_mpv_motion() receiving
    a pointer to an array of NULL function pointers instead
    of a NULL pointer for codecs without qpeldsp (like MPEG-1/2).
    It doesn't matter.)

    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/mpv_reconstruct_mb_template.c
    • [DH] libavcodec/mss2.c
    • [DH] libavcodec/vc1dec.c