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

SW resampler plugin produces overlapping PTS values #946

Open
dmorn opened this issue Feb 26, 2025 · 1 comment · May be fixed by membraneframework/membrane_ffmpeg_swresample_plugin#60
Open

Comments

@dmorn
Copy link

dmorn commented Feb 26, 2025

The swresample plugin is producing invalid PTS streams in our tests, here is a debugging snapshot:

[from: 0, expected_to: 1023333333]
[from: 0, expected_to: 1024000000]
[from: 1024000000, expected_to: 1246000000]
[from: 2048000000, expected_to: 2735500000]
[from: 2270000000, expected_to: 2300000000]
[from: 2957500000, expected_to: 3981500000]

Read from as pts, expected_to is the duration of the payload added to pts. When everything is fine, expected_to should precede the next pts, but as you can see it does not. If you attach the AAC.FDK.Encoder after this, you'll end up with cracking audio at some point and it will keep on complaining about overlapping PTS values.

@mat-hek
Copy link
Member

mat-hek commented Mar 3, 2025

Hi @dmorn, any way to reproduce?

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 a pull request may close this issue.

2 participants