Discuss Scratch

dragon0307
Scratcher
79 posts

OGG Opus/Vorbis Support

Edited to request Opus and OGG in general

I apologise for all the computer jargon in advance, I'm a geek and I'm nutted in the head so bear with me.

As a Linux user, I am mostly accustomed to OGG, which is a patent-free (meaning that it isn't restricted by all that copyright malarkey) sound format. It is popular for this reason, since the OGG people won't sue you for using it without giving them megabucks (Unlike with MP3). Because Linux can not support MP3 by default, most distros come with an OGG encoder instead and have the MP3 codecs avaliable via the repository (app store). Additionally, GNUsers Free Software obsessives refuse to even get their grubby mits near MP3 anyway. In fact, I'm, such a weirdo that I installed an OGG codec on Windows and use OGG instead of MP3. OGG is seemingly the industry standard, with everything from Minecraft to Mozilla supporting it. Also, OGG Vorbis is higher quality at 129kbps than MP3 and supports up to 256 audio channels! (Source) Oh, and OGG is also open source (like Scratch) and both Firefox and Chrome support it. (and Edge with the official Microsoft Web Standards Codec)

Last edited by dragon0307 (Nov. 26, 2019 15:44:01)

Flowermanvista
Scratcher
1000+ posts

OGG Opus/Vorbis Support

Instead of using Vorbis, why not use Opus, which sounds even better, was made by the same folks as Vorbis, has replaced Vorbis and Speex for all new applications, and is supported by all major browsers (except for Safari), and is also an open format?
dragon0307
Scratcher
79 posts

OGG Opus/Vorbis Support

Flowermanvista wrote:

Instead of using Vorbis, why not use Opus, which sounds even better, was made by the same folks as Vorbis, has replaced Vorbis and Speex for all new applications, and is supported by all major browsers (except for Safari), and is also an open format?
Aaah! I'll edit the request to ask for Opus instead. Thanks!
CatsUnited
Scratcher
1000+ posts

OGG Opus/Vorbis Support

dragon0307 wrote:

Flowermanvista wrote:

Instead of using Vorbis, why not use Opus, which sounds even better, was made by the same folks as Vorbis, has replaced Vorbis and Speex for all new applications, and is supported by all major browsers (except for Safari), and is also an open format?
Aaah! I'll edit the request to ask for Opus instead. Thanks!
Flowermanvista themselves have already created a topic suggesting the use of opus compression.
45afc4td
Scratcher
100+ posts

OGG Opus/Vorbis Support

Isn't the best option to use the “wav” format? It supports a variety of encoding formats (such as 8-bit, 16-bit, 24-bit, 32-bit, float, double, U-Law, A-Law, ADPCM) and it's possible to select any integer frequency, and mono vs stereo. So a 48000Hz stereo 16-bit audio is 1536kbps, while a 32000Hz mono U-Law audio is 256kbps, and 16000Hz mono ADPCM audio is 64kbps.
LastContinue
Scratcher
500+ posts

OGG Opus/Vorbis Support

45afc4td wrote:

Isn't the best option to use the “wav” format? It supports a variety of encoding formats (such as 8-bit, 16-bit, 24-bit, 32-bit, float, double, U-Law, A-Law, ADPCM) and it's possible to select any integer frequency, and mono vs stereo. So a 48000Hz stereo 16-bit audio is 1536kbps, while a 32000Hz mono U-Law audio is 256kbps, and 16000Hz mono ADPCM audio is 64kbps.
No.

Handling raw PCM samples should be left in the DOS days.
45afc4td
Scratcher
100+ posts

OGG Opus/Vorbis Support

LastContinue wrote:

45afc4td wrote:

Isn't the best option to use the “wav” format? It supports a variety of encoding formats (such as 8-bit, 16-bit, 24-bit, 32-bit, float, double, U-Law, A-Law, ADPCM) and it's possible to select any integer frequency, and mono vs stereo. So a 48000Hz stereo 16-bit audio is 1536kbps, while a 32000Hz mono U-Law audio is 256kbps, and 16000Hz mono ADPCM audio is 64kbps.
No.

Handling raw PCM samples should be left in the DOS days.
?
LastContinue
Scratcher
500+ posts

OGG Opus/Vorbis Support

45afc4td wrote:

LastContinue wrote:

45afc4td wrote:

Isn't the best option to use the “wav” format? It supports a variety of encoding formats (such as 8-bit, 16-bit, 24-bit, 32-bit, float, double, U-Law, A-Law, ADPCM) and it's possible to select any integer frequency, and mono vs stereo. So a 48000Hz stereo 16-bit audio is 1536kbps, while a 32000Hz mono U-Law audio is 256kbps, and 16000Hz mono ADPCM audio is 64kbps.
No.

Handling raw PCM samples should be left in the DOS days.
?
The wav filetype is a raw, uncompressed audio stream. It's too big. I'd much rather Vorbis / Opus.
dragon0307
Scratcher
79 posts

OGG Opus/Vorbis Support

It's nice to know I'm not the only one who wants to be able to use OGG in Scratch

45afc4td wrote:

Isn't the best option to use the “wav” format? It supports a variety of encoding formats (such as 8-bit, 16-bit, 24-bit, 32-bit, float, double, U-Law, A-Law, ADPCM) and it's possible to select any integer frequency, and mono vs stereo. So a 48000Hz stereo 16-bit audio is 1536kbps, while a 32000Hz mono U-Law audio is 256kbps, and 16000Hz mono ADPCM audio is 64kbps.

Scratch already supports WAV, and uses it by default. It converts MP3 to WAV. No wonder music eats all of the data limit

Last edited by dragon0307 (Nov. 27, 2019 13:33:03)

Flowermanvista
Scratcher
1000+ posts

OGG Opus/Vorbis Support

dragon0307 wrote:

Scratch already supports WAV, and uses it by default. It converts MP3 to WAV. No wonder music eats all of the data limit
MP3 is only converted to WAV if the file is edited with the Scratch audio editor. If you never touch the file, it will not be turned into a WAV.
45afc4td
Scratcher
100+ posts

OGG Opus/Vorbis Support

Flowermanvista wrote:

dragon0307 wrote:

Scratch already supports WAV, and uses it by default. It converts MP3 to WAV. No wonder music eats all of the data limit
MP3 is only converted to WAV if the file is edited with the Scratch audio editor. If you never touch the file, it will not be turned into a WAV.
That's in Scratch 3.0. Same with WAV files themselves, they will be lossless if unedited, but when an edit is made it will delete the right channel and use lossy ADPCM compression, and multiple Scratch 3.0 edits cause generation loss.
sprinkler-guy
Scratcher
19 posts

OGG Opus/Vorbis Support

For me it's kinda turning into a problem because I use OGG and OPUS a lot and then i realize I can't put the format into scratch so i have to find a converter and that converter dose not want to convert the file because it's too large (only opus) so i have to download a converter that way and the converter takes up too much space so i delete it and it goes on from there




It's really annoying
ScolderCreations
Scratcher
1000+ posts

OGG Opus/Vorbis Support

bump
StatinC
Scratcher
45 posts

OGG Opus/Vorbis Support

support, it would save tons of spaces and it would be pretty useful if you want great sound on scratch
StatinC
Scratcher
45 posts

OGG Opus/Vorbis Support

dontdotaxevasion wrote:

StatinC wrote:

support, it would save tons of spaces and it would be pretty useful if you want great sound on scratch
It wouldn't really be better quality. Opus is supposed to be a lossy audio codec for faster sound transmission…

Or are they suggesting to use Vorbis, because there was a duplicate for Opus codec?

Support, Scratch should've thought of implementing this long before.
opus isn't actually lossless if you use 16kbps audio (but still sounds pretty great), however if you compare a 160kbps opus to 320kbps mp3 and wav, all of them are basically lossless.
and vorbis as far as i'm aware it's almost identical to opus
StatinC
Scratcher
45 posts

OGG Opus/Vorbis Support

bump
wer65hertg
Scratcher
1000+ posts

OGG Opus/Vorbis Support

Glad this was recently bumped, however, not all browsers support OGG, specifically Safari.
TheSecondGilbert
Scratcher
100+ posts

OGG Opus/Vorbis Support

I support this. Both Vorbis and Opus are really efficient compared to MP3. This would absolutely help projects which contains a lot of very long music as a BGM, allowing them to sound clear with little to no artifacts whilst still being long.
(in fact, some games do use them as their audio codec)
StatinC
Scratcher
45 posts

OGG Opus/Vorbis Support

wer65hertg wrote:

not all browsers support OGG, specifically Safari.
while this is a downside, we need to remember that apple is known for those weird choices about things (example: first iphone only was able to have at&t, steve jobs hating videogames and not making macintosh optimized for them, etc.)
StatinC
Scratcher
45 posts

OGG Opus/Vorbis Support

bump

Powered by DjangoBB