It's a little heavy handed, but if you don't need absolutely the best 
performance and are okay with requiring software other than just vanilla 
Node.js to be installed to run your program, just shelling out to another 
command line utility that can get this data is probably the simplest. 
 There are a number of tools that can get bitrate from an mp3 file, this 
page [1] suggests ExifTool (for Linux or Mac), and it looks like someone 
already wrote an NPM module that wraps doing that for you [2].

[1] 
http://superuser.com/questions/36871/linux-command-line-utility-to-determine-mp3-bitrate
[2] https://www.npmjs.com/package/exiftool

  Jimb Esser

On Sunday, April 5, 2015 at 6:16:11 AM UTC-7, Ali Reza wrote:
>
> i tried for multiple files , all of them was empty ? 
>
>  there is other library other than taglib for extracting mp3 files bitrate 
> ?  i tested id3js , musicmetadata non of them show birate. 
>
> On Sunday, April 5, 2015 at 4:55:53 PM UTC+4:30, Aria Stewart wrote:
>>
>> On Sunday, April 5, 2015 at 8:17:42 AM UTC-4, Ali Reza wrote:
>>>
>>> I try to read AudioProperties (bitrate) with Node-taglib 
>>> <https://github.com/nikhilm/node-taglib> , here's my code :
>>>
>>
>> [snip]
>>  
>>
>>> As you can see there is undefined for audioProperties
>>>
>>> I be appreciated if tell me where i am wrong
>>>
>> From the documentation:
>>
>> If no audio properties could be read, audioProperties will be an empty 
>> object (falsy). The following fields are available in audioProperties, 
>> all are integers:
>>  
>>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/f779e6f4-bf9e-459d-810b-f52e318f71df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to