local tmp="${TMPDIR:-/tmp}/serve0tmp_$$/" lenght n
if [ "${file%.part}" = "${file}" -a ! -s "$thumb" -a -s "$file" ] && mkdir "$tmp"; then
- length="$( ffprobe -show_entries stream=duration "$file" 2>&- )"
+ length="$( ffprobe -show_entries format=duration "$file" 2>&- )"
length="${length#*duration=}" length="${length%%${BR}*}" length="${length%.*}"
# ffmpeg -nostdin -y -i "$file" -vf fps=11/$length,scale=320:-2 -frames 10 "$tmp/thumb_%02d.jpg" 2>&-