Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (33)

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

  • Python script than run another python script, ffmpeg2vmaf

    16 mai 2018, par Asusio

    I want to build a little API to use ffmpeg2vmaf to analyze videos that are made for the video streaming (DASH, HLS).

    I’m on Linux Ubuntu 16.04, I’m using python 3.

    My API can now concatenate the files into an MP4 file. To do it I’m using the library subprocess and the command cat.

    But when I want to use ffmpeg2vmaf it can’t find a library that ffmpeg2vmaf use.

    This is how I do :

    try:
       os.chdir("/home/USERNAME/VMAF/vmaf/")
       output_cmd = subprocess.check_output(["sudo ./ffmpeg2vmaf WIDTH HEIGHT \
                    '/home/alexis/video/ref.mp4' '/home/alexis/video/dist.mp4'\
                    >> '/home/alexis/analyze/analyze.txt'"], shell = True)
    except subprocess.CalledProcessError:
       print("Error")

    The error is :

    Traceback (most recent call last):
       File "./ffmpeg2vmaf", line 8, in <module>
           from vmaf.config import VmafConfig, DisplayConfig
    ImportError: No module named vmaf.config
    </module>

    But if I use the same command without python, in the terminal, it works.

    I have try to put my API in the same folder as "ffmpeg2vmaf" but it still doesn’t work.

    Thank you by advance

  • Correcting the variable name in an ffmpeg subtitle script

    21 juin 2017, par Steven Foong

    I have 175 mp4 video files and subtitle files with the extension .ass. Unfortunately, my smart TV is not able to read those subtitles. I plan to burn (hardcode) the subtitles into the video.

    I use this command :

    ffmpeg -i orgvideo.mp4 -vf subtitles="subtitle.ass" newvideo.mp4     <br />

    It works. So I plan to use a bash script to automate the process.

    Everything in the script is working but the ffmpeg command line isn’t able to retrieve the subtitle variable.

    After googling around, I found that my file name has special character and space, that causes my script to fail. If the video file name and the subtitle file is simple, then the script should be no problem.

    This is my script :

    for f in *.mp4
    do
       new="${f%%.mp4} (CHT).mp4"
       subtitle="${f%%.mp4}.chi.ass"
       &lt; /dev/null ffmpeg -i "$f" -vf subtitles="$subtitle" "$new"
    done

    The ffmpeg line is having problems reading the subtitle file variable. Can anyone help ?

  • Powershell Script Exits Handbrake CLI

    23 décembre 2014, par Arnav Attri

    With the help of google, I workaround a Powershell script for handbrake automation. Now, the issue is when the source folder is empty the Powershell script exits.

    Here’s the scenario :

    1. I downloaded someone files - automated via RSS.
    2. They are placed in source folder.
    3. Powershell script works and encoding starts and successfully gets over.
    4. Now, when the encode is completed and in case of new download/file doesn’t arrive in the source folder, the script exits.

    Code is in PasteBin which has more comments but should be easy to infer what the script does

    $inputpath = "I:\S"
    $outputpath = "I:\E"

    $movies = ls $inputpath

    foreach($movie in $movies){
       $name = $movie.basename

       if(!(test-path -path "$outputpath\$name.mkv")){
           C:\"Program Files"\handbrake\HandBrakeCLI.exe -i "$inputpath\$movie" -o "$outputpath\$name.mkv" `
           -e x264 -b 1000 -2 -T -a 1,1 -E mp3 -B 112 --mixdown stereo -f mkv --detelecine --decomb `
           --loose-anamorphic -m -x rc-lookahead=30:ref=4:bframes=3:me=umh:subme=9:analyse=none:deblock=1:0:0:8x8dct=1
       }
    }