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

Nan Errors for Small Files #6

Open
chsanford opened this issue May 7, 2018 · 1 comment
Open

Nan Errors for Small Files #6

chsanford opened this issue May 7, 2018 · 1 comment

Comments

@chsanford
Copy link

Hello,

I am using Ubuntu 17.10 with gstreamer 1.0. I've been using GST-PEAQ to estimate the divergence between audio files, and I occasionally obtain the following as output for the divergence between a pair of files when using the basic version of GST-PEAQ.

Objective Difference Grade: -nan
Distortion Index: nan

I cannot tell exactly what causes the error. It seems like it primarily happens when the audio clips are particularly short or when the file is almost silent. Do you have any insight into why this happens? I am happy to send you files that cause this behavior, if you would like.

Thanks.

@martinholters
Copy link
Member

The PEAQ algorithm needs a certain amount of data for its averaging to make sense. Otherwise, some internal values will be calculated as 0/0, giving rise to NaN values which then propagate. Also, as there is no correct value to use in this case, the score simply cannot be calculated. Unfortunately, as the algorithm has some thresholds on where to start (and stop) considering the data in the input file, one cannot give a fixed minimum length of the input.

That being said, a more informative output would surely be in order here.

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