Page 1 of 1

Webm video file conversion to wav creating audio distortion

Posted: 14 Mar 2021 05:07
by Rods
Webm video files have better audio quality (20kHz) than mp4(15kHz)
So I have been downloading various webm video files and transcoding the audio with VLC Convert/Save feature using the Audio CD setting 44.1khz 2 channel wave encoder.
However I now am noticing that with certain media content (maybe all) I can hear a ringing distortion in the audio!
Note I had been previously converting MP4 to wav with the same process and could not hear this distortion!
Note MP4 audio sample rate is 44.1k and webm uses 48k so was thinking VLC sample rate conversion is causing the problem??
I have tried all setting in the "Audio resampler" preferences makes no difference

https://youtu.be/4nRtK2hyd-s
using the above link I can with other software download a mp4 and a webm file version of the media.
With VLC using the mp4 file the resulting wave audio does not have the ringing distortion
with VLC using the webm file the resulting wave does have the ringing distortion.
If you play either source file with VLC no distortion!
Its particularly noticeable at 1:40 but i can actually hear it from the beginning of the track.
I'm now noticing it with other content if I really concentrate and perform source and result file comparison.

I have actually found another free converter that does not have this issue but I rather use VLC its workflow is nicer and it is quicker.

Re: Webm video file conversion to wav creating audio distortion

Posted: 14 Mar 2021 08:54
by Lotesdelere
Try with completly disabling both audio resampling and time-stretching audio features.

Re: Webm video file conversion to wav creating audio distortion

Posted: 14 Mar 2021 10:17
by Rods
Thanks Lotesdelere
disabling both audio resampling and time-stretching audio features results in a 0 size wav file
disabling time-stretching audio feature results the same distortion as before
disabling resampling audio feature results in a 0 size wav file
I am using 32bit version 3.0.12 VLC

Re: Webm video file conversion to wav creating audio distortion

Posted: 15 Mar 2021 14:57
by Lotesdelere
Please open Tools -> Messages (set Verbosity to 2) before you start the conversion, and then paste the full resulting log here or on Pastebin.com if it's too long.

Also upload a short sample of your original source file to Zippyshare.com or to WeTransfer.com and then post the link to the file here.
https://www.zippyshare.com
https://wetransfer.com

If needed cut it with DGsplit and read here about how to do it:
https://forum.videolan.org/viewtopic.ph ... 35#p193335
100 MB max should be enough.

Re: Webm video file conversion to wav creating audio distortion

Posted: 16 Mar 2021 02:02
by Rods
Thanks Lotesdelere I have sorted it!
Ok the best setting for VLC resampler is Speex with setting of 10 it takes a long time but worth it.
I gave up on listening tests and found a nice 48K frequency sweep 10 sec test signal here
https://www.audiocheck.net/audiofrequen ... _sweep.php
then I found a nice Spectrum Anaylser app named Spek!
http://spek.cc/
Refer following results and images
https://youtu.be/vfhAk1qJpY0
You pointed me in the right direction thanks again!