6 size
=$
(/usr
/bin
/du
-h "${file}" |
/usr
/bin
/cut
-d' ' -f1)
10 width
=$
( ffprobe
-v error
-of flat
=s
=_ \
12 -show_entries stream
=width \
15 height
=$
(ffprobe
-v error
-of flat
=s
=_ \
17 -show_entries stream
=height \
20 duration
=$
(ffprobe
-v error
-of default
=noprint_wrappers
=1:nokey
=1 \
22 -show_entries format
=duration\
26 printf "%s, " "${format}"
27 printf "%s, " "${size}"
28 printf "%sx%s, " "${width}" "${height}"
29 printf "%s" "${duration}"
32 width
=$
( ffprobe
-v error
-of flat
=s
=_ \
34 -show_entries stream
=width \
37 height
=$
(ffprobe
-v error
-of flat
=s
=_ \
39 -show_entries stream
=height \
42 printf "%s, " "${format}"
43 printf "%s, " "${size}"
44 printf "%sx%s" "${width}" "${height}"
46 "application/epub+zip")
47 printf "%s, " "${format}"