Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (65)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4033)

  • 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 !

    


  • 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 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 ?