Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (35)

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

  • Revision 62658 : Spipmotion ne doit pas être cassé si il manque le script de vignettes, on ...

    18 juin 2012, par kent1@… — Log

    Spipmotion ne doit pas être cassé si il manque le script de vignettes, on peut s’en passer
    On utilise document_modifier et non plus revision_document
    On utilise passthru plutot que shell_exec car shell_exec ne marche pas avec safe_mode d’activé
    On force l’exécution de l’encodage direct dans le public sinon ça ne marche pas
    On ajoute dans ffmpeg_infos les infos du script d’encodage et de génération de vignettes

  • ffmpeg getting syntax error when run inside shell script only.. Why ? [duplicate]

    10 décembre 2017, par bmck2006

    This question already has an answer here :

    OS : Raspbian

    I’m currently working on a bash script that will merge all .AVI videos in the current directory, to one .AVI file. I’ve found the following to work perfectly for me, when run directly in the terminal :

    ffmpeg -f concat -safe 0 -i <(find . -name '*.avi' -printf "file '$PWD/%p'\n") -c copy "$(date -d '-1 day' +'%F')".avi

    This works perfectly, and I find a new .AVI file listed in the current directory (with a date name from yesterday).

    Now, when I add this same command to my script (merge.sh), I get the following output :

    /home/pi/Documents/MotionScripts/merge.sh: 11:
    /home/pi/Documents/MotionScripts/merge.sh: Syntax error: "(" unexpected

    This is beyond frustrating. And yes, ffmpeg command from earlier is on line 11. The script navigates to the correct directory where the multiple .avi files are stored.

    Here is the entire script :

    #!/bin/bash

    #This script combines multiple AVI files within the current directory, into one long video

    cd /media/myBook/Security/yesterday

    sudo mv * /home/pi/Videos/tempconversion

    cd /home/pi/Videos/tempconversion

    ffmpeg -f concat -safe 0 -i <(find . -name '*.avi' -printf "file '$PWD/%p'\n") -c copy "$(date -d '-1 day' +'%F')".avi

    sudo mv "$(date -d '-1 day' +'%F')".avi /media/myBook/Security/yesterday

    sudo rm -f *

    Why am I getting the syntax error only when the same command is being issued within an executable script ?

    RESOLVED ! Shouldn’t have used ’sh’ to run the script. Make sure the script is executable (sudo chmod +x merge.sh) and run by entering the full path.

  • Time issues in ffmpeg script (MP4 to MP3 conversion)

    16 février 2018, par Alex

    I use the code below as script on my Debian PC to create MP3 files from MP4 video files for adding to podcast app on android phone.

    But each time I click pause/forward time position (not indication) is set up in random way after resuming. Please help improve the code below to solve this problem.

    for f in *.mp4; do
     ffmpeg -i "$f" -map 0:a -codec:a libmp3lame -b:a 96k "${f%.mp4}.mp3"
    done
    for f in *.mp3; do
     vbrfix -always -makevbr -lameinfo "$f" "${f%.mp3}.mp3"
     rm -rf vbrfix.log vbrfix.tmp
    done