1s Silence AAC
1s Silence AAC is a Advanced Audio Coding sample generated for file format testing. It can be used to test downloads, parsers, previews, and file type detection.
silence-1s.aacAudio
AACの生ストリームではADTSヘッダが使われることがあります。先頭はFF F1またはFF F9が典型です。
FF F1 ..FF F9 ..SIGNATURE = bytes.fromhex("fff1")
OFFSET = 0
def is_aac(path: str) -> bool:
with open(path, "rb") as f:
f.seek(OFFSET)
head = f.read(len(SIGNATURE))
return head == SIGNATUREconst SIGNATURE = [0xff, 0xf1];
const OFFSET = 0;
// bytes: a Uint8Array / Buffer holding the start of the file
export function isAac(bytes) {
return SIGNATURE.every((byte, i) => bytes[OFFSET + i] === byte);
}package fileid
import "bytes"
var isaacSignature = []byte{0xff, 0xf1}
const isaacOffset = 0
func IsAac(b []byte) bool {
end := isaacOffset + len(isaacSignature)
if len(b) < end {
return false
}
return bytes.Equal(b[isaacOffset:end], isaacSignature)
}const SIGNATURE: &[u8] = &[0xff, 0xf1];
const OFFSET: usize = 0;
fn is_aac(bytes: &[u8]) -> bool {
bytes.get(OFFSET..OFFSET + SIGNATURE.len()) == Some(SIGNATURE)
}<?php
$signature = "\xff\xf1";
$offset = 0;
function is_aac(string $bytes): bool {
global $signature, $offset;
return substr($bytes, $offset, strlen($signature)) === $signature;
}Advanced Audio Coding は再生、波形処理、アップロードチェック、再生時間の処理、ビットレート検証などで使われます。短いクリップ・無音・環境音はプレイヤーや変換の境界条件を洗い出すのに役立ちます。
メディアファイルも、壊れたメタデータ・極端な寸法・長い再生時間・異常なチャンクでデコーダに負荷をかけることがあります。処理前にサイズ・寸法・長さを読み取ってください。
11 個のサンプルで、再生時間の処理・再生開始・メタデータ読み取り・ダウンロード挙動をテストできます。
1s Silence AAC is a Advanced Audio Coding sample generated for file format testing. It can be used to test downloads, parsers, previews, and file type detection.
silence-1s.aacLake Waves AAC 0.25s is a Advanced Audio Coding sample based on Wikimedia Commons, 0.25s. It can be used to test downloads, parsers, previews, and file type detection.
01-lake-waves.aac2740788e357ee98a612a2a70a9b33fd3f4ddbc22e51617fd269c84876d5950fdLake Waves AAC 0.5s is a Advanced Audio Coding sample based on Wikimedia Commons, 0.5s. It can be used to test downloads, parsers, previews, and file type detection.
02-lake-waves.aac414a908c8173ddcc9c743500098d191f1704997cc043a6ae0fba0dff8fb605d1Lake Waves AAC 1s is a Advanced Audio Coding sample based on Wikimedia Commons, 1s. It can be used to test downloads, parsers, previews, and file type detection.
03-lake-waves.aace533d9ab2b749c8910daad148b31457474c6c05b54a9c21ee9eaa5b9d7ddf17cLake Waves AAC 1.5s is a Advanced Audio Coding sample based on Wikimedia Commons, 1.5s. It can be used to test downloads, parsers, previews, and file type detection.
04-lake-waves.aacbdf386e3712ed599c92c455fe0f2e479e56d69ce99a9cea0d9ba5f94882d694aLake Waves AAC 2s is a Advanced Audio Coding sample based on Wikimedia Commons, 2s. It can be used to test downloads, parsers, previews, and file type detection.
05-lake-waves.aace797ec29cd833cb299ecfc374399268dc76a4955c821787e130985b85df35e1aLake Waves AAC 3s is a Advanced Audio Coding sample based on Wikimedia Commons, 3s. It can be used to test downloads, parsers, previews, and file type detection.
06-lake-waves.aacb11aeeffb173130ac33ed9fbb4d64028063620b3db09700c5c3510496b8cc9c1Lake Waves AAC 4s is a Advanced Audio Coding sample based on Wikimedia Commons, 4s. It can be used to test downloads, parsers, previews, and file type detection.
07-lake-waves.aacd7ad33a74be23f011bac3cef9f481de5c4aa702b87a98dc6f8a131d2a1938887Lake Waves AAC 6s is a Advanced Audio Coding sample based on Wikimedia Commons, 6s. It can be used to test downloads, parsers, previews, and file type detection.
08-lake-waves.aac8998e5ae73b0aaa07e45acb02a7d3662e608701edf8a59957edc71c424b9b7e5Lake Waves AAC 8s is a Advanced Audio Coding sample based on Wikimedia Commons, 8s. It can be used to test downloads, parsers, previews, and file type detection.
09-lake-waves.aacbee731063ed41057988d8a6dc29cb36751aa99fabc8d443fd58e1dfb63c3831aNASA TV Audio AAC is a Advanced Audio Coding sample based on NASA Image and Video Library, 2s. It can be used to test downloads, parsers, previews, and file type detection.
nasa-tv-audio.aacb9b88ab211128d2cebafbaa798878be5228e20cbd425e9265a8a89b6112604edAdvanced Audio Coding ファイルはバイトシグネチャ FF F1 ("..") または FF F9 ("..") で始まります。拡張子に頼らず、この先頭バイトを読み取って形式を判定してください。
Advanced Audio Coding のMIMEタイプは audio/aac です。
Advanced Audio Coding ファイルは .aac 拡張子を使います。拡張子は慣習にすぎず中身を保証しないため、シグネチャや構造のチェックと組み合わせてください。