Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

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

  • Running xdotool movewindow from a python script

    19 août 2014, par mr mojo risin

    I am writing a python script to run a movie using ffplay, and then move the ffplay window to a specific location on the screen.

    The script I am basing this one is located here - http://code.activestate.com/recipes/577376-simple-way-to-execute-multiple-process-in-parallel/

    The only difference is I am changing the commands array at the bottom to

    commands = [
       ['xdotool', 'search', '--name', 'Goodfellas', 'windowmove', '480', '200'],
       ['ffplay', '-x', '320', '-y', '180', '-autoexit', '/data/media/Vidoes/Movies/Goodfellas.mp4']
    ]

    The video plays fine, but the window will not move position

    To test if the script is actually cycling through all the commands I added the command

    ['xdotool', 'mousemove', '180', '180'],

    And the mouse will indeed move to location 180, 180 on my screen

    Perhaps maybe ffplay takes a split second to load and there is still no screen called Goodfellas when the movewindow command is executed

  • Keep bash script running child processes until bash script end

    17 septembre 2014, par Xeoncross

    I would like to keep a command running (in this case ffmpeg) until a certain time.

    The best way I know to do this is to wrap that command in a bash script that will keep checking to make sure it’s running.

    If it dies before that time, the script should restart it. I’m having trouble figuring out how do this. It seems like keeping a process running/restarting as needed until a term signal is a pretty common task.

    I can’t use a crontab entry because I have to wait until X outside source starts this process (and ultimately sends the terminate signal).

    #!/bin/bash

    #launch_ffmpeg()
    #{
    #   ffmpeg -i rtmp://localhost/$1/$2 -c copy -f flv rtmp://localhost/$1/$2 &
    #   return $!
    #}

    on_die ()
    {
       # kill all children
       pkill -KILL -P $$
    }

    trap 'on_die' TERM

    # I think this is wrong
    while :
       do
           ffmpeg -i rtmp://localhost/$1/$2 -c copy -f flv rtmp://localhost/$1/$2 &
           wait $!
           sleep 10
    done
  • ffmpeg fails to capture video running on screen

    21 septembre 2014, par Ralf

    I’m trying to capture a slide presentation as video. I’m using the following command to capture my screen

    ffmpeg \
      -f x11grab -s 1024x768 -r 25 -i $DISPLAY \
      -f alsa -i pulse \
      -vcodec libx264 -preset ultrafast -vb 1000k \
      -acodec libmp3lame -ab 128k \
      test.avi

    This works (application windows on the screen are visible and sound is recorded in test.avi), but the problem is : Any video shown on the screen (e.g. a youtube video running in a browser window, but also e.g. a video played by mplayer) only appears as an empty (e.g. green) box when I play the captured video (test.avi).

    I’m using ffmpeg version 0.8.16-4:0.8.16-0ubuntu0.12.04.1 on Ubuntu 12.04.5 LTS with the nvidia-331 driver (effect is the same with older nvidia-304).

    I would really appreciate any suggestions, thanks a lot !