This looks complex but should work fine for MP3's
http://www.zedwood.com/article/127/php- ... ion-of-mp3dang...I just tried that php code out and it is FAST. Nifty.
Array ( [Filesize] => 107394921 [Encoding] => CBR [MPEG version] => 11 [Layer Description] => 01 [Protection Bit] => 1 [Bitrate Index] => 0111 [Sampling Freq Idx] => 00 [Padding Bit] => 0 [Private Bit] => 0 [Channel Mode] => 01 [Mode Extension] => 00 [Copyright] => 0 [Original Media] => 0 [Emphasis] => 0 [Bitrate] => 96 [Sampling Rate] => 44100 [Frame Size] => 314 [Length] => 8949 [Length mm:ss] => 149:09 )
note - their code is inaccurate if you have embedded artwork in the mp3 - this calculation is 4 seconds too long.
Does anyone have access to similar server side code to determine the runtime for mp4 and m4v video files the ROKU can use?