Outils du site


Bac-à-Sable

monexemple.php
<?php echo "hello world!"; ?>
dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=notrunc,noerror
script.sh
#!/bin/bash -v
 
times=()
declare -a FILES
for f; do
  if [ -r "$f" ]; then
FILES+=("$f")
fi
_t=$(ffmpeg -i "$f" 2>&1 | awk '/^  Duration/ { split($2, A, ":"); split(A[3], B, "."); print 3600*A[1] + 60*A[2] + B[1] - 5 }')
	times+=("$_t")
done
echo "${times[@]}" | sed 's/ /+/g' | bc
 
 
ffmpeg -i "$f" -af "afade=t=in:ss=0:d=5,afade=t=out:st=$times :d=5" output.wav
 
exit

Test