Recherche avancée

Médias (91)

Autres articles (42)

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

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (4627)

  • Running bash script in backend safe ?

    11 mai 2021, par Tris

    Hi I am pretty new to web security and am worried about possible shell/command injection risks. I am wondering if it is safe to run a command line script only in my nodejs backend and have the web host run it.

    


    From my understanding, it would be safe to run as the backend is not able to be accessed from the website and its front end.

    


    Thanks for any answers !

    


  • Bash Script using formatted date string in FFMPEG command

    30 juin 2024, par coco

    In my bash (zsh) script, I am receiving a string that represents a Unix epoch, like :

    


    myTimestamp="1719742786"


    


    I want to change that date into a formatted string, and then store it in a variable so it can be used in an upcoming ffmpeg script. I'm doing it this way :

    


    theDate=$(date -u -r "$myTimestamp" "+%b %d, %H:%M:%S")
echo "$theDate"


    


    which prints to my screen what I want :

    


    Jun 30, 06:19:48


    


    but when I try to use this variable in my ffmpeg script, I get errors :

    


    ffmpeg -y -i "$file" -vf \
        "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
        "$output"


    


    Note that if I change out '$theDate' in the script (to something like '$myTimestamp'), I do not get errors.

    


    What I do get, along with Error initializing filters, is this (possibly important ?) error :

    


    


    Both text and text file provided. Please provide only one

    


    


  • Running FFMPEG from Shell Script /bin/sh

    19 octobre 2015, par Chris James Champeau

    I am trying to setup a Shell Script to work within an automator watch folder...

    Everything works with the exception of the Run Shell Scrip portion...

    Essentially when a file shows up in the watch folder, it runs the shell scrip which calls FFMPEG and then will move the file to an archive folder for safe keeping. However right now automator is telling me everything worked but now file is being created.

    I have the Shell set to /bin/sh and Pass input set to as arguments

    Here is my script :

    for f in "$@"
    do
    name=$(basename "$f")
    dir=$(dirname "$f")
    ffmpeg -i "$f" -b 250k -strict experimental -deinterlace -vcodec h264 -acodec aac "$dir/mp4/${name%.*}.mp4"
    echo "$dir/mp4/${name%.*}.mp4"
    done

    it does echo the correct filename, but does not actually run ffmpeg

    I have tried adding -exec before it like I have seen in some scripts but still nothing...