4 ms·
> The last seconds of the recording have been transcoded nearly 200 times. All together, the recording represents nearly 20,000 individual mp3 encodes. Ew, O(n
by keenerd 11y ago
> The last seconds of the recording have been transcoded nearly 200 times. All together, the recording represents nearly 20,000 individual mp3 encodes.
Ew, O(n^2). They actually do chop it up into seconds and then run each second through the encoder multiple times and then stitch it back together. This also creates the stutters every one second.
If I have a moment today I'll put together a more reasonable bash script that repeatedly copies and re-encodes the input. 200 single passes and no stuttering when it is stitched together. (Though unless I chop the first second off of each pass, it won't be any faster.)
- asymptotally 11y agoEw, premature optimization
- keenerd 11y agoNot at all. Pull request created. Sounds a bit better too.
- thisisparker 11y agoThank you! Merged it in. It really does sound much better.