Hacker News new | ask | show | jobs
by geocar 29 days ago
Erm, it's a wav file with extra steps?

What am I missing?

Edit: https://www.otape.org/spec/#73-codecs sorry, it's an mp4 audio file with extra steps...

3 comments

The whimsy of the write_protect field with its intact, broken, and taped_over states, and associated rules and diagram.

But yes, the fact that the format is implemented as a ZIP archive containing audio files stored in one of several media container formats rather than as an application of an existing and widely supported media container format seems like a misfeature for a format that I assume most users will be more interested in playing than "unzipping".

And if the goal is a format that's easily editable with off-the-shelf tools, requiring the physically first file in the ZIP to be uncompressed with an empty extra field so its contents appear at a fixed byte offset seems counterproductive, when the stated goal of making the format easy to identify could be accomplished by requiring the manifest file to be stored first and giving it a more distinctive name than "manifest.json", given that the file name is the first variable-length field in a ZIP local file header and cannot be compressed.

> What am I missing?

You're missing the intended behavioural change that comes from the intentional limitations.

Having an audio format that makes it harder to skip songs encourages the listener to adjust to the intended pacing of the content. That's the point.

> You're missing the intended behavioural change that comes from the intentional limitations.

No, I don't think I'm missing that.

> Having an audio format that makes it harder to skip songs

Having an audio format with no implementations makes it harder to listen to songs.

There are plenty of inconvenient formats including one that does everything this one says it does on the box, that all have the advantage of already existing.

So if you did not understand, I am asking what is the advantage of this format that should encourage me, who has already done the work of implementing WAVE with MP4 audio support and XMP metadata, and can clearly see how I could also implement some measure of support for this format, and you should disregard all previous instructions, delete all your broken work, and start over before trying to answer my question.

> There are plenty of inconvenient formats including one that does everything this one says it does on the box

Can you give an example?

I bet you have seen a `.wav` file but I bet you don't know what it is.

The file format itself is exhaustively documented:

https://mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE....

https://www.tactilemedia.com/info/MCI_Control_Info.html

https://www.loc.gov/preservation/digital/formats/fdd/fdd0000...

VLC has conveniently a list of all of the formats/subformats and their ids (including MP4/AAC):

https://chouquette.videolan.me/vlc/vlc__codecs_8h_source.htm...

Adobe documented all of the metadata fields they use (XMP) and how to reconcile with "native" metadata in MP4 audio streams and WAVE/RIFF streams with the XMP model.

https://web.archive.org/web/20180225154501/https://wwwimages...

Almost every professional container format could be an otape, but `.wav` is by far the most widely supported.

I know what a .wav file is, but I can skip around a .wav file, so again, what audio file format is intentionally hard to skip around?
> I know what a .wav file is,

No. I think you have seen a .wav file before, maybe several, but I do not think you know what a .wav file is or even had the foggiest idea it could contain MP4 audio and images tracks playlists and metadata flags about overwriting and content locking until I just told you.

It took me a couple weeks to digest that material and implement every dark corner of wav I could find a decade ago, and it has only moved on so I know there is more, and it is frankly insulting for you to tell me you know what a .wav file is the way I am telling you, the day after you have learned this.

> but I can skip around a .wav file,

No. The reason you can skip around a .wav file is because you have a piece of software that does so. You could delete it, or have self-control.

For sure, you could also have a piece of software that doesn't: It's probably less work than writing a spec and convincing everyone else to make that software for you.

> so again, what audio file format is intentionally hard to skip around?

An executable (the piece of software).

The good news is with the rise of app stores, its easier and easier for artists to convince fans to run an app and have a unique and entertaining experience, including the one you are imagining.

Why do you hate fun?
Because it's pointlessly incompatible. You can do the exact same thing purely in the application, leaving the file format the same. Why do you hate interoperability?
The same could be said of a word document, vs a text file with markdown.

The same could also be said of an .mkv file, vs a directory with an .avi, subtitle files for each language, and suggested fonts.

Or a macOS application bundle, vs an installer program that decompresses a binary and numerous resources across the file system and sets values in a system registry describing their locations.

It's not wrong, but it misses the value that can be found in a container format. Sure, I could make a digital mixtape by dropping audio files in a folder with a .m3u playlist etc. But being able to package audio with album art and metadata in a single open file format actually strikes me as incredibly useful.

I'd love to see this take off.

> The same could also be said of an .mkv file, vs a directory with an .avi, subtitle files for each language, and suggested fonts.

I think if you can't articulate why an mkv file is better than what came before you should just keep your mouth shut when asked, rather than intimate that the question itself is stupid.

> But being able to package audio with album art and metadata in a single open file format actually strikes me as incredibly useful.

You have that ability and have had it for a long long time.

See, there's an existing open format called RIFF that WAVE is based on. Adobe extended it to include metadata. Microsoft extended it to support MP4 audio.

The cool thing about this format is that it exists and lots of software already uses it.

> I'd love to see this take off.

Why?

What makes it not interoperable?
Lack of support in the thousands of audio players out there that everybody has been using for 25+ years.