Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (34)

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

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (4083)

  • Checking for files in a directory with bash script ? what is wrong with this code ?

    4 décembre 2016, par A Sahra

    I have written this code to check for video files in a directory and convert them with ffmpeg.
    while running this script i get out put as "[ERROR] File Not Found" which i have it in else block.what is wrong with the script that i don’t get the files.

    #!/bin/bash
    # set PATH to check existance of video file in this directory
    checkfiles='/home/webuser/public_html/shareportal/convertedUp_videos/'
    #format of output video file
    webm='webm'
    for f in checkfiles
    do
    fullfilename="$f"
    filenamewithpath=$(basename "$fullfilename")
    filewithoutext="${filename%.*}"
    fileextention="${filename##*.}"
    changeextension=mv --"$f" "${f%.$fileextention}.$webm"
    outputfilename="/home/webuser/public_html/shareportal/converted_videos/$changeextension"
    echo "File FUll NAME : $fullfilename"
    echo "File name with full path : $filenamewithpath"
    echo "File name without extention : $filewithoutext"
    echo "File extention : $fileextention"
    echo '1 File Converted'
    if (ffmpeg -i "$f" "$outputfilename")
    then
    confullfilename="$outputfilename"
    confilenamewithpath=$(basename "$confullfilename")
    confilewithoutext="${filename%.*}"
    confileextention="${filename##*.}"
    echo "File FUll NAME : $confullfilename"
    echo "File name with full path : $confilenamewithpath"
    echo "File name without extention : $confilewithoutext"
    echo "File extention : $confileextention"
    echo '1 File Converted'
    else
    echo "Could Not Convert File"
    fi
    #get Image of video file on provided time stamp
    image_path='/home/webuser/public_html/shareportal/video_images/$filewithoutext.png'
    if (ffmpeg -ss 00:00:03 -i "$f" -vframes:v 1 "$image_path")
    then
    echo "Image Extracted"
    else
    echo "Could not Extract Image"
    fi
    done
    rm -r f
  • tests/fate : Don't keep unnecessary temp files

    28 février 2021, par Andreas Rheinhardt
    tests/fate : Don't keep unnecessary temp files
    

    Some FATE tests use files created by other FATE tests as input files ;
    this mostly affects the seek tests which use files from vsynth_lena as
    well as acodec-pcm as input files. In order to make this possible the
    temporary files of all the vsynth* and all acodec-pcm tests are kept.
    Yet only a fraction of these files are actually used. This commit
    changes this to only keep the files that are actually needed for other
    tests. This reduces the size of the tests/data/fate folder after a full
    FATE run from 2024727441B to 138739312B.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] tests/fate/acodec.mak
    • [DH] tests/fate/filter-video.mak
    • [DH] tests/fate/seek.mak
    • [DH] tests/fate/vcodec.mak
  • FFMPEG rgb image from named pipe in to h256 rawvideo out to named pipe out

    12 octobre 2018, par Evren Bingøl

    I am forking an ffmpeg and piping in rgb0 images and read hvec rawvideo (h256 frames) out.

    This is the command I am using

    ffmpeg -y -video_size 176x144 -f rawvideo -pix_fmt rgb0 -i
    \\\\.\\pipe\\my_pipe  -c:v libx265   -f rawvideo  \\\\.\\pipe\\my_pipe_out

    The issue is I never hear anything in ffmpeg when I try to read the pipe, so ffmpeg is not spitting anything out.

    When piping data into ffmpeg, I would assume that ffmpeg knows by the format parameter that it is rgb, and by the dimensions parameter, its size and calculates when a certain amount of data it received from pipe in is a full frame rgb image, processes it, and spits back hvec from pipe out.

    But it blocks as if it is accepting more data even though a full rgb image is piped in.

    Is what I am trying to do doable ?