Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (78)

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

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6422)

  • Run script after FFMPEG background task completes (via PHP)

    9 novembre 2018, par Utkanos

    I have a PHP script which triggers an FFMPEG file conversion via shell_exec().

    shell_exec('ffmpeg -i file.webm -c:v libx264 -c:a aac -strict -2 file.mp4 >/dev/null 2>/dev/null &');

    This happens in the background (hence &), i.e. the script completes before conversion has finished.

    Is there a way to call and execute a PHP script (to update a DB flag) once the conversion is complete ?

    I’ve done plenty of Googling but my knowledge of server commands just isn’t up to understanding what I’m reading (e.g. this answer). The best I could manage was to redirect stdout to a file via

    shell_exec('ffmpeg -i file.webm -c:v libx264 -c:a aac -strict -2 file.mp4 > MYFILE.txt 2>/dev/null &');

    ...but obviously that just creates and writes to a file, it doesn’t call and execute it via PHP.

  • Configure script for ffmpeg does not find sdl2

    3 avril 2018, par Peter

    Environment :

    Ubuntu 16.04
    ffmpeg source code version 3.4.2

    SDL2 installed

    $ pkg-config --exists --print-errors sdl2
    $ sdl2-config --cflags
    -I/usr/include/SDL2 -D_REENTRANT
    $ sdl2-config --libs
    -L/usr/lib/x86_64-linux-gnu -lSDL2
    $ sdl2-config --version
    2.0.4

    Here is part of my configuration shell script :

    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$TARGET_DIR/lib/pkgconfig" ./configure \
    --prefix="$TARGET_DIR" \
    --pkg-config-flags="--static" \
    --enable-sdl2 \

    When I run the script, the error I get is "sdl2 requested but not found."

    What is it that I am missing ? Regards.

  • How to convert multiple files from mp4 to flv using a shell script

    22 avril 2013, par jerdiggity

    Assuming I had a bunch of videos sitting inside the directory /home/user/videos/awaiting_conversion how would I go about using cron to run a script similar to this one to batch convert each video into a different format ?

    /bin/sh -c $'nice /usr/bin/ffmpeg -i \044'\'$'/home/user/videos/awaiting_conversion/video_file_1.mp4'\'$' -s \044'\'$'480x320'\'$' -vcodec libx264 -acodec libmp3lame -ab \044'\'$'64k'\'$' -vpre fast -crf \044'\'$'30'\'$' -ar \044'\'$'22050'\'$' -f flv -y \044'\'$'/home/user/videos/converted/video_file_1.flv'\'$''

    The above script works fine for a single conversion, but :

    1. It assumes that the name of the video is static/known (which will not be the case when batch converting).
    2. It assumes that there is only one video to convert (which may or may not be the case), i.e. there's no "loop".
    3. It leaves the original file in place instead of deleting it (which is what I would want to happen to prevent duplicate conversions).

    The ultimate question would be how do I run that script for each video that exists inside /home/user/videos/awaiting_conversion, passing the file name as a variable ?