[ogg-dev] can you suggest on extending ogg as short-clip container and the make of its tool?
gildororonar at mail-on.us
gildororonar at mail-on.us
Tue Mar 5 19:43:16 PST 2013
Hello.
I am thinking of developing a tool for computer game makers, enabling
them using an ogg file to hold a collection of very short context
audio clips. I am looking for suggestion on usefulness of the tool
once it is made, and its design.
By "very short context audio" I mean the audio clips that usually is
the response to a mouse-click or key press. e.g. a clicking sound, a
gun shot, sound of a punch, sound of a door opening. Longer audio like
opening music and background music can reasonablly have files of their
own, but such very short context clips, most of them less than one
second, only chokes file systems.
I am considerin to design for this workflow:
To prepare the file:
1. the computer game makers record each short clip on a file of its
own, in raw codec bitstream.
2. they can then use a book-binder tool, which encloses each clip in
an ogg page of audio, enclose each clip's file name in an ogg page of
subtitle, and concatenates them altogether.
The resulting ogg file may contain thousands of clips in one ogg file,
when opened directly, is a long audio with subtitles being each clip's
file name
To use the file:
The file can be fast bisection sought on clip name (stored as
subtitle). Once clip name is located, its next page must be its audio.
Feasibility:
An ogg page is usually 4-8kB, as I tested corresponds to 1 to 2
seconds opus audio. Ogg page maxes at 64kB, equivilent to 11 seconds,
enough to hold longest context audio clip of most games, and having
multiple pages corresponding to one subtitle piece is okay with the
design too.
--
The tool can be something like this:
$ oggz binder --page-size=32kB --codec opus clip1.raw clip2.raw ... >
clips.ogg
I have two more specific questions:
1. Is it better to design a tool that only handle bookbinding of raw
audios, and let oggz-merge to merge the subtitle (file-names) into it?
This fits the one-tool-does-one-thing-only idea, but I am afraid made
things unnecessarily complicated.
2. Are there other USE CASES of this tool? If you can name other
typical use cases, the tool-smith should consider making the tool more
suitable for multiple purposes, adding re-use value, and this better
be thought before making the tool.
Best regards!
Gildor Oronar
-------------------------------------------------
VFEmail.net - http://www.vfemail.net
$14.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
More information about the ogg-dev
mailing list