Project

General

Profile

Bug #2775

Streams should use official media type video/MP2T instead of outdated unofficial video/x-mpegts

Added by Alain Kalker over 9 years ago. Updated over 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
Streaming
Target version:
-
Start date:
2015-04-13
Due date:
% Done:

100%

Estimated time:
Found in version:
git master
Affected Versions:

Description

Tvheadend is still using the old, unofficial video/x-mpegts media type instead of the official video/MP2T media type0 for its MPEG TS streams, which can lead to problems with finding the default player for them.

$ curl -I http://localhost:9981/stream/service/6cc5c32919d098819c854a6a6c55049d
HTTP/1.1 200 OK
Server: HTS/tvheadend
Cache-Control: no-cache
Connection: Close
Content-Type: video/x-mpegts

VLC and other applications1 have long since switched to using the official video/MP2T media type, and ffmpeg2 and libav3 have been updated to use this as well.
(Yes, I know that this media type is supposed to cover only RTP streams, but most everybody is using it for HTTP and .ts files as well.)

As media type names are supposed to be case insensitive, I would suggest sending it in all lower case, video/mp2t, to prevent problems with buggy media type handlers and case-sensitive filesystems4.

[0]: http://tools.ietf.org/html/rfc3555
[1]: https://bugs.launchpad.net/ubuntu/+source/desktop-file-utils/+bug/552162
[2]: https://ffmpeg.org/pipermail/ffmpeg-cvslog/2014-May/077592.html
[3]: https://lists.libav.org/pipermail/libav-stable/2014-December/000912.html
[4]: http://lists.freedesktop.org/archives/xdg/2013-March/012711.html

History

#1

Updated by Jaroslav Kysela over 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|84ee61634dd655b3c8828a5f5c88e87b4372bcf4.

Also available in: Atom PDF