When trying to encode files I end up with rather poor quality (sound spikes, noises).
I have tried downloading a video from YouTube using yt-dlp passing it information to extract audio and output it into OPUS format hoping this will result in as less quality drop as possible. Once I got myself the OPUS files I then use the audio encoder to encode it but the resulting TAF has said problems.
From what I have read teddycloud used a CBR of 96kbit/s. Did I get it right the box is capable of only VBR 96-116 kbit/s? Is this a limitation of only the CC3200 and CC3235 because I doubt the ESP32 is outpowered by that.
Additionally: are real Tonies using a VBR?
In the latest develop version there is a debug option where you get a command to download the pcm file which is created in your browser and is the base for the actual encoding.
and then open Dev Mode and console (in Chrome: Hit f12) and add a file to the encoder and click upload. The console should then contain something like that:
Locally in the browser the files are converted to PCM increasing it’s size manyfolds and is then transferred to the server? And I was wondering what it has been taking so long.
I will setup another instance of the cloud to check for the quality and the pcm.
Thank you.
First of all: you were right. Indeed the pcm already contains the cracking noises and sound spikes so the error exists within the web interface’s decoder? Does it recognize WAV for instance so as to prevent creating raws with flaws?
I have checked the development branch and have checked several commits where this bug is not addressed in so I assume this bug has been fixed a few days ago? In this case the docker image I have should contain the fix already.
Ok, here I am lost a bit. First of all: how would I update teddycloud_web while using teddycloud’s docker?
Additionally: is this fix on client side so as to fix pcm’s poor quality?
Ok, so I have checked it and yes you are right. From what I believe I can see is that you have applied the sinus wave was ignored before thus adding up sound amplifications to a base wave resulting in values added onto the existing sinus wave sound and creating cracking noises? Holy hell.
The raw sound looks much more friendly in Audacity now. Previously it was hitting max almost instantly when sound kicked in.
Awesome work. Thank you.
Ok, need to add one more thing though sadly.
While trying to create a file from 99 songs (bitrate 96) the problem reoccured. I have then tested it using only 3 songs and it occured again. After refreshing the page and setting to 128 bits the problem vanished.
Setting back to 96 it was gone still and while uploading 99 at 96 again the problem is gone still. Driving me nuts.