Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (30)

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

  • FFMPEG .bat script not running

    22 août 2018, par MrGreen

    I’ve got a folder full of .avi video files. I want to change the container of each of those to .mp4 using a .bat script.
    This is the code :

    for i in "*.avi" do ffmpeg -i "$i" -c copy "outputs/${i%.avi}.mp4"; done

    But when i run the .bat cmd pops up for a split second and closes immediately. The folder for the output is there as well as the ffmpeg.exe.
    Whats wrong ?

  • Batch script calling its own name instead of files of a certain type ?

    27 juin 2020, par R. Elias
    cd %cd%
ffmpeg -i %cd%/%04d.png out.mp4


    



    A script with just this in it works completely fine and outputs exactly what I need it to, but :

    



    :: A simple script to convert a png or jpg image sequence to an         
mp4 file with ffmpeg
cls
@echo off
title PNG2MP4
color C
echo Ensure you have ffmpeg installed and setup in your environment variables or this script won't work.


:QUERY
echo This will convert all image files in the following directory to a single mp4, 
echo %cd%
echo are the files PNGs or JPEGs(PNG/P/JPG/J/CANCEL)?
set/p "ch=>"
if /I %ch%==PNG goto CONVERTPNG
if /I %ch%==P goto CONVERTPNG
if /I %ch%==JPG goto CONVERTJPG
if /I %ch%==J goto CONVERTJPG
if /I %ch%==CANCEL goto :eof
echo Invalid choice & goto QUERY

:CONVERTPNG
cd %cd%
ffmpeg -i %cd%/%04d.png out.mp4

:CONVERTJPG
cd %cd%
ffmpeg -i %cd%/%04d.jpg out.mp4


    



    This more complex version of the script fails, outputting :

    



    C:\tmp/img2mp4.bat4d.jpg: No such file or directory


    



    Why is it no longer calling the files that it did before and is there an easy fix for this ?

    


  • Recursively running ffmpeg concat script in bash across multiple folders

    15 août 2022, par Sam Feldman

    I wrote a bash script that concatenates all video files in a folder using ffmpeg. I would like to be able to run this script recursively on multiple folders. My problem has been that I am unable to change into the directory of every new folder to run the script. This is required for my script to work. Does anyone know what I could accomplish this ?

    


        #!/bin/bash

for f in *; do echo "file '$f'" >> files.txt; done
for f in *; do echo "'$f'" >> filesdelete.txt; done
ffmpeg -f concat -safe 0 -i files.txt -c copy "${PWD##*/}".MP4
xargs -I{} rm -r "{}" < filesdelete.txt
rm files.txt
rm filesdelete.txt


    


    I start with the file structure below. The script runs in each subdirectory (dir1, dir2, dir3) and combines the files in each subdirectory into one video. For the script to run, it needs to cd into each directory.

    


    root
├── dir1
│   ├── video1.mp4
│   ├── video2.mp4
│   └── video3.mp4
├── dir2
│   ├── video1.mp4
│   └── video2.mp4
└── dir3
    ├── video1.mp4
    └── video2.mp4


    


    The end result should look like the structure below.

    


    root
├── dir1
│   └── concat.mp4
├── dir2
│   └── concat.mp4
└── dir3
    └── concat.mp4