Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (81)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9024)

  • avdevice/x11grab : rename the "w" Window to "root" in paint_mouse_pointer

    8 septembre 2014, par Antonio Ospite
    avdevice/x11grab : rename the "w" Window to "root" in paint_mouse_pointer
    

    This specifies better the meaning of the variable, and is also in
    preparation of a subsequent change which will introduce a temporary
    Window variable for which "w" is an good name.

    Signed-off-by : Antonio Ospite <ao2@ao2.it>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavdevice/x11grab.c
  • 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 :

    &#xA;

    import subprocess&#xA;import threading&#xA;import time&#xA;&#xA;from chromedriver_py import binary_path&#xA;from selenium import webdriver&#xA;from selenium.webdriver.chrome.service import Service&#xA;from xvfbwrapper import Xvfb&#xA;&#xA;&#xA;def record_video(xvfb_width, xvfb_height, xvfb_screen_num):&#xA;    subprocess.call(&#xA;        [&#xA;            &#x27;ffmpeg&#x27;,&#xA;            &#x27;-f&#x27;,&#xA;            &#x27;x11grab&#x27;,&#xA;            &#x27;-video_size&#x27;,&#xA;            f&#x27;{xvfb_width}x{xvfb_height}&#x27;,&#xA;            &#x27;-i&#x27;,&#xA;            xvfb_screen_num,&#xA;            &#x27;-codec:v&#x27;,&#xA;            &#x27;libx264&#x27;,&#xA;            &#x27;-r&#x27;,&#xA;            &#x27;12&#x27;,&#xA;            &#x27;videos/video.mp4&#x27;,&#xA;        ]&#xA;    )&#xA;&#xA;&#xA;with Xvfb() as xvfb:&#xA;    &#x27;&#x27;&#x27;&#xA;    xvfb.xvfb_cmd[1]) returns scren num&#xA;    :217295622&#xA;    :319294854&#xA;    :&#xA;    &#x27;&#x27;&#x27;&#xA;    xvfb_width, xvfb_height, xvfb_screen_num = xvfb.width, xvfb.height, xvfb.xvfb_cmd[1]&#xA;    thread = threading.Thread(target=record_video, args=(xvfb_width, xvfb_height, xvfb_screen_num))&#xA;    thread.start()&#xA;    opts = webdriver.ChromeOptions()&#xA;    opts.add_argument(&#x27;--headless&#x27;)&#xA;    try:&#xA;        driver = webdriver.Chrome(service=Service(executable_path=binary_path), options=opts)&#xA;    finally:&#xA;        driver.close()&#xA;        driver.quit()&#xA;&#xA;

    &#xA;

    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 :

    &#xA;

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

    &#xA;

    I also tried to use the following commands :

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    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 ?

    &#xA;

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

    &#xA;

  • Seeing Blank video when using Xvfb with ffmpeg in headless mode

    4 avril 2022, par sxg

    Seeing blank video while running protractor tests in headless mode using Xvfb, ffmpeg, protractor video reporter

    &#xA;&#xA;

    I am using protractor framework for running automation tests. I am using protractor video recorder tool to record video on headless mode. The prerequisite for that is to start Xvfb at the background.

    &#xA;&#xA;

    This the setting i am using to run test in headless mode.&#xA;Steps followed to enable video in headless mode :

    &#xA;&#xA;

    Installed "npm i protractor-video-reporter"&#xA;Included ffmpeg setting for docker/linux.&#xA;```&#xA; var VideoReporter = require(&#x27;protractor-video-reporter&#x27;);&#xA; jasmine.getEnv().addReporter(new VideoReporter({&#xA;    baseDirectory: &#x27;reports/videos&#x27;,&#xA;    singleVideo: false,&#xA;    saveSuccessVideos: true,&#xA;    ffmpegCmd: &#x27;/usr/bin/ffmpeg&#x27;,&#xA;    ffmpegArgs: [&#xA;      &#x27;-y&#x27;,&#xA;      &#x27;-r&#x27;, &#x27;30&#x27;,&#xA;      &#x27;-f&#x27;, &#x27;x11grab&#x27;,&#xA;      &#x27;-s&#x27;, &#x27;1280x1024&#x27;,&#xA;      &#x27;-i&#x27;, &#x27;process.env.DISPLAY&#x27;,&#xA;      &#x27;-g&#x27;, &#x27;300&#x27;,&#xA;      &#x27;-vcodec&#x27;, &#x27;mpeg4&#x27;&#xA;    ]&#xA;  }));&#xA;

    &#xA;&#xA;

        Executed "Xvfb :99 -ac -screen 5 1024x768x8 -listen tcp &amp;" in a terminal&#xA;    Executed ```&#xA;       DISPLAY=:99  &#xA;       export $DISPLAY&#xA;``` in a separate window &#xA;    Executed "env DEBUG=protractor-video-reporter protractor conf.js" in a separate terminal&#xA;&#xA;Expected Result:&#xA;&#xA;A video with the recordings that runs tests on google chrome&#xA;&#xA;Actual Result:&#xA;&#xA;Video is getting created but the video appears to be blank.&#xA;&#xA;Chrome Version:73&#xA;Chromedriver Version: 2.46&#xA;Protractor version:5.4.2&#xA;

    &#xA;