Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (83)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • 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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (7663)

  • List files in a folder in natural order using bash script

    15 janvier 2017, par Vince Leko

    I am trying to merge several flv files using ffmpeg. ffmpeg requires a list of files in this format :

    file '/path/to/file1'
    file '/path/to/file2'
    file '/path/to/file3'

    With some search and trials, I have came up with this one line command :

    ffmpeg -safe 0 -f concat -i <(for entry in "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"/*.flv;do echo "file '$entry'";done) -c copy output.flv

    The script in brackets will generate a list of paths to all files in current folder in the format that is required by ffmpeg :

    for entry in "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"/*.flv;do echo "file '$entry'";done

    However, this only list files in alphanumeric order :

    6846641-10.flv
    6846641-11.flv
    6846641-12.flv
    6846641-13.flv
    6846641-14.flv
    6846641-15.flv
    6846641-16.flv
    6846641-17.flv
    6846641-18.flv
    6846641-19.flv
    6846641-1.flv
    6846641-20.flv
    6846641-21.flv
    6846641-22.flv
    6846641-23.flv
    6846641-24.flv
    6846641-2.flv
    6846641-3.flv
    6846641-4.flv
    6846641-5.flv
    6846641-6.flv
    6846641-7.flv
    6846641-8.flv
    6846641-9.flv

    To merge videos correctly, I need files to be listed in natural order like this :

    Naturally ordered files

    enter image description here

    As shown in the picture, files need to be sorted by the number after - from 1 to 24, with 6846641-1.flv in the first line and 6846641-24.flv in the last line. And each line in the format like this :

    file '/mnt/c/Users/Oho/Desktop/save//6846641-xx.flv'

    Would it be possible to generate a correctly formatted list for ffmpeg with bash script (and in one line if achievable) ?

    Edit :
    Thanks to Cyrus, the modified code is here and it does the job :

    #!/bin/bash
    for entry in "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"/*.flv
    do
       echo "file '$entry'" >> fileOutputList.temp
    done
    sort -t "-" -n -k 2 fileOutputList.temp > fileOutputListSorted.temp
    ffmpeg -safe 0 -f concat -i fileOutputListSorted.temp -c copy output.flv
    rm fileOutputList.temp
    rm fileOutputListSorted.temp
  • avcodec/bsf/pcm_rechunk : reorder supported codec list

    3 mars 2024, par Marton Balint
    avcodec/bsf/pcm_rechunk : reorder supported codec list
    

    Use lexical order.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavcodec/bsf/pcm_rechunk.c
  • avfilter/vf_format : check that the format list is not empty

    5 janvier 2014, par Michael Niedermayer
    avfilter/vf_format : check that the format list is not empty
    

    Fixes Ticket3210

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavfilter/vf_format.c