Open-Sora
Open-Sora copied to clipboard
视频分割偏移问题
发现用“python -m tools.scene_cut.cut ${ROOT_META}/xxx.csv --save_dir ${ROOT_CLIPS}”,进行视频分割的时候,分割出来的片段存在偏移。而直接使用scenedetect的split_video_ffmpeg方法,则没有问题。 上述问题会导致镜头不完整,或者跨镜头,不知道这个对训练会不会有什么影响。
Thanks for raising your concern. Can @zhengzangw please take a look to see if any action is needed? Thanks!
Can @xyupeng please take a look of this?
Hi @boanz ,
Thank you for pointing out the problem. Yes, the previous code really causes inaccuracy up to 0.5 sec, which is due to fps=1. I have updated the code to set fps=100, which means it will round to two decimal places (i.e., 0.01 sec) and will be much more accurate.
has it changed from the original scenedetect?
This issue is stale because it has been open for 7 days with no activity.
The lastest scene_cut has fixed this problem.