Skip to content

Speed up the video splitting when prepare the training data #215

@gulucaptain

Description

@gulucaptain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions