maikmerten / hmp3 Goto Github PK
View Code? Open in Web Editor NEWHelix MP3 Encoder, with some additions
Helix MP3 Encoder, with some additions
Dear @maikmerten, recently I have come across a few limitations of Helix MP3 encoder. Both are related to the same error: “UNSUPPORTED PCM FILE TYPE”. Perhaps you could do something about that, since LAME has no such issue.
I have need for helix in an stm32 project and was hoping pull requests might be accepted here if I make any improvements. If so I’m very glad to see someone keeping this code alive as I’ve had good use of this decoder ported to riscv etc for esp32 usage.
Currently no Xing tag is written for CBR files. That's because tomp3.cpp submits no proper nBitrateIndex
:
head_bytes = XingHeader ( ec.samprate, head.mode,
ec.cr_bit, ec.original, head_flags, 0, 0,
vbr_scale, NULL, bs_buffer + bs_bufbytes,
0,0,0 );
With no proper information on the bitrate, this check fails in xhead.c:
// use the index already determined from head info - you only have one shot
frame_bytes = 144000 * br_table[h_id][nBitRateIndex] / tmp;
if ( frame_bytes < bytes_required )
return 0; //fail, won't fit
(according to br_table
there are 0 bytes available)
The LAME info tag includes two CRCs: One for the info tag itself, and one for MP3 audio frames.
http://gabriel.mp3-tech.org/mp3infotag.html#musiccrc
http://gabriel.mp3-tech.org/mp3infotag.html#tagcrc
Currently those are filled with zeros.
Dear @maikmerten,
Helix serves me well, but I'd like to know more about some of its options.
At present their descriptions leave much to be desired.
A[algor_select] 0 = track input, 1=MPEG-1, 2=MPEG-2, xxxxx=sample_rate
Q disable_taper, q0 = base, q1 = fast, q-1 = encoder chooses
TX tx6, test reserved 6 or 8 seems best (startup_adjustNT1B)
** v5.0 TEST 1 as of 8/15/00
** v5.0 TEST 2 8/18/00
** v5.0 TEST 3 default tx6 (prev = tx8)
** v5.0 TEST 4 mods to short fnc_sf, ms corr. hf enable > 80
** v5.0 TEST 5 fix odd npart, ix clear
** v5.0 TEST 6 add reformatted frames
** v5.0 TEST 7 drop V4 amod
** v5.1 2005.08.09 (see CVS log for details)
SBT[short_block_threshold]
short_block_threshold default = 700
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.