refactor: video tookit
Description
enhance video toolkit
Checklist
Go over all the following points, and put an x in all the boxes that apply.
- [x] I have read the CONTRIBUTION guide (required)
- [ ] I have linked this PR to an issue using the Development section on the right sidebar or by adding
Fixes #issue-numberin the PR description (required) - [ ] I have checked if any dependencies need to be added or updated in
pyproject.tomlanduv lock - [ ] I have updated the tests accordingly (required for a bug fix or a new feature)
- [ ] I have updated the documentation if needed:
- [ ] I have added examples if this is a new feature
If you are unsure about any of these, don't hesitate to ask. We are here to help!
@lqjack Thanks,At present, only the audio has been segmented, right? Maybe the video needs to be segmented as well
maybe we can use context manager to manage resources,like files clean
Do you mean if you need to download the video, delete it after analyzing it?
maybe we can use context manager to manage resources,like files clean
Do you mean if you need to download the video, delete it after analyzing it?
yeah,exactly
maybe we can use context manager to manage resources,like files clean
Do you mean if you need to download the video, delete it after analyzing it?
yeah,exactly
but in practice, this is not easy to implement because the "analysis completed" state is difficult to define, and analysis may be performed multiple times during usage.
maybe we can use context manager to manage resources,like files clean
Do you mean if you need to download the video, delete it after analyzing it?
yeah,exactly
but in practice, this is not easy to implement because the "analysis completed" state is difficult to define, and analysis may be performed multiple times during usage.
oh,i see.thanks
@lqjack thanks!