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

Questions about the cut_videos_hdvg.py #2

Open
zeyuanchen23 opened this issue Feb 17, 2024 · 3 comments
Open

Questions about the cut_videos_hdvg.py #2

zeyuanchen23 opened this issue Feb 17, 2024 · 3 comments

Comments

@zeyuanchen23
Copy link

Thanks for providing this valuable dataset. I have tried your cut_videos_hdvg.py, but got a few issues.

  1. The script runs very slowly. It took me around 1min to process one video
  2. The size of the processed clips are very large. For instance, for a video "-6Yn5t87K08" whose original size is 19M, its clips have 79M in total.

I am not sure if I have setup everything correctly. Any advise will be high appreciated!

@zizixixi
Copy link

Thanks for interest in our work. We have checked the problems in your feedback, and found that also existed in our experiments. They are mainly caused by ffmpeg during video processing according to our analysis.

  1. The original videos in HD-VG have relatively large resolution(1080p). It would be time consuming when processing large videos. Meanwhile, it also needs time for file retrieval in mega scale. Modification like multi-processing/threading may speed up.
  2. We also observed the increased memory. For example, "----meyKR48" with 49.29MiB turns to 194 clips of 201.75MiB in total. On the one hand, it may caused by the different coding schemes (ffmpeg would change the coding schemes before & after processing. Use "ffmpeg -i xxx.mp4" to check). Setting coding scheme instead of using default setting may help. On the other hand, the time stamps to split videos may not be the key frames when using ffmpeg to split videos, thus there may exist duplicated frames between adjacent video clips because of rounding.

@daooshee
Copy link
Owner

Thanks zixi @zizixixi for helping to answer this question.

@zeyuanchen23
Copy link
Author

Thanks for the clarification!
Are you planning to update your video clipping script to fix these issues?

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