ID3V1 Info:
| File : $mp3_file "; echo "---------------------------------- "; echo "ID3v1 : $ID3->tag "; echo "Title : $ID3->title "; echo "Artist : $ID3->artist "; echo "Album : $ID3->album "; echo "Year : $ID3->year "; echo "Comment : $ID3->comm "; echo "Track : $ID3->track "; echo "Genre : $ID3->genre "; echo "---------------------------------- |
Breakdown of first valid frame:
| Header found at ". ($c) ." bytes into file Analysis of first 4 bytes: 11111111 Byte $c "." (bits ". ((($c+1)*8) -8) ." - " . ((($c+1)*8) -1).") 111"; //bits 8-15 $block1 = fgets($handle,2); $block1 = decbin(hexdec(bin2hex($block1))); $mpegid = substr($block1,2,2); echo "$mpegid"; $layer = substr($block1,4,2); echo "$layer"; $crc = substr($block1,6,1); echo "$crc Byte ". ($c+1) ." (bits ". ((($c+2)*8) -8) ." - " . ((($c+2)*8) -1).") "; //bits 16-23 $block2 = fgets($handle,2); $block2 = decbin(hexdec(bin2hex($block2))); $bitrate = substr($block2,0,4); echo "$bitrate"; $sample = substr($block2,4,2); echo "$sample"; $padding = substr($block2,5,1); echo "$padding"; $priv = substr($block2,6,1); echo "$priv Byte ". ($c+2) ." (bits ". ((($c+3)*8) -8) ." - " . ((($c+3)*8) -1).") "; //bits 24-31 $block3 = fgets($handle,3); $block3 = decbin(hexdec(bin2hex($block3))); $channel = substr($block3,0,2); echo "$channel"; $mode = substr($block3,2,2); echo "$mode"; $copyright = substr($block3,5,1); echo "$copyright"; $original = substr($block3,4,1); echo "$original"; $emphasis = substr($block3,6,2); echo "$emphasis Byte ". ($c+3) ." (bits ". ((($c+4)*8) -8) ." - " . ((($c+4)*8)-1) .") |
Key:
| Frame synchronizer";
echo " MPEG Version - $mpegid"; echo " Layer - $layer"; echo " CRC bit - $crc"; echo " Bitrate - $bitrate kbps"; echo " Samplerate - $sample Hz"; echo " Padding - $padding"; echo " Private - $priv"; echo " Channels - $channel"; echo " Mode extension - $mode"; echo " Copyright - $copyright"; echo " Original - $original"; echo " Emphasis - $emphasis |
| Location = /$dir |
| [DIR] $file | ||
| [FILE]$file_link | " . round(($file_size /1024/1024),2 )." MB | [DETAILS] |
| [FILE] $file_link | " . round(($file_size /1024/1024),2 )." MB | [DETAILS] |
| Files listed: $total Directories listed:" . (count($dirarray) - 2)." |