
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (29)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
De près ou de loin...
29 avril 2011, parIls ne le savent pas forcément mais sont indispensables
MediaSPIP est un logiciel open-source, il se base sur d’autres logiciels, et d’autres logiciels lui sont également nécessaires pour fonctionner ... Les personnes ici listées ne savent pas forcément qu’elles ont un rôle important dans le développement, elles ont apporté leur connaissances dans le cadre de la création d’une partie de ces éléments nécessaires ou ont écrit des articles permettant de comprendre certaines choses... il semble indispensable (...)
Sur d’autres sites (3180)
-
FFMPEG - Concat Videos + Add Audio
24 mars 2020, par John DoeI’m trying to pipe some videos into an ffmpeg command which will concat the videos (keeping their audio) and mix a background audio track over the whole thing. I need the video to end when the audio does.
However right now this doesn’t work right. The music cuts out after the first video, and ffmpeg doesnt stop encoding when music stops. It seems simple enough but I’ve been working at this all night, any help would be appreciated.
ffmpeg -y -hide_banner -protocol_whitelist file,pipe -f concat -safe 0 -i pipe: -i "music.mp3" -filter_complex "[1:a]afade=in:0:d=10,volume=0.5[music];[0:a][music]amix=duration=longest[a]" -map "0:v" -map "[a]" -c:v libx264 -x264-params keyint=120:scenecut=0 -c:a aac -ac 1 -ar 22050 -movflags faststart -r 30 -fflags genpts "%random%.mp4"
-
FFMPEG linux how to get the total time duration of a folder containing videos ?
3 octobre 2015, par Andrea Turcoi need to get the total count of video times in a folder
I need to generate a file .txt that export just the total time of the videos in the folder in the format :
HH:MM:SS
Actually with this script i get just the duration of single files splitted..i need just single output in the file video_times.txt with the total duration.
videos=( "/home/videos")
default_ext=( mp4 avi )
dump_file=./video_times.txt
# parameters or default values?
(( $#==0 )) && ext=( "${default_ext[@]}" ) || ext=( "$@" )
echo "locations: ${videos[@]/$HOME/~}"
echo "extensions: ${ext[@]}"
for(( i=0; i<${#ext[@]}; i++ ))
do
(( i>0 )) && find_params+=( -o )
find_params+=( -iname '*.'${ext[$i]} )
done
find_params=( '(' "${find_params[@]}" ')' )
rm "$dump_file" 2>/dev/null
while IFS= read -rd '' f
do
echo "$(( ++n )): $f"
# time in original HH:MM:SS.ms format and in SSSSSS.ms
ffmpeg -i "$f" 2>&1 | awk '/Duration:/ {split($2, t, ":|,"); print $2 t[1]*3600+t[2]*60+t[3]; }' >> "$dump_file"
done < <( find "${videos[@]}" "${find_params[@]}" -print0 )
awk -F, ' {
total=$2;
# printing numbers during work
# printf("%+10.2f\t(%10.2f)\n", $2, total );
}
END {
# print "-----------------------------";
printf( "%.2f seconds in %d files\n", total, NR );
h=total/3600; total%=3600;
m=total/60; total%=60;
printf( "%02d:%02d:%s\n", h, m, total )
}' "$dump_file" -
How to merge two videos using ffmpeg Android
12 août 2021, par Usama ShakeelI have two videos which I want to merge. Both have same resolution. The second video does not have any audio


ffmpeg -i test.mp4 -i picture.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=1:v=2:a=1 [v] [a]" -map "[vv]" -map "[aa]" mergedVideo.mp4


this is the command that I am using but I am getting the following error
Stream specifier ':a' in filtergraph description [0:v] [0:a] [1:v] [1:a] concat=n=2:v=2:a=1 [v] [a] matches no streams.


I am not very familiar with ffmpeg commands but I guess I am giving some wrong -filter complex values