It is currently Mon Dec 11, 2017 4:09 pm

All times are UTC - 7 hours



Forum rules


Related:



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 2-bit BRR
PostPosted: Sat Nov 12, 2016 4:09 pm 
Online

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19330
Location: NE Indiana, USA (NTSC)
I've begun to develop a 2.25-bit-per-sample audio format that can be quickly decoded to the S-DSP's BRR format. It compresses 32 samples to a 9-byte block, half the size of ordinary BRR. I've provided samples of what it sounds like at 8 kHz (18 kbps) and 16 kHz (36 kbps). Is the result too scratchy?

I've attached the Python program I'm using for the experiment, as well as some samples of its input and output.


Attachments:
twobitbrr.zip [236.59 KiB]
Downloaded 72 times
Top
 Profile  
 
 Post subject: Re: 2-bit BRR
PostPosted: Sat Nov 12, 2016 6:20 pm 
Offline

Joined: Fri Jul 04, 2014 9:31 pm
Posts: 818
I suspect it's too scratchy for music, but it could be useful for compressing vocal samples in a flight sim or something. There's a very definite 'bad radio' sound to it.

Then again, it might depend on the instrument. If there's not much information, and it's reasonably compatible with the assumptions the codec makes, it might compress more gracefully.


Top
 Profile  
 
 Post subject: Re: 2-bit BRR
PostPosted: Sat Nov 12, 2016 7:18 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5887
Location: Canada
It might benefit from some kind of high frequency bandlimiting before encoding (maybe a compressor applied to just the high frequency range?). You get a lot of distortion on sibilants which to my ear over-emphasizes them strongly.


Top
 Profile  
 
 Post subject: Re: 2-bit BRR
PostPosted: Sat Nov 12, 2016 7:25 pm 
Online

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19330
Location: NE Indiana, USA (NTSC)
That gives me a different idea: adapt the sibilant compensation that I had used in the QuaDPCM codec, where I encode only the 0-4000 Hz band in some frames and only the 4000-8000 Hz band in others. I'll have to find time to try that, though I fear it might not be as effective as it is on the NES because of the low-pass characteristic of Gaussian interpolation.


Top
 Profile  
 
 Post subject: Re: 2-bit BRR
PostPosted: Sat Nov 12, 2016 7:48 pm 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3152
Location: Nacogdoches, Texas
I found a way to make it sound better after messing with it in Audacity. The result is in the zip folder.

Attachment:
Improved.zip [114.97 KiB]
Downloaded 56 times


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: drludos, Yahoo [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group