SteveLillis / .NET-Ogg-Vorbis-Encoder

Ogg Vorbis audio encoding library written in C#
MIT License
69 stars 16 forks source link

How can i convert 8k Stereo PCM to OGG with your Library #7

Closed florianraffl closed 5 years ago

florianraffl commented 5 years ago

Hi,

I'm just trying to convert a 8k Stereo PCM audio stream to OGG with Your Example Code and failed with that. I tried it with a 192k Stereo MP3 File and it worked fine. Now is the question what do I have to change to make it work with my PCM Stream.

My Code is similar to Your code at: https://github.com/SteveLillis/.NET-Ogg-Vorbis-Encoder/blob/master/OggVorbisEncoder.Example/Encoder.cs

I have also attached my WAV file which i used to convert. (I just had to put it in a ZIP Archive because Githup doesn't support to upload a WAV file) WAV File.zip

I would be very grateful if You could help me!

Thanks a lot, Florian Raffl

SteveLillis commented 5 years ago

Hi Florian,

You'll have to implement the encodings yourself, as I only migrated 44k Stereo. It was a painful task from what I remember. You should find that the naming conventions from the source library map pretty well to this one.