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

Framerate to extract images from video? #13

Open
wanshun123 opened this issue Mar 29, 2019 · 1 comment
Open

Framerate to extract images from video? #13

wanshun123 opened this issue Mar 29, 2019 · 1 comment

Comments

@wanshun123
Copy link

In the readme the command for converting videos to images is as follows:

ffmpeg -i 00001.mp4 -r 1/5 -vf scale=-1:720 images/00001-$filename%05d.bmp

This will only extract an image every 5 seconds (per -r 1/5) - is this how it should be done and if so, why? Is this arbitrary? I see in processing.py it indicates only 1467 images from 20 videos were used to generate the image_kp_raw files which indicates this is how it was done.

@karanvivekbhargava
Copy link
Owner

@wanshun123 That 1467 is the number of clips. The -r is not used in the processing.py at all. So I maintain the default framerates.

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

No branches or pull requests

2 participants