
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (102)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (11201)
-
avfilter/f_sidedata : synchronize with side data list
23 avril 2024, par Niklas Haas -
List files in a folder in natural order using bash script
15 janvier 2017, par Vince LekoI 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.flvTo merge videos correctly, I need files to be listed in natural order like this :
Naturally ordered files
As shown in the picture, files need to be sorted by the number after
-
from 1 to 24, with6846641-1.flv
in the first line and6846641-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/h264_mc_template : Only prefetch motion if the list is used.
8 juin 2018, par Michael Niedermayeravcodec/h264_mc_template : Only prefetch motion if the list is used.
Fixes : index 59 out of bounds for type 'H264Ref [48]'
Fixes : 8232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5703295145345024Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>