Reply To: Revive or not, I can’t find bitrate solution

#18866
Anonymous
Inactive

I’m uncertain how to check the bitrate in the id tag. The bitrate in iTunes “directly” managing the songs (the instance I actually loaded them with) shows 256k. The bitrate in another iTunes on another machine just accessing the songs, reports the incorrect bitrate as reported by firefly.

The default is scan type 0; I tried 1 & 2 with no solution before posting here. Sorry I didn’t include that detail.

I eventually gave up and made a hack in the code, namely in mp3-scanner.c:

        if (atom_offset != -1) {
fseek(infile, atom_offset + 22, SEEK_CUR);

fread((void *)&bit_rate, sizeof(unsigned int), 1, infile);

pmp3->bitrate = ntohl(bit_rate) / 1000;
/* edit starts here */
/* AAC can never exceed 320, wrong value whacks roku */
if (pmp3->bitrate > 320) {

DPRINTF(E_DBG,L_SCAN,"Clamping bitrate from %d to 320n", pmp3->bitrate);
pmp3->bitrate = 320;
}
/* edit ends here */
} else {

This is horribly ugly IMO, but has the practical effect of “working” 😀