dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

speed up video analyzer

Open khoan opened this issue 10 years ago • 2 comments

# currently takes a long time
identify -ping -format '%m %w %h' /path/to/video.mp4

can we somehow extract first frame and use it to return format, width and height?

khoan avatar Aug 26 '15 12:08 khoan

# this runs in seconds
identify -ping -format "%m %w %h" /path/to/video.mp4[0]

khoan avatar Aug 26 '15 12:08 khoan

it probably wouldn't hurt always analysing the first frame - feel free to send a pull request

markevans avatar Sep 15 '15 09:09 markevans