map200uk Posted May 18, 2007 Share Posted May 18, 2007 hi, yes im trying now to read aac encoded files! i have read up on it and 36 address location is start of moov atom, which all udta meta belongs to and the previous 4 vytes before 36 hold the length of the entire moov atm (so we read that in is the plan) however the length is in hex i.e. A4 2D is used for 42029 - im not too sure how to get php to get these 4 bytes and then convert the ascii to its hex equivalent? Quote Link to comment https://forums.phpfreaks.com/topic/52047-hex-values/ Share on other sites More sharing options...
Barand Posted May 18, 2007 Share Posted May 18, 2007 <?php $txt = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxA42Dyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'; $hex = substr($txt,31,4); echo hexdec($hex); ?> Quote Link to comment https://forums.phpfreaks.com/topic/52047-hex-values/#findComment-256578 Share on other sites More sharing options...
map200uk Posted May 18, 2007 Author Share Posted May 18, 2007 i tried that, but the thing is the file is read and the out chr is output? i need to get the hex value from the file then convert that to dec? or am i missing something? ta Quote Link to comment https://forums.phpfreaks.com/topic/52047-hex-values/#findComment-256643 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.