1s Silence Ogg Opus
1s Silence Ogg Opus is a Ogg Container sample generated for file format testing. It can be used to test downloads, parsers, previews, and file type detection.
silence-1s.oggAudio
VorbisやOpusなどを格納できるコンテナ形式。ページ単位でOggSキャプチャパターンから始まります。
4F 67 67 53 OggSSIGNATURE = bytes.fromhex("4f676753")
OFFSET = 0
def is_ogg(path: str) -> bool:
with open(path, "rb") as f:
f.seek(OFFSET)
head = f.read(len(SIGNATURE))
return head == SIGNATUREconst SIGNATURE = [0x4f, 0x67, 0x67, 0x53];
const OFFSET = 0;
// bytes: a Uint8Array / Buffer holding the start of the file
export function isOgg(bytes) {
return SIGNATURE.every((byte, i) => bytes[OFFSET + i] === byte);
}package fileid
import "bytes"
var isoggSignature = []byte{0x4f, 0x67, 0x67, 0x53}
const isoggOffset = 0
func IsOgg(b []byte) bool {
end := isoggOffset + len(isoggSignature)
if len(b) < end {
return false
}
return bytes.Equal(b[isoggOffset:end], isoggSignature)
}const SIGNATURE: &[u8] = &[0x4f, 0x67, 0x67, 0x53];
const OFFSET: usize = 0;
fn is_ogg(bytes: &[u8]) -> bool {
bytes.get(OFFSET..OFFSET + SIGNATURE.len()) == Some(SIGNATURE)
}<?php
$signature = "\x4f\x67\x67\x53";
$offset = 0;
function is_ogg(string $bytes): bool {
global $signature, $offset;
return substr($bytes, $offset, strlen($signature)) === $signature;
}Ogg Container は再生、波形処理、アップロードチェック、再生時間の処理、ビットレート検証などで使われます。短いクリップ・無音・環境音はプレイヤーや変換の境界条件を洗い出すのに役立ちます。
メディアファイルも、壊れたメタデータ・極端な寸法・長い再生時間・異常なチャンクでデコーダに負荷をかけることがあります。処理前にサイズ・寸法・長さを読み取ってください。
11 個のサンプルで、再生時間の処理・再生開始・メタデータ読み取り・ダウンロード挙動をテストできます。
1s Silence Ogg Opus is a Ogg Container sample generated for file format testing. It can be used to test downloads, parsers, previews, and file type detection.
silence-1s.oggLake Waves OGG 0.25s is a Ogg Container sample based on Wikimedia Commons, 0.25s. It can be used to test downloads, parsers, previews, and file type detection.
01-lake-waves.ogg8cd34db8b45af5bca3f5a24957fe8a9ddadfe7c611d1d3b14b2094220683f7bbLake Waves OGG 0.5s is a Ogg Container sample based on Wikimedia Commons, 0.5s. It can be used to test downloads, parsers, previews, and file type detection.
02-lake-waves.ogg983311e4be6fbbba530134835a69e421ca8cdc631bf26c74f2d1a4c456242db3Lake Waves OGG 1s is a Ogg Container sample based on Wikimedia Commons, 1s. It can be used to test downloads, parsers, previews, and file type detection.
03-lake-waves.ogg1583f8f319620ab5dae086f0a9caeb7e6cf208b5df30ac5387b470b440424a91Lake Waves OGG 1.5s is a Ogg Container sample based on Wikimedia Commons, 1.5s. It can be used to test downloads, parsers, previews, and file type detection.
04-lake-waves.ogg771cb5be0d3852287972dd1e043fdc35cdf5c24f000df364ec622f7eaf7341e7Lake Waves OGG 2s is a Ogg Container sample based on Wikimedia Commons, 2s. It can be used to test downloads, parsers, previews, and file type detection.
05-lake-waves.oggc89b8764a36ecda854ab4121390e52571c9ee0a90fd1acc39cb60a9cafdd5d70Lake Waves OGG 3s is a Ogg Container sample based on Wikimedia Commons, 3s. It can be used to test downloads, parsers, previews, and file type detection.
06-lake-waves.oggae80a4a437d92a168508f95bde80c8dc666886d39296e0dffd28e5d08bbbcd03Lake Waves OGG 4s is a Ogg Container sample based on Wikimedia Commons, 4s. It can be used to test downloads, parsers, previews, and file type detection.
07-lake-waves.ogg3ee59ef9daca42b9512d42a3fdb6d5e792f1bfcee2b5286b7736cc2f48addb94Lake Waves OGG 6s is a Ogg Container sample based on Wikimedia Commons, 6s. It can be used to test downloads, parsers, previews, and file type detection.
08-lake-waves.ogg0f67ae95c91ddbe13455e2cdb81dc3226394fe36eab201fd7fa6bc17867c29ccLake Waves OGG 8s is a Ogg Container sample based on Wikimedia Commons, 8s. It can be used to test downloads, parsers, previews, and file type detection.
09-lake-waves.ogg83c99b7d9b838019b5da0d1134ab3803a5cb2c036581cc37525c5e666cdef23bNASA TV Audio OGG is a Ogg Container 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.ogg8cf72800660ed530575aa9e442bccc793f009fbb7e83bce11e7eb9526accac0bOgg Container ファイルはバイトシグネチャ 4F 67 67 53 ("OggS") で始まります。拡張子に頼らず、この先頭バイトを読み取って形式を判定してください。
Ogg Container のMIMEタイプは audio/ogg, video/ogg, application/ogg です。
Ogg Container ファイルは .ogg, .oga, .ogv 拡張子を使います。拡張子は慣習にすぎず中身を保証しないため、シグネチャや構造のチェックと組み合わせてください。