Recherche avancée

Médias (91)

Autres articles (48)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (5297)

  • 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

  • Revision 30147 : corrections orthographiques

    24 juillet 2009, par denisb@… — Log

    corrections orthographiques

  • gdigrab : Fix hwnd parameter issues

    18 décembre 2023, par Martin Storsjö
    gdigrab : Fix hwnd parameter issues
    

    Converting from an integer to HWND (which is a pointer) requires
    an explicit cast, otherwise Clang errors out like this :

    src/libavdevice/gdigrab.c:280:14 : error : incompatible integer to pointer conversion assigning to 'HWND' (aka 'struct HWND__ *') from 'long' [-Wint-conversion]
    280 | hwnd = strtol(name, &p, 0) ;
    | ^ 

    (With GCC and MSVC, this was a mere warning, but with recent Clang,
    this is an error.)

    After adding a cast, all compilers also warn something like this :

    src/libavdevice/gdigrab.c:280:16 : warning : cast to 'HWND' (aka 'struct HWND__ *') from smaller integer type 'long' [-Wint-to-pointer-cast]
    280 | hwnd = (HWND) strtol(name, &p, 0) ;
    | ^ 

    On Windows, long types are 32 bit, so to get a usable pointer, we
    need to use long long. And interpret it as unsigned long long
    while at it - i.e. using strtoull.

    Finally, right above it, the code triggered the following warning :

    src/libavdevice/gdigrab.c:278:15 : warning : mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
    278 | char *p ;
    | ^

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavdevice/gdigrab.c