Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (53)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • Installation en mode ferme

    4 février 2011, par

    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 (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (6040)

  • Revision b359952c2c : Changed mv ref to nearestmv always for sub8x8 For all sub8x8 partition, the mv

    10 février 2015, par Zoe Liu

    Changed Paths :
     Modify /configure


     Modify /vp9/common/vp9_blockd.h


     Modify /vp9/common/vp9_mvref_common.c


     Modify /vp9/common/vp9_mvref_common.h


     Modify /vp9/decoder/vp9_decodemv.c


     Modify /vp9/encoder/vp9_bitstream.c


     Modify /vp9/encoder/vp9_encodemv.c


     Modify /vp9/encoder/vp9_rdopt.c



    Changed mv ref to nearestmv always for sub8x8

    For all sub8x8 partition, the mv ref has changed to its own nearest_mv
    instead of the nearest_mv of the super 8x8 block :

    — enable-newmvref-sub8x8 : 0.1% gain for derflr

    Besides the above new experiment, code has been cleaned largely for the
    sub8x8 motion search, such that the mv ref can be fairly easily changed to
    use other options, e.g., the next step’s global motion effort.

    Change-Id : I8e3f4aaa8553ba8c445369692e079db5ce282593

  • Anomalie #2044 : (Ergonomie) Renforcer les "indicateurs d’emplacement" pour les pages de l’espace ...

    15 février 2021, par RastaPopoulos ♥

    Je suis immensément d’accord, et c’est un sujet super importante (la "spacialisation", de "où je suis") pour une refonte complète de l’admin.

    Dans Drupal, c’est comme dans nos objets publics : il y a une hiérarchie principale explicite, quand on ajoute des pages à l’admin. Quasi page d’admin à un parent (ou racine), ce qui permet donc de générer un chemin hiérarchique complet de où on se trouve. Et de mettre en actives les entrées de menus des parents. Perso je trouve ça très bien que toute page de l’admin ait toujours un chemin principal obligatoire (après qu’il y ait des raccourcis pour y accéder de plusieurs manières c’est en plus).

  • Record video with Xvfb + FFmpeg using Selenium in headless mode

    12 mars 2024, par ifdef14

    I am trying to record video using Selenium in headless mode. I am using Xvfb and FFmpeg bindings for Python. I've already tried :

    


    import subprocess
import threading
import time

from chromedriver_py import binary_path
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from xvfbwrapper import Xvfb


def record_video(xvfb_width, xvfb_height, xvfb_screen_num):
    subprocess.call(
        [
            'ffmpeg',
            '-f',
            'x11grab',
            '-video_size',
            f'{xvfb_width}x{xvfb_height}',
            '-i',
            xvfb_screen_num,
            '-codec:v',
            'libx264',
            '-r',
            '12',
            'videos/video.mp4',
        ]
    )


with Xvfb() as xvfb:
    '''
    xvfb.xvfb_cmd[1]) returns scren num
    :217295622
    :319294854
    :
    '''
    xvfb_width, xvfb_height, xvfb_screen_num = xvfb.width, xvfb.height, xvfb.xvfb_cmd[1]
    thread = threading.Thread(target=record_video, args=(xvfb_width, xvfb_height, xvfb_screen_num))
    thread.start()
    opts = webdriver.ChromeOptions()
    opts.add_argument('--headless')
    try:
        driver = webdriver.Chrome(service=Service(executable_path=binary_path), options=opts)
    finally:
        driver.close()
        driver.quit()



    


    As much as I understand xvfb.xvfb_cmd[1] returns an information about virtual display isn't it ? When I executed this script, I got the error message :

    


    [x11grab @ 0x5e039cfe2280] Failed to query xcb pointer0.00 bitrate=N/A speed=N/A    
:1379911620: Generic error in an external library


    


    I also tried to use the following commands :

    


    xvfb-run --listen-tcp --server-num 1 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1920x1080x24" python main.py &

    


    ffmpeg -f x11grab -video_size 1920x1080 -i :1 -codec:v libx264 -r 12 videos/video.mp4

    


    In the commands above, there are used xvfb-run --server-num 1 and ffmpeg -i :1, why ?

    


    Overall, when Selenium is running in the headless mode what's going on behind the scenes ? Is it using virtual display ? If yes, how can I detect display id of this, etc. Am I on the right path ?

    


    I am not using Docker or any kind of virtualization. All kind of tests are running on my local Ubuntu machine.