ITADN

Speed up the video splitting when prepare the training data

#215Opengulucaptain 创建于 2025-03-14
G
gulucaptaincommented
### The original speed of video splitting in /easyanimate/video_caption/video_splitting.py is very slow, due to the 'ffmpeg' operation. **Improvement:** change the FFmpeg code in Line 17-32 in </easyanimate/video_caption/video_splitting.py> to: return [ 'ffmpeg', '-ss', str(start_time.time()), '-i', video_path, '-t', str(video_duration), '-c:v', 'copy', '-c:a', 'copy', output_path ] This will speed up the splitting process.
2 条评论