protyposis / AudioAlign

Audio Synchronization and Analysis Tool
GNU Affero General Public License v3.0
149 stars 16 forks source link

Failed dynamic resampling #4

Closed viric closed 6 years ago

viric commented 7 years ago

Hello,

I have two recording devices for the same scene (a conference), with slightly different different clock. I wanted to try the dynamic resampling with all matches, and it crashed (TimeWarpCollection.cs:94 (ValidateMappings()). Invalid sample ratio: NaN.

To make it work, I updated the ffmpeg proxy a bit to use ffmpeg 3.1. I cannot find 2.8 binaries anywhere and some API functions have been deprecated.

protyposis commented 7 years ago

That's probably because you're using all matches, and if they overlap in some way this leads to such errors. It is a known issue.

To solve it, filter the matches before aligning the tracks. In "Match & Align" > "Alignment", select

Would you be willing to open a PR for the FFmpeg upgrade?

protyposis commented 6 years ago

The newest version validates the matches before executing the alignment and would detect this problem in advance.