Bug 13711 - MIME type of flash video
Summary: MIME type of flash video
Status: RESOLVED WONTFIX
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-17 13:08 UTC by Matthias Kretz
Modified: 2008-02-21 14:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matthias Kretz 2007-12-17 13:08:17 UTC
Currently the MIME type for Flash video is "application/x-flash-video" with the following aliases:
flv-application/octet-stream
video/flv

The latter does not seem to be registered at IANA, though (http://www.iana.org/assignments/media-types/video/). As it's apparently used by youtube, though, perhaps it should stay but the more correct video/x-flv be added?
Comment 1 Bastien Nocera 2008-02-21 07:27:33 UTC
(In reply to comment #0)
> Currently the MIME type for Flash video is "application/x-flash-video" with the
> following aliases:
> flv-application/octet-stream
> video/flv
> 
> The latter does not seem to be registered at IANA, though
> (http://www.iana.org/assignments/media-types/video/). As it's apparently used
> by youtube, though, perhaps it should stay but the more correct video/x-flv be
> added?

The canonical mime-type within shared-mime-info is "application/x-flash-video" which is an IANA-correct mime-type for unregistered mime-types. video/flv is only provided as an alias. Only canonical mime-types need to be IANA mime-types, aliases are used for types found "in the wild".
Comment 2 Matthias Kretz 2008-02-21 11:00:48 UTC
My request was not to remove video/flv but to add video/x-flv which is one of those found in the wild.
Comment 3 Bastien Nocera 2008-02-21 12:39:29 UTC
(In reply to comment #2)
> My request was not to remove video/flv but to add video/x-flv which is one of
> those found in the wild.

Got an example?
Comment 4 Matthias Kretz 2008-02-21 12:57:07 UTC
from xine-lib/src/demuxers/demux_flv.c:
static const char *get_mimetypes (demux_class_t *this_gen) {
  return "video/x-flv: flv: Flash video;";
}

Which I changed to:
static const char *get_mimetypes (demux_class_t *this_gen) {
  return "video/x-flv: flv: Flash video;"
         "video/flv: flv: Flash video;"
         "application/x-flash-video: flv: Flash video;";
}

for one of the latest releases. Still older versions of xine only report video/x-flv.
Comment 5 Bastien Nocera 2008-02-21 14:40:35 UTC
(In reply to comment #4)
> from xine-lib/src/demuxers/demux_flv.c:
> static const char *get_mimetypes (demux_class_t *this_gen) {
>   return "video/x-flv: flv: Flash video;";
> }
> 
> Which I changed to:
> static const char *get_mimetypes (demux_class_t *this_gen) {
>   return "video/x-flv: flv: Flash video;"
>          "video/flv: flv: Flash video;"
>          "application/x-flash-video: flv: Flash video;";
> }
> 
> for one of the latest releases. Still older versions of xine only report
> video/x-flv.

This is a consumer mime-type, not a creator mime-type. As in, xine-lib registers itself as handling video/x-flv, but it doesn't create/offer files of that type. Let me know if you find a website offering FLV videos with that mime-type, or another system registering that mime-type themselves.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.