Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (19)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • 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 (...)

Sur d’autres sites (2061)

  • Bash : bash script to download trimmed mp3 from youtube url

    25 août 2017, par Bhishan Poudel

    I would like to download the initially x seconds trimmed mp3 from a video url of youtube.
    I found that youtube-dl can download the video from youtube to local machine. But, when I looked at the man pages of youtube-dl, I could not find any trim options.

    So I tried to use the ffmpeg to trim downloaded mp3 file.
    Instead of doing this is two steps, I like to write one bash script which does the same thing.
    My attempt is given below.

    However, I was stuck at one place :
    "HOW TO GET THE VARIABLE NAME OF OUTPUT MP3 FILE FROM YOUTUBE-DL ?"
    The script is given below :

    # trim initial x seconds of mp3 file
    # e.g. mytrim https://www.youtube.com/watch?v=dD5RgCf1hrI 30
    function mytrim() {
       youtube-dl --extract-audio --embed-thumbnail --audio-format mp3 -o "%(title)s.%(ext)s" $1
       ffmpeg -ss $2 -i $OUTPUT_MP3 -acodec copy -y temp.mp3
       mv temp.mp3 $OUTPUT_MP3
       }

    How to get the variable value $OUTPUT_MP3 ?
    echo "%(title)s.%(ext)s" gives the verbatim output, does not give the output filename.

    How could we make the script work ?

    The help will be appreciated.

  • How to pass the output of one program (ffmpeg) to python script ?

    8 septembre 2017, par Victor Odouard

    What I would like to do is this :

    ffmpeg -i udp://224.10.10.10:15004 -qscale:v 2 sttest%04d.jpg

    And then pass the output image paths of this to a python script, which individually takes in the images and manipulates them, as ffmpeg is running (eventually I will use ffmpy to call ffmpeg rather than using the command line tool, but for now testing purposes, I’m starting here).

    I suppose a way to do this would be to look into the directory of the ffmpeg output every time I’ve processed an image to see if there is a new one, and then load that into python (using OpenCV)—and then waiting a certain time interval if there are no new images to process.

    But is there a better way of doing this, like sending the paths of the images directly to some sort of queue which the python script can then process one by one ?

  • makedef : Extend the script for use with mingw tools as well

    24 août 2017, par Martin Storsjö
    makedef : Extend the script for use with mingw tools as well
    

    This is invoked by setting the NM and AR variables to the names of
    those specific tools. The ARCH variable also needs to be provided,
    to choose the symbol prefix (nm doesn’t provide any option that
    dumps the architecture easily).

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

    • [DBH] compat/windows/makedef