However, unfortunately it can't display wma bitrates correctly. For example, the about 75 kbps Satie.wma file shows up as 176 kbps.
I'm using the "Bitrate" attribute to get the bitrate and I have no idea what WMP10 uses to get the information.
Best regards,
~ Florian
[a href=\"index.php?act=findpost&pid=345405\"][{POST_SNAPBACK}][/a]
OK, no problem. I guess we can rely on the file size and duration in seconds, right?
Bitrate = Filesize in bytes * 0.008 / Duration in seconds
Example: Thin Lizzy - Whiskey In The Jar, 342 seconds, 6.840.511, 160 kbps CBR:
6840511 * 0.008 = 54724.088
54724.088 / 342 = 160,012 kbps
Edit: I think you can use the following export that generates a decent HTML file:
$puts(counter, 0)
<html>
<head>
<title>Bitrate Table</title>
<style type="text/css">
body { background-color: #fff; color: #000; }
th { border-bottom: 1px solid black; text-align: left; }
.even { background-color: #ddd; }
</style>
</head>
<body>
<table width="100%%">
<tr>
<th>Artist</th>
<th>Title</th>
<th>Album</th>
<th>File Size</th>
<th>Duration</th>
<th>Bitrate</th>
</tr>
$loop(%_folderpath_rel%)
$puts(counter, $add($get(counter), 1))
<tr$if($odd($get(counter)),, class="even")>
<td>%artist%</td>
<td>%title%</td>
<td>%album%</td>
<td>$fmtNum(%_file_size_bytes%)</td>
<td>$fmtNum(%_length_seconds%)</td>
<td>$mul($div($div(%_file_size_bytes%, %_length_seconds%), 1000), 8)</td>
</tr>
$loopend()
</table>
<hr>
<p>
Total Size: $fmtNum(%_total_size_raw%)<br>
Total Duration: $fmtNum(%_total_time_raw%)<br>
Bitrate: $mul($div($div(%_total_size_raw%, %_total_time_raw%), 1000), 8)
</p>
</body>
</html>