Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (61)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

Sur d’autres sites (5053)

  • Is it possible to update a filter option while paused in ffplay ?

    25 juin 2020, par peggo

    I am using zmq to send filter option updates to ffplay while a video is playing. However, I would also like to be able to change say the zoom level while paused (I'm using scale and crop filters for this). If I do a zmq send command while paused nothing happens and I don't get a response.

    


    If this is not possible, are there any workarounds ? I thought about using the loop filter instead of pausing, but I don't think you can change the options for that filter at runtime. So unless I know exactly where I want to pause in advance (which I don't) then I don't see a way to do this.

    


    Thanks !

    


  • OpenCV write jpeg buffer into Popen object

    5 novembre 2017, par M Leonard

    I am doing some image operations on a numpy array via OpenCV. These images are then being baked out to jpeg, then ingested into FFMPEG to make a video. However, baking it out to a file is not very efficient. I would like to stream this directly into FFMPEG. In theory, it would look something like this :

    p = Popen(['/usr/local/bin/ffmpeg', '-s', '1920x1080',
                      '-pix_fmt', 'yuvj420p',
                      '-y',
                      '-f', 'image2pipe',
                      '-vcodec', 'mjpeg',
                      '-r', self.fps,
                      '-i', '-',
                      '-r', self.fps,
                      '-f', 'mp4',
                      '-vcodec', 'libx264',
                      '-preset', 'fast',
                      # '-crf', '26',
                      'output/{}.mp4'.format(self.animation_name)], stdin=PIPE)

    image_resize = cv.resize(self.original_image, (0, 0), fx=zoom, fy=zoom)
    M = np.float32([[1, 0, x_total], [0, 1, y_total]])
    image_offset = cv.warpAffine(image_resize, M, (self.original_image_width, self.original_image_width))
    image = image_offset[0:self.output_raster_height, 0:self.output_raster_width].copy()    
    cv.imwrite(p.stdin, image) # this doesn't actually work, but that's the idea...

    I’ve been able to achieve this with Pillow using this setup :

    p = Popen(['/usr/local/bin/ffmpeg', '-s', '1920x1080',
                      '-pix_fmt', 'yuvj420p',
                      '-y',
                      '-f', 'image2pipe',
                      '-vcodec', 'mjpeg',
                      '-r', self.fps,
                      '-i', '-',
                      '-r', self.fps,
                      '-f', 'mp4',
                      '-vcodec', 'libx264',
                      '-preset', 'fast',
                      # '-crf', '26',
                      'output/{}.mp4'.format(self.animation_name)], stdin=PIPE)

    image_resize = self.original_image.resize((resize_width, resize_height), resample=PIL.Image.BICUBIC)
    image_offset = ImageChops.offset(image_resize, xoffset=int(x_total), yoffset=int(y_total))
    image = image_offset.crop((0, 0, self.output_raster_width, self.output_raster_height))

    image.save(p.stdin, 'JPEG')

    So, my question is :

    How would I write an OpenCV Jpeg buffer into the p.stdin object like it’s being done in the Pillow version ?

  • Anomalie #3633 (Nouveau) : probleme appel de la mediabox

    2 janvier 2016, par tofulm -

    Bonjour,
    dans un squelette toto.html, j’ai un inclure en ajax avec un squelette qui comporte plusieurs liens de la forme

    &lt;script&gt;<br />
    jQuery(document).ready(function(){<br />
        jQuery(&quot;a.appel_mediabox&quot;).mediabox();<br />
    ...<br />
    &lt;/script&gt;

    au chargement de la page, j’ai les mediabox qui se lancent "vides" au lieu d’attendre le click sur le lien.

    le problème vient de :
    http://zone.spip.org/trac/spip-zone/browser/_core_/plugins/mediabox/javascript/spip.mediabox.js#L89

    Ce test n’était pas présent en spip 3.0 et le même code fonctionnait.

    Si je supprime ce test et le remplace par :

    return this.colorbox($.extend(cbox_options,options)) ;
    

    tout est ok

    Merci