Re: [AVT] MIME-type dilution

Greg Smith <ecomputerd@yahoo.com> Mon, 10 April 2006 15:34 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FSyPd-0005qk-N7; Mon, 10 Apr 2006 11:34:45 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FSyPb-0005qM-Sk for avt@ietf.org; Mon, 10 Apr 2006 11:34:43 -0400
Received: from web52012.mail.yahoo.com ([206.190.48.95]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1FSyPa-0006yH-9z for avt@ietf.org; Mon, 10 Apr 2006 11:34:43 -0400
Received: (qmail 1543 invoked by uid 60001); 10 Apr 2006 15:34:42 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZUU7tJxUEqNbv/pD4KTAQv6RnAlWHJ8gBGYFvcQJlJ0KdrM+38NmB3K+ZzIqp69FOpWaVgomZ1dWPxoezDhV2UrHpIw7xqQxRV1PPMJqY0X/O62foaHbLtBmIIy6vqzgZGdc/fMFa2CRZO0zd0hMbK8Lo9JYnaIHmJLfXJD+Pm8= ;
Message-ID: <20060410153442.1541.qmail@web52012.mail.yahoo.com>
Received: from [70.152.86.135] by web52012.mail.yahoo.com via HTTP; Mon, 10 Apr 2006 08:34:41 PDT
Date: Mon, 10 Apr 2006 08:34:41 -0700
From: Greg Smith <ecomputerd@yahoo.com>
Subject: Re: [AVT] MIME-type dilution
To: avt@ietf.org
In-Reply-To: <443A152E.5030906@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: abb8110dde048486ea2be9c769692569
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Audio/Video Transport Working Group <avt.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
Errors-To: avt-bounces@ietf.org

Thank you, Magnus, for the additional explanation and
the pointer to the proper place for discussion of this
topic. This will be my last unsolicited post on this
topic in this mailing list. I'll move to the
ietf-types@iana.org with a union this and my previous
posts (under the more appropriate title "Media Type
Dilution). I apologize to those of you who will see
this twice. I would ask that any significant
commentary or correction be either followed up in the
ieft-types@iana.org mailing list or mailed directly to
me.

---

I'm open the the suggestion that I am not fully aware
of how Media Types are used in their entirety. I am,
however, suggesting that there is a growing problem
with use of Media Types in determining dispatch
requirements.

Functional Interpretation

Although I have not seen dispatching based on Media
Types generically described in the RFCs that I
reviewed, I have found the description in a w3c
document "Client handling of MIME headers" [1] and
RFC3023 Section 13 (Appendix A) [2].

This seems to me to be a major use and benefit of
defining appropriate Media Types, especially with
respect to the assignment of Sub-types within the
appropriate top-level types.

Common browsers and operating systems both allow
dispatching based on Media Types, in addition to the
"similar-to-dispatching" uses I mentioned previously
in ATOM, RSS Media, and Autodiscovery.

Even at the operating system or the browser level,
this sometimes run into problems for the user where a
particular audio or video Media Container contains a
Media Encoding that is not decodable by the
application that has been associated based on the
Media Type.

Terminology Interpretation

RFC4288 Section 4.1 "Functionality Requirement" states
that "Media types MUST function as an actual media
format."

The next sentence states "Registration of things that
are better thought of as a transfer encoding...are not
allowed." and then goes on to give base64 as an
example of a transfer encoding.

It is still unclear which, if any, of the following
categories (using my prior terminology) are construed
as a "transfer encoding": Type, Media Container, and
Media Encoding. To me, these "categories" are the
logical way of distinguishing audio and video media
simply because these are the broad categories
determining how and if a particular file can be played
on any particular system.

"Type" clearly corresponds to top-level Media Type
(audio, video, etc.). Media Container (such as Ogg,
MPEG-4 Part 14, "AVI", "MOV") clearly does *not*
correspond to RFC4288 Section 4.1 "Transfer Encoding"
and clearly corresponds to an actual media format. So
the remaining question is: do media encodings commonly
in use correspond to "transfer encodings", in which
case they do not qualify as distinct MIME types. As
examples of Media Encoding I offer: Vorbis (audio),
Theora (video), MPEG-4 Part 2 (video), MPEG-4 Part 3
(audio), MPEG-4 Part 10 (video). A deeper and more
exhaustive survey of current Media Type registrations
would be useful here.

Part of the issue here may be that "transfer encoding"
in the sense of  RFC4288 Section 4.1 seems to refer to
"lossless," "reversible," and "universally decodable".
Such is not the case with many audio and/or video
encodings. Based on this interpretation, I would argue
that Transfer Encodings do not refer to the common
audio and/or video encodings, and therefore that these
audio and video encodings qualify for Media Type
registration.

Possible Solution

The danger is that if every combination of Media
Containers and Media Encodings were registered as
distinct Media Types, the result would be an
astronomical increase in the number of Media Types and
it would increase the number, if not the complexity,
of the dispatch rules within operating systems and
browsers.

It seems one way around this might be to use a
"+suffix" mechanism (obviously specified such that it
is backward compatible with RFC3023), or some other
"extension". It could be specified that only Media
Containers qualify as a Media Sub-type, and that one
or more (optional) suffixes would indicate the
contained media encodings. And that for containers
that can contain or do commonly contain only audio,
then they be registered under the audio top-level
type. For contains that can contain or do commonly
contain video (with synchronized audio), they should
be registered as a video top-level Media Type. For
Media Containers that serve both functions (including
audio only), they should be registered as audio and
video top-level Media Types.

With the added "Encoding extension" mechanism, there
may be complications in that current dispatching
mechanisms are "fixed" meaning that the media
dispatchers expect a fixed string match of Media Type
to dispatchee. This does not easily permit
interpretation of added-in-arbitrary-order suffixes.
To solve this problem, the order of suffixes could be
programmatically determined (for example, either
absolute alphabetical or alphabetical within major
groups of audio, video, other). This way, only one
permutation of each combination of Media Encodings
would need to be added.

Summary

I'm not sure if this is viewed as a problem by others,
but it seems to be a serious issue that is beginning
to be "worked around" outside of, and parallel to, the
Media Type definitions in several different and
incompatible ways. Inclusion of more strict
interpretation and differentiation of top-level types
and/or formal recognition of Media Containers and
Media Encodings within the Media Type system seems
like significant and appropriate improvements to Media
Type registration.


References

[1] "Client handling of MIME headers"

http://www.w3.org/2001/tag/doc/mime-respect-20030709
"The architecture of the Web depends on applications
making dispatching and security decisions for
resources based on their Internet Media Types and
other MIME headers."

http://www.w3.org/2001/tag/doc/mime-respect.html
The current version states "For example, HTTP and MIME
use the value of the "Content-Type" header field to
indicate the Internet media type of the
representation, which influences the dispatching of
handlers and security-related decisions made by
recipients of the message."

Section 3.1
A media type is not simply an indication of data
format; it also refers to a preferred interpretation
of that data format. This preferred interpretation may
impact the recipient's functional decisions, such as
whether the data is rendered, stored, or executed. In
practice, media types are often used as the key for
selecting an appropriate handler to interpret the data
received. It is possible for a single data format to
be associated with multiple media types and for a
single media type to describe a superset of many
different data formats.
--- end excerpt

[2] http://www.ietf.org/rfc/rfc3023.txt





--- Magnus Westerlund <magnus.westerlund@ericsson.com>
wrote:

> Hi Greg,
> 
> First of all the most appropriate place to discuss
> Media Types are 
> ietf-types@iana.org, which is an alias for
> ietf-types@alvestrand.no. 
> This is the list for review of media types that are
> to be registered in 
> the standards tree.
> 
> It doesn't seem to me that you are fully aware of
> how media types are 
> used. The classic usage of media types are to
> identify file formats, 
> when used in MIME, HTTP, etc. There are also usage
> in real-time media 
> applications to identify the media format and its
> packetization within 
> RTP. The rules for registering RTP payload formats
> as media types are 
> present in RFC 3555, currently being updated:
>
http://www.ietf.org/internet-drafts/draft-ietf-avt-rfc3555bis-03.txt
> This usage allows the negotiation of media types in
> SDP offer/answer 
> with SIP, and media configuration of streaming
> clients when using RTSP 
> to mention two common usages.
> 
> What you seem to point out as an issue with diluting
> the top media type 
> is not easily solved. For media formats that are
> aggregations it is not 
> obvious what top type they should have. And unless
> they have a clear cut 
> belonging in audio or video I think application is
> quite suitable. There 
> are some aggregated formats like video/3gpp that
> uses video, despite the 
> possibility for the file to contain only audio. I
> don't think this is an 
> serious issue. What would be a serious issue would
> be to have multiple 
> media types for the same format. That would only
> create confusion and 
> increase the implementation burden.
> 
> When it comes to the issue of the content of
> aggregating file formats 
> there is RFC 4281 that discusses and have one
> solution for determining 
> the content of a aggregated file (or bucket as the
> RFC calls them).
> ftp://ftp.rfc-editor.org/in-notes/rfc4281.txt
> 
> I don't know how one can avoid what you call
> dilution. The top level is 
> very limited as an classification of media and due
> to that one will be 
> forced to make compromises. The most important
> feature of media types as 
> identifiers of formats is not lost if the top level
> is not 100% correct 
> as classification. But I might not fully understand
> the issues you see 
> with dilution.
> 
> Cheers
> 
> Magnus
> 
> Greg Smith wrote:
> > It appears that alternate means are being deployed
> to
> > differentiate between major media types in part
> > because the original uses of the MIME type are not
> > being strictly followed. Please exuse me: if these
> > issues have been addressed before, I would
> appreciate
> > a link or two to the appropriate postings.
> > 
> > I have recently been asked about the MIME Type
> being
> > able to distinguish between audio and video. It
> was
> > stated to me that, for example, application/ogg,
> > application/smil, and application/smil+xml do not
> > distinguish between audio and video.
> > 
> > My response was that the MIME type *should*
> > differentiate between audio, video, and other
> major
> > types of media. But the top-level MIME types
> appear to
> > be suffering from dilution.
> > 
> > RSS Media (excerpt from version 1.1.0)
> > 
> > In addition the latest draft of the Media RSS
> > Specification justifies the addition of a "medium"
> > attribute that differentiates between major
> "mediums"
> > (image | audio | video | document | executable)
> > because "it simplifies decision making on the
> reader
> > side, as well as flushes out any ambiguities
> between
> > MIME type and object type"
> > 
> > This appears to model EXACTLY the original purpose
> of
> > the MIME type (section 3 of
> > http://www.isi.edu/in-notes/rfc2046.txt where we
> see:
> > text | image | audio | video | application, as
> well as
> > composite types: multipart | message).
> > 
> > ATOM
> > 
> > While ATOM
> >
>
(http://www.ietf.org/internet-drafts/draft-ietf-atompub-protocol-08.txt)
> > Proposes to differentiate between an "entry" (in
> ATOM
> > format) and all other "media".
> > 
> > It seems like a very useful construct (within
> ATOM) to
> > be able to differentiate collections based on both
> > top-level MIME type and sub-type. Further dilution
> of
> > the top-level types seems contradictory to the
> entire
> > purpose of MIME type.
> > 
> > RSS and Atom Feed Auto-Discovery for Internet TV
> > 
> >
>
http://maketelevision.com/log/rss_and_atom_feed_auto-discovery_for_internet_tv
> > Makes use of an attribute: media="tv", to
> > differentiate between what (in my opinion) should
> be
> > top-level MIME types.
> > 
> > Granted that these examples are not standards
> (yet),
> > they substantiate the view that top-level MIME
> types
> > are not sufficient for media differentiation.
> > 
> > Ogg
> > 
> > As a concrete example of the dilution,
> application/ogg
> > is the MIME type for use of all audio and/or video
> > that is in the Ogg file format. Ogg often contains
> > vorbis-encoded audio or theora-encoded video. It
> seems
> > appropriate, then, that either audio/ogg and
> > video/ogg, or audio/vorbis and video/theora, be
> > appropriated for use for files using the Ogg
> format. I
> > found that in Feb 2006, there was an application
> that
> > included appropriation of audio/vorbis,
> specifically
> > for RTP transport, and not for Ogg file format.
> This
> > concerns me only because audio/vorbis seems very
> > appropriate to use for Ogg file format
> vorbis-encoded
> > audio and its appropriation for use only using RTP
> > "container" format seems premature or somehow
> > misguided.
> > 
> > Over the past year, I've had quite an introduction
> to
> > video container formats vs. encoding formats. I
> > maintain the "media chart" for Pocket PCs at
> > http://www.feederreader.com/mediachart.html ,
> which
> > attempts to sort out some of the confusion.
> > 
> > Part of the issue is that Media Type, Media
> Container,
> > and Media Encoding are variously intertwined and
> > mixed. But not essentially addressed by the MIME
> type
> > specification. And because these issues are at a
> level
> > above individual MIME types, it seems they would
> need
> > to be addressed outside any MIME type application.
> > 
> > These issues appear to me to be ripe for
> > "de-confusioning" and it occurred to me that the
> > organization responsible for MIME types would be
> the
> > place to start.
> > 
> > Thoughts? Comments? 
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
Audio/Video Transport Working Group
avt@ietf.org
https://www1.ietf.org/mailman/listinfo/avt