Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (75)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6176)

  • error when running "imageio.plugins.ffmpeg.download()"

    14 juin 2018, par Maryeveh

    I am trying to run the command imageio.plugins.ffmpeg.download() after installing moviepy and imageio and importing imageio without error.
    I keep getting the following error and cannot figure out the solution :

    Imageio: 'ffmpeg-osx-v3.2.4' was not found on your computer; downloading it now.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
    Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.

       ---------------------------------------------------------------------------
       IOError                                   Traceback (most recent call last)
        in <module>()
             3 get_ipython().magic(u'matplotlib inline')
             4 import imageio
       ----> 5 imageio.plugins.ffmpeg.download()
             6 import matplotlib
             7 import matplotlib.pyplot as plt

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/plugins/ffmpeg.pyc in download(directory, force_download)
           71     get_remote_file(fname=fname,
            72                     directory=directory,
       ---> 73                     force_download=force_download)
           74
           75

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in get_remote_file(fname, directory, force_download, auto)
         125             return filename
          126     else:  # pragma: no cover
      --> 127         _fetch_file(url, filename)
          128         return filename
          129

       /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in _fetch_file(url, file_name, print_destination)
           181         raise IOError('Unable to download %r. Perhaps there is a no internet '
           182                       'connection? If there is, please report this problem.' %
       --> 183                       os.path.basename(file_name))
           184
           185
    </module></urlopen></urlopen></urlopen></urlopen>

    IOError : Unable to download ’ffmpeg-osx-v3.2.4’. Perhaps there is a
    no internet connection ? If there is, please report this problem.

    I tried all the solutions I could think of or/and found online, including the ones described here ffmpeg installation on macOS for MoviePy fails with SSL error, but nothing helped.
    Does anyone found another solution ?

    Thanks

  • Starting and stopping a system command in C++ based on whether the main program is running

    3 juillet 2018, par zach

    I’m writing a program and I want to use ffmpeg’s x11grab to record the users actions on screen while they interact with the program. I am able to set up the system call to ffmpeg, but I’m not sure how I get it to stop once the program has finished running ?

    Ideally, I would like for the user to hit start (which begins the recording), interact with the main part of the program, hit end, and then have a video file of their session placed somewhere.

    Here’s the code I have so far. This just finds the screen resolution, then calls ffmpeg’s x11grab.

    QRect screen = QApplication::desktop()->screen(QApplication::desktop()->primaryScreen())->geometry();

    int width = screen.width();
    int height = screen.height();

    std::string resolution = std::to_string(width) + "x" + std::to_string(height);
    std::string record_command = "ffmpeg -f x11grab -s  -r 30 -i :0.0 -qscale 0.1 -vcodec huffyuv grab.avi";
    //insert screen resolution into bash command
    record_command.insert(21, resolution);
    std::cout &lt;&lt; record_command;
    //bash command to record
    system(record_command.c_str());
  • How to video-record selenium tests running headless inside a docker ?

    1er juin 2021, par Alex

    I am running python-selenium tests inside a docker using a headless firefox.

    &#xA;

    During these tests I am able to make screenshots with the selenium method for screenshots - but can I use something to 'video' record the virtual display during the whole test (several test scripts with several test methods, with many webdrivers started and stopped).

    &#xA;

    So how can I video-record a complete test session ?

    &#xA;

    Addendum : I have found a webpage that describes exactly what I need : here. Unfortunately I get an error when I try to do the recording. Here are the commands I am doing :

    &#xA;

    xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s "-ac -screen 0 1920x1080x24" python seltest.py &amp;&#xA;ffmpeg -f x11grab -video_size 1920x1080 -i 127.0.0.1:44 -codec:v libx264 -r 12 /tmp/behat_1.mp4&#xA;

    &#xA;

    and the error is (for the second command) :

    &#xA;

    [x11grab @ 0x1d289c0] Cannot open display 127.0.0.1:44, error 1.&#xA;127.0.0.1:44: Input/output error&#xA;

    &#xA;