Skip to content

added cmd line option to split video on keyframes for seamless rejoin#974

Open
hennyg888 wants to merge 1 commit intoxinntao:masterfrom
hennyg888:hg/keyframe-split
Open

added cmd line option to split video on keyframes for seamless rejoin#974
hennyg888 wants to merge 1 commit intoxinntao:masterfrom
hennyg888:hg/keyframe-split

Conversation

@hennyg888
Copy link

Added an option to the video inference script to split the video only on keyframes.
Currently it doesn't split on keyframes which can cause extra, missing frames and audio desync, choppy audio, or noise pops on video segment borders. Basically the split isn't on the precise timestamped keyframes so it may have overlaps, missing frames, and the audio doesn't sync up.
e.g.
#404
#388

Using -f segment -segment_times will split only along keyframes but will not be perfectly equal N=num_process pieces. Some pieces may be longer or shorter depending on keyframe distribution.
Triggered by command-line option --keyframe_split.
Resulting part videos start and end on keyframes to ensure seamless rejoining after upscaling. Local testing shows no more audio desync and no frame loss / duplication.

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

Successfully merging this pull request may close these issues.

1 participant