Recherche avancée

Médias (91)

Autres articles (65)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (6460)

  • Convert simple Bash script to PowerShell ?

    10 février 2015, par vulcan raven

    I have pulled the Bash script from here, which checks the AVI file for bad frames using ffmpeg and cygwin extension. I am able to execute the code in Mingw. I put ffmpeg.exe (ren ffmpeg), cygwin1.dll & cygz.dll in Mingw’s bin dir (/c/mingw/bin/). Now, I am looking to port this bash code to PowerShell. Can anyone shed some PowerShell light on this one ?

    Script : (path : /c/mygw/bin/AviConvert)

    #!/bin/bash

    FFMPEG="ffmpeg"
    LIST=`find | grep \.avi$`

    for i in $LIST; do
       OUTP="$i.txt"
       OUTP_OK="$i.txt.ok"
       TMP_OUTP="$i.tmp"
       if [ -f "$OUTP" -o -f "$OUTP_OK" ] ; then
       echo Skipping "$i"
       else
       echo Checking "$i"...
       RESULT="bad"
       ffmpeg -v 5 -i "$i" -f null - 2> "$TMP_OUTP" && \
           mv "$TMP_OUTP" "$OUTP" && \
           RESULT=`grep -v "\(frame\)\|\(Press\)" "$OUTP" | grep "\["`
       if [ -z "$RESULT" ] ; then
           mv "$OUTP" "$OUTP_OK"
       fi
       fi
    done
  • bash script to start/stop ffmpeg x11grab

    28 juin 2012, par lunacafu

    A application is storing its status in a file on the server /temp/status.txt. There are 4 status possible : wait, ready, recording, finished. With a cronjob I would like to start a shell script that checks this file and take action as follows :

    • wait -> do nothing
    • ready -> execute ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg. Now while ffmpeg captures, the status.txt file still has to be checked for a change to the status,
    • recording -> do nothing
    • finished -> send q command to ffmpeg process to quit capturing process and finish script.

    I tried to solve it with expect and xdotool to realize that this absolutely the wrong way. My problem is that I acutally have no experience in bash and handling processes, child processes etc.

  • How do I make a bash script continue part of a loop only if there is no error in the first step of the loop ?

    30 mars 2012, par Eli Greenberg

    I currently have a .command file for Mac that contains the following :

    for f in ~/Desktop/Uploads/*.flv
    do
        /usr/local/bin/ffmpeg -i "$f" -vcodec copy -acodec libfaac -ab 128k -ar 48000 -async 1 "${f%.*}".mp4
        rmtrash "$f"
    done

    How can I tell bash to only execute rmtrash if ffmpeg doesn't produce an error ?