Project

General

Profile

Actions

Bug #81817

closed

Video Mime Type is missing

Added by Alexander Henz over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2017-07-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
On Location Sprint

Description

I recently uploaded a mp4 file, which was not rendered correctly. Instead of using the <video> Tag, it was rendered as an <img>.

I checked the MIME type of the mp4 it was 'video/x-m4v'.

In typo3\sysext\core\Classes\Resource\Rendering\VideoTagRenderer.php this MIME type is missing:

protected $possibleMimeTypes = ['video/mp4', 'video/webm', 'video/ogg', 'application/ogg'];

I changed it into

protected $possibleMimeTypes = ['video/mp4', 'video/webm', 'video/ogg', 'application/ogg', 'video/x-m4v'];

Now it works fine.

Actions #1

Updated by Alexander Henz over 7 years ago

  • Assignee deleted (Alexander Henz)
Actions #2

Updated by Georg Ringer over 7 years ago

additional infos for that mime type at https://stackoverflow.com/questions/15277147/m4v-mimetype-video-mp4-or-video-m4v

The standard media type is video/mp4.

The standard mp4 container format is commonly used for both AAC audio, and H.264 video + AAC audio. These have different media types, audio/mp4 and video/mp4, however often you want different applications for audio and video and on some systems it is only possible to associate a default application with a file extension. Therefore it has become popular in some circles to use the extensions .m4a and .m4v for audio and video(+audio), respectively, in an mp4 container. However this does not affect the media type, which already distinguishes these using the audio or video prefix.

A twist, however, is that Apple started using their own media type, video/x-m4v, for videos from their store, which are in an mp4 container and use a .m4v extension. This is set to open the video in iTunes by default. Sometimes that is necessary because the video uses DRM, AC-3 Dolby Digital audio, or other capabilities that are not commonly supported in an mp4 container, but which are supported by iTunes for files with a .m4v extension. If you rely on such capabilities then you may want to use this media type instead of the standard one.

Media types with no x- are standardized in an RFC and tracked by IANA. No media type with the name video/m4v has been standardized. Non-standard media types have a x- prefix.

Actions #3

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53430

Actions #4

Updated by Georg Ringer over 7 years ago

  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Gerrit Code Review over 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53465

Actions #6

Updated by Georg Ringer over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF