Recherche avancée

Médias (91)

Autres articles (111)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

Sur d’autres sites (13266)

  • Rename script with [Errno2] No such file or directory

    23 janvier 2015, par Carlos Augusto de Gois

    I have a folder with over 40 thousand images on an external drive, to use as a sequence for a timelapse. Before using ffmpeg though, I need to add trailing zeros to all the files. My attempt at a solution is shown below :

    import os

    path = '/Volumes/Arquivo\ \(carlosbgois@gmail.com\)/stadium_billiard/video/'
    for filename in os.listdir(path):
       num = filename[:-4]
       num = num.zfill(4)
       new_filename = num + ".png"
       os.rename(os.path.join(path, filename), os.path.join(path, new_filename))

    When running, I get the error [Errno2] No such file or directory on line 5. The files are named as 0.png, 1.png, ..., 32220.png, and so on. Any ideas on what may be causing this ?

    Have a nice day ( :

  • shell script : ffmpeg can't either read arguments or filenames, if spaces in path- or filename

    9 juillet 2014, par Nicolas

    I’m currently working on a bash shell script on OS X to get a custom tailored Pashua GUI/automatization package, using ffmpeg in the back, to transcode videos, label them, zip them, upload them, organize them and so on. Everything is working like a charm so far.

    My problem now is that I can’t make ffmpeg take files or paths that have spaces in them IF I use variables in variables. But that (I think) is a must in order to get ffmpeg to transcode multiple files at once depending on the formats and checkboxes the user ticks on.

    I made a little example snippet so you can see my dilemma.

    No spaces in path or filename / works great :

    #!/bin/bash

    infile='/Users/nicolas/Desktop/MASTER_[DE]_Test_140626.mov'

    gen_outfile () {
       outfile="${1/MASTER/TRANSCODE}"
       ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 $outfile"
    }

    gen_outfile "$infile" 1920x1080

    ./ffmpeg_stat -i "$infile" $ffmpeg_cl

    The output is as expected and the file is called "TRANSCODE_[DE]_Test_140626.mov"

    Filename variable with spaces - directly fed to ffmpeg :

    This works as well but isn’t really usable for me because I need to have the option of variable numbers of output files and arguments generated dynamically.

    #!/bin/bash

    infile_full='/Users/nicolas/Google Drive/encode-o-mat/MASTER_[DE] Test  140626.mov'

    gen_outfile () {
       outfile="${1/MASTER/TRANSCODE}"
       ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2"
    }

    gen_outfile "$infile_full" 1920x1080

    ./ffmpeg_stat -i "$infile_full" $ffmpeg_cl "$outfile"

    The output is as expected and the file is called "TRANSCODE_[DE] Test 140626.mov".
    But this way is just not an option.

    This here does not work ! Filename is split up and incomplete :

    #!/bin/bash

    infile_full='/Users/nicolas/Google Drive/encode-o-mat/MASTER_[DE] Test  140626.mov'

    gen_outfile () {
       outfile="${1/MASTER/TRANSCODE}"
       ffmpeg_cl="-s $2 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 $outfile"
    }

    gen_outfile "$infile_full" 1920x1080

    ./ffmpeg_stat -i "$infile_full" $ffmpeg_cl

    Ffmpeg gives this error : "Unable to find a suitable output format for ’/Users/nicolas/Google’".
    Of course.

    This doesn’t work as well ! Quoting and such :

    ./ffmpeg_stat -i "$infile_full" "$ffmpeg_cl"

    If I put the $ffmpeg_cl variable in various quotes ffmpeg doesn’t understand the arguments anymore ! This is one example output :

    "Unrecognized option ’s 1920x1080 -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a aac -b:a 240k -strict -2 /Users/nicolas/Google Drive/encode-o-mat/TRANSCODE_[DE] Test 140626.mov’.
    Error splitting the argument list : Option not found
    Conversion failed !"

    It’s really important that the script can handle path- and filenames with spaces because I can’t change the environment in which that tool is supposed to run. All ideas and solutions are more than welcome !

  • Difference in number of channels returned by mediainfo and ffprob

    16 mars 2021, par Hai Tran

    I was examining an audio file and noticed that the numbers of channels returned by mediainfo and ffprobe were different.

    


    The mediainfo command :

    


    mediainfo audio.mp4


    


    The ffprobe command (see the channels value) :

    


    ffprobe -i audio.mp4 -show_streams


    


    Does anyone know what's happening ?
Here is the audio file for your own test.