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

How to Generate RGB files from Raw UCF dataset #4

Open
ldkong1205 opened this issue May 16, 2022 · 1 comment
Open

How to Generate RGB files from Raw UCF dataset #4

ldkong1205 opened this issue May 16, 2022 · 1 comment

Comments

@ldkong1205
Copy link

Thank you for your work.

I am running experiments on UCF -> HMDB. The dataloader in your code, however, seems need frame-level rgb images as the input instead of the original .avi video downloaded from the UCF dataset. How do I extract these rgb images from the videos downloaded directly? Could you share the code? Thank you!

@Afekst
Copy link

Afekst commented Nov 23, 2022

I'm not the author, but If it's still relevant I have used ffmpeg.
you need to do some preprocessing and create folders with the names of the avi files, and the while the wd is 'ucf_videos' for example, run
find ./ -mindepth 2 -name '*.avi' -execdir ffmpeg -i {} -r 1 "$filename%03d.png"
or something like that... if that doesn't work let me know

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