Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (63)

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

  • FFmpeg works on command line but not working on PHP script [on hold]

    6 août 2014, par burakcakirel

    Here is the screenshot to compare the results of command line output and PHP script output.

    http://screencast.com/t/e8Cdmr6aQ

    It works when ffmpeg command runs on command line, but it doesn’t work when using exec() command in php script. Any solution ?

    Also, the following screenshot shows that all about ffmpeg on the server :

    http://screencast.com/t/N9TnOORJkx

    I’ve tried /opt/mct/bin/ffmpeg and /usr/local/bin/ffmpeg. Nothing works on php script.

    safe_mode => OFF

    FFmpeg paths => 755

    EDIT : FFmpeg command already exists in the screenshot. Anyway here are the commands which none of them don’t work :

    /root/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1

    /opt/mct/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1

    /usr/local/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1
  • Windows CMD Batch Script FFmpeg

    1er mars 2021, par Tobias

    I have created a batch file (.bat) that uses FFmpeg to transcode various videos (with *.mov or *.mp4 file name extension) from an input folder to an output folder (with extension *.mkv) as batch process (Windows 10 environment).
File names (without extension) from the input folder should be copied to the newly created output file names (that have the new file extension *.mkv).

    


    @echo off

set CMD=ffmpeg -c:v ffv1 -level 3 -g 1 -coder 1 -context 1 -pix_fmt + -slices 24 -slicecrc 1 -report -c:a pcm_s24le

FOR /R input_folder %%G IN (*.mov,*.mp4) DO (
   echo %%G
   call set outputfile=%%~nG%.mkv
   call set inputfile=%%~nG%%~xG
   echo %CMD% -y output_folder/%outputfile% -i %inputfile%
)


    


    But this script does not work as expected, i.e. nothing happens.
Do you perhaps have an idea how to fix this ?
Thanks in advance !

    


  • Parsing Values To Shell Bash Script

    30 septembre 2014, par user1503606

    I am trying to make a simple bash script for a command so i can make it reusable for me the command has been taken from another post to convert videos with ffmpeg then upload.

    Here is what i have so far.

    #!/bin/bash
    MOVIES=$1
    EXT=$2
    BUCKET=$3
    find "$MOVIES" -name "*.$EXT" -exec sh -c 'ffmpeg -i "$0" -c:v libx264 -crf 22 -c:a libfaac -movflags faststart "${0%%.mov}.mp4" && s3cmd put "${0%%.mov}.mp4" "$BUCKET""$(basename "${0%%.mov}.mp4")"' {} \;
    exit;

    I am having issues with the third var if i run it like this.

    sh batch.sh ~/Documents/screengrabs/ mov s3://bucket/

    I am getting a error it encodes properly.

    ERROR: Parameter problem: Destination must be S3Uri. Got: file://49A22352-9F41-48B9-BF97-610CBF699025-630-0000055828D0D55F.mp4

    This means it is not parsing the $3 parameter $BUCKET properly.

    Any help this is my first bash script attempt.

    Thanks

    Update still not working

    #!/bin/bash
    MOVIES="$1"
    EXT="$2"
    BUCKET="$3"

    find "$MOVIES" -name "*.${EXT}" -exec sh -c 'ffmpeg -i "$0" -c:v libx264 -crf 22 -c:a libfaac -movflags faststart "${0%%.mov}.mp4" && s3cmd put "${0%%.mov}.mp4" "${BUCKET}/sam.mp4"' {} \;

    exit;

    WORKING

    #!/bin/bash
    MOVIES=$1
    EXT=$2
    export BUCKET=$3
    find "$MOVIES" -name "*.$EXT" -exec sh -c 'ffmpeg -i "$0" -c:v libx264 -crf 22 -c:a libfaac -movflags faststart "${0%%.mov}.mp4" && s3cmd put "${0%%.mov}.mp4" "$BUCKET""$(basename "${0%%.mov}.mp4")"' {} \;
    exit;