Vorbis icon indicating copy to clipboard operation
Vorbis copied to clipboard

Infinite loop while converting an ogg

Open Faark opened this issue 3 years ago • 0 comments

Hi, was converting a bunch of oggs to mp3 and my tool keep freezing one a specific one. Example project with the audio file included. There seems to be an infinite loop on the reader side, so i hope this is the right place to report it.

Code used to convert:

            using (var outputData = new System.IO.MemoryStream())
            using (var mp3FileData = System.IO.File.OpenRead("yt1s.com-Bruh-Sound-Effect-2.egg.ogg"))
            using (var vorbisStream = new NAudio.Vorbis.VorbisWaveReader(mp3FileData))
            using (var wtr = new NAudio.Lame.LameMP3FileWriter(outputData, vorbisStream.WaveFormat,
                       new NAudio.Lame.LameConfig()
                       {
                           Preset = NAudio.Lame.LAMEPreset.ABR_96
                       }))
            {
                vorbisStream.CopyTo(wtr);
            }

using NAudio.Vorbis 1.5.0 and NAudio.Lame 2.0.1 tested on netcore 3.1 and net 6 NAudioVobisFreez.zip

Faark avatar Feb 03 '22 13:02 Faark