| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > Testing / Bug Reports > Audio Resample Adds Artifacts |
| Posted by: MrSmite Jan 7 2012, 05:17 AM |
| After processing a video where I resampled the audio, I noticed a little "click" at the beginnng that is not there in the original source. These are the edits I performed: 1. Open a 3 second video which is nothing but black frames and silence with an audio track of 44100 Khz. 2. Append a video with the same specs. 3. Trim a few frames from where the two videos meet up to where the video fades in 4. Add a few video filters 5. Turn on advanced Audio Filtering 6. Add Input -> Resample -> Output 7. Set Resample to 48000 Khz with 128 taps 8. Process the video and the result is a video with artifacts in the sound track of the first three seconds which were not there before the edit Before: http://imageshack.us/photo/my-images/217/beforeresample.jpg/ After: http://imageshack.us/photo/my-images/267/afterresample.jpg/[B] Edit: Both before and after are uncompressed PCM and the source is a FRAPS video capture. I added a brightness filter for the screenshots only. |
| Posted by: MrSmite Jan 7 2012, 05:38 AM |
| Followup: I rendered the same video without cutting frames and it produced no artifacts. Also, scrubbing through the edited version, the "click" is added exactly where the cut was. The only way I could avoid the artifact was to render the video with Direct Stream Copy on the audio while making my video edits, then render it again with advanced filtering on the audio and Direct Stream Copy on the video. |
| Posted by: phaeron Jan 9 2012, 12:13 AM |
| I tried to reproduce this locally without success. Does this still happen if you export only the audio track (save wav), and are any of the video filters needed for it to happen? |
| Posted by: MrSmite Jan 9 2012, 05:43 AM | ||
Not sure, I'll try exporting the WAV and also with/without filters and post back in a couple days. I'd give you the sources but the game recording is over 1GB because FRAPS is seimi-lossless. |
| Posted by: MrSmite Jan 14 2012, 05:30 AM |
| Ok, so it appears to be a problem with the "Advanced Filtering" in the Audio. Here are the two tests I did: First Test
After exporting the WAV only, there was the "click" artifact as mentioned in the OP Second Test
After exporting the WAV only, the "click" artifact was not present Note 1: Both resulting WAV files were played in Winamp and MPC HomeCinema and the waveforms viewed in Cool Edit 2000 and Sony Vegas 7 to rule out the player as producing the artifact. Note 2: The artifact is placed exactly at the first join/cut. If you recall, the first video is 3 seconds with another appended to it. I cut frames from 2:59 to 3:01 (overlaping the join) and the artifact appears at 2.995 seconds in the new WAV, according to Cool Edit 2000. Let me know if you need more info. |
| Posted by: phaeron Jan 17 2012, 12:36 AM |
| I think I might know where this is coming from now. Can you check the artifact in Cool Edit and see exactly what it is? If it's a single sample glitch, it's likely because of a lack of crossfading in the audio filter graph, so there is a discontinuity in the waveform. The old conversion filter runs across cuts and uses a lower quality filter that is more likely to reduce such artifacts (triangle filter). |
| Posted by: MrSmite Jan 18 2012, 05:09 AM | ||
It does in fact seem to be that. In fact it's hardly noticeable on the waveform display without zooming it in (unless my ears are better than my eyes). |