vcsi icon indicating copy to clipboard operation
vcsi copied to clipboard

Export metadata

Open Teng opened this issue 5 years ago • 2 comments

I want to use thumbnails on my website. I need to get the width and height of Grid image. Is this possible? Export metadata?

Teng avatar Feb 22 '20 13:02 Teng

vcsi currently does not have an option to export metadata, but it could be implemented.

To do so, I would need to understand which image you are referring to. What is this "Grid image"?

I can image that you may want to export the size (width and height) of these 3 images:

  • the final vcsi output image (the full contact sheet)
  • a single frame on the contact sheet grid
  • the source video

Is there a specific one you are interested in?

amietn avatar Feb 26 '20 16:02 amietn

Hey, thank you for your reply.

This is an example.

vcsi test.mp4 \
-t \
-w 1600 \
-g 5x0 \
--grid-horizontal-spacing 0 \
--grid-vertical-spacing 0 \
--interval '20 sec' \
--end-delay-percent 20 \
-o output.png \
--metadata-position hidden \

I'm not familiar with Python.

I found these from the code and print

https://github.com/amietn/vcsi/blob/c904a9982f9bec161f3ac536270186227b014299/vcsi/vcsi.py#L633 https://github.com/amietn/vcsi/blob/c904a9982f9bec161f3ac536270186227b014299/vcsi/vcsi.py#L1707 https://github.com/amietn/vcsi/blob/c904a9982f9bec161f3ac536270186227b014299/vcsi/vcsi.py#L1724

I want grid_desired_size((320, 180)),args.num_samples(8),args.grid(5x2) and MediaInfo and is exported as an array for future use

If you have a plan to export this metadata, that would be great.

Wish you a good day

Teng avatar Feb 28 '20 05:02 Teng