Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (50)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (6658)

  • How to correctly detect window with xdotool in bash script

    24 mai 2020, par wasd

    I'm trying to record screen and also input from my webcam. To show image from a webcam I use ffplay. However I want it to be placed in a specific location of my screen. To do so I use xdotool and following bash script :

    



     #!/bin/bash                                                                                                                                                                                                                                   
 ffplay -i /dev/video0 &                                                                                                                                                                                       
 res=$!                                                                                                                  
 echo $res                                                                                                               
 window_pid=$(xdotool search --pid $res)                                                                                       
 echo $window_pid
 xdotool windowmove $window_pid 1200 200                                                                                                       
 wait


    



    For some reason I get correct process id res but nothing for the window_pid. If I run similar commands in terminal it works correctly (I run ffplay in one terminal instance and the rest of commands in another). What am I missing here ?

    


  • Hide subprocess output and store it in a variable in Python [duplicate]

    6 juillet 2022, par Dev01

    I would like to call a FFmpeg command, which produces a very big output.

    


    I need to store the output in order to make a regex on it.

    


    On the first command (echo), nothing is printed in my terminal, but for the ffmpeg command, huge output is produced (which I want to store in a variable, I don't want to have the output in my terminal)

    


    So my code looks like this for example :

    


    import subprocess
output = subprocess.check_output("echo a lot of wooooords")
output = subprocess.check_output("ffmpeg -i audio.mp3 -f null -", shell=True)


    


    Is it possible to hide the output for this command ? Why does it show me an output ? Thank you

    


  • How to permanently make ffmpeg recognizable from bin/bash in macOS

    10 avril 2022, par Anonymous

    I downloaded a zip for ffmpeg, because brew installation was not compatible with macOS High Sierra 10.13.6. After unzipping, the only file contained was ffmpeg, its icon is similar to the icon of the terminal. I want to get the terminal(which runs bin/bash $SHELL) to permanently recognise ffmpeg command.

    


    If I type :

    


      

    1. echo export PATH="/Users/imac/Documents/ffmpeg:$PATH" > ~/.bashrc
    2. 


    3. source ~/.bashrc
    4. 


    5. ffmpeg
then the command ffmpeg is recognized, so everything is ok.
    6. 


    


    However if I exit the terminal and re-open it, or just restart the computer
ffmpeg gives as output -bash: ffmpeg: command not found. So I have to do every time steps 1 and 2 that were describe above.

    


      

    1. Output of cat .bashrc :
export PATH=/Users/imac/Documents/ffmpeg:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

      


    2. 


    3. Output of echo $PATH :
/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

      


    4. 


    


    Note that in step 4 ffmpeg appears(in the location I have it stored) whereas in step 5 ffmpeg is absent. Also I have little knowledge of bash and terminal, so if you can, please be explanatory in answers and/or comments. Thank you very much !