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

the number of frames chosen #15

Open
Liu-arch opened this issue Dec 2, 2022 · 13 comments
Open

the number of frames chosen #15

Liu-arch opened this issue Dec 2, 2022 · 13 comments

Comments

@Liu-arch
Copy link

Liu-arch commented Dec 2, 2022

Hello, I would like to ask how many frame rates are set to capture a picture for the 4 different datasets of video data when building the dataset. Thank you very much!

@tobyperrett
Copy link
Owner

tobyperrett commented Dec 4, 2022 via email

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

Thank you for your answer! But I think you missed my point. What I mean is, when extracting an image from a video sequence, how many frames apart does it save an image? For example, one image per 20 frames or one image per 30 frames for every dataset (HMDB51/Kinetics/UCF101/SSv2)?

@tobyperrett
Copy link
Owner

tobyperrett commented Dec 4, 2022 via email

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

Reading through your code, I see that in video_reader it reads jpg format, so if you are not first using 30fps extraction and then select 8 frames from that. then how are you extracting the images from each video? Simply extract the first 8 frames of each video and put them in a folder as jpg?

@tobyperrett
Copy link
Owner

tobyperrett commented Dec 4, 2022 via email

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

Sorry, I don't see where the hlink dataset script is . Can you point me in the right direction? Thank you very much!!!

@tobyperrett
Copy link
Owner

tobyperrett commented Dec 4, 2022 via email

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

Thank you very much. I will look into your new git project.

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

I just looked at your hlink dataset script and it still manipulates jpg images. But the downloaded dataset is video data and my question now is how you extracted the jpg images from the raw video data. Instead of already getting jpg images how do you select 8 frames. Thank you very much.

@tobyperrett
Copy link
Owner

tobyperrett commented Dec 4, 2022 via email

@Liu-arch
Copy link
Author

Liu-arch commented Dec 4, 2022

my bad! Thank you

@Liu-arch
Copy link
Author

In few-shot repo, extract_hmdb.py get the empty folder without jpg in the folder. I think there is something wrong with this code, but I don't know how to change it.
try:
cmd = ['ffmpeg', '-i', source_vid, '-vf', scale_string, '-q:v', '5', out_wc]

cmds.append((cmd, extract_dir))
subprocess.call(cmd)

@bulijiojiodblido
Copy link

Hello, Have you solved this problem yet?

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

3 participants