
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (106)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (6587)
-
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.


-
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"