Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export metadata #73

Open
Teng opened this issue Feb 22, 2020 · 2 comments
Open

Export metadata #73

Teng opened this issue Feb 22, 2020 · 2 comments

Comments

@Teng
Copy link

Teng commented Feb 22, 2020

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

@amietn
Copy link
Owner

amietn commented Feb 26, 2020

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?

@Teng
Copy link
Author

Teng commented Feb 28, 2020

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

return media_info.desired_size(width=desired_width)

vcsi/vcsi/vcsi.py

Line 1707 in c904a99

args.num_samples = mframes_size

vcsi/vcsi/vcsi.py

Line 1724 in c904a99

args.grid = Grid(args.grid.x, y)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants