
Recherche avancée
Autres articles (100)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (17090)
-
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" -
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"
-
Batch resizing videos to specific resolution with ffmpeg
9 juin 2020, par tjkI need to resize all mp4 videos in a folder to a specific resolution. It is a vertical video that must be exactly 360x640px. Input videos can be of different resolutions, aspect ratios, vertical or horizontal. I am very new to this and so far I only got to this :



for i in *.mp4; do ffmpeg -i "$i" -vf "scale='if(gt(a*sar,16/9),360,640*iw*sar/ih)':'if(gt(a*sar,16/9),360*ih/iw/sar,640)',pad=360:640:(ow-iw)/2:(oh-ih)/2,setsar=1" "converted/${i%.*}.mp4"; done




When running this with 16 videos one of them (400x672px) won't resize with this error in log :



[Parsed_pad_1 @ 0x7fd760548c00] Input area -10:0:370:640 not within the padded area 0:0:360:640 or zero-sized
[Parsed_pad_1 @ 0x7fd760548c00] Failed to configure input pad on Parsed_pad_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[aac @ 0x7fd76280da00] Qavg: 15546.137
[aac @ 0x7fd76280da00] 2 frames left in the queue on closing




Please help to fix this.