Skip to content

After some video cuts, the audio will be advanced #715

@danielly2020

Description

@danielly2020

I've found that after some videos are cut, the audio behind the cut part will be advanced and the time code is inaccurate. This happens with some H265 videos, but the H264 video is accurate.

For example, for an 4KH265 video with 25FPS and 15000 frames, I use --trim 0:10000,13000:0 to cut a part, then the audio at 13000:0 is advanced and cannot be perfectly synchronized with the subtitles. The longer the part that is cut, the more obvious the effect will be.

Similarly, I use --trim 2000:10000,13000:0 to cut 2 parts. If there is no sound at the end of 2000:10000 and there is sound at 10001:11000, the result of the trimming is that there will be a little sound at the end of 2000:10000, which is the sound at the beginning of 10001:11000. In order to make the end of 2000:10000 silent, I have to use 2000:9990 like this.

This is what I found on a small number of H265 videos, and most of them are still relatively accurate after cutting. So, is there a way to avoid this, or is it a problem with H265 video itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions