Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut at the nearest audio (key-) frame instead of the next one #1433

Closed
4 tasks done
DreckSoft opened this issue Jan 24, 2023 · 2 comments
Closed
4 tasks done

Cut at the nearest audio (key-) frame instead of the next one #1433

DreckSoft opened this issue Jan 24, 2023 · 2 comments

Comments

@DreckSoft
Copy link

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

I'm using LosslessCut to cut AC3/EAC3 files to sync audio. Those are using 32ms frames at 48k sampling rate. If I cut 0.000-2.568 the closest cut would be 2.560 seconds, so an 8ms difference. LosslessCut however produces a file with 2.592s, leaving a 24ms difference. This adds up over various cuts. So the cuts should be made on the closest keyframe. This will usually result in a +- 0ms result over various cuts.

As an alternate option to solve this a setting "snap to xx ms" would be helpful. So one can only enter a multiple of xx ms as cut points.

@mifi mifi changed the title Cut at the nearest (key-) frame instead of the next one Cut at the nearest audio (key-) frame instead of the next one Jan 27, 2023
@mifi
Copy link
Owner

mifi commented Jan 27, 2023

Is this keyframe cut or normal cut mode? Not sure how to control this, and not sure how exactly ffmpeg deals with keyframes when seeking in audio. See #1216

@DreckSoft
Copy link
Author

In Keyframe cut mode. According to the description it should be the nearest key frame but it is always the next.

@mifi mifi closed this as completed in 3daf257 Aug 7, 2024
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

No branches or pull requests

2 participants