[wp-trac] [WordPress Trac] #38172: Enable Video Headers in Custom Headers
WordPress Trac
noreply at wordpress.org
Wed Oct 5 06:42:41 UTC 2016
#38172: Enable Video Headers in Custom Headers
-----------------------------+------------------------------
Reporter: davidakennedy | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-----------------------------+------------------------------
Comment (by pento):
Data-driven decisions are fun. :-)
Here's a list of the extensions from the last 10,000 uploads to
VideoPress.
||=Extension=||=Upload Count=||
||mp4||6511||
||mov||2890||
||m4v||323||
||wmv||93||
||avi||72||
||mpg||42||
||3gp||38||
||peg||17||
||gpp||10||
||ogv||4||
It's a reasonable assumption that most (if not all) `mp4` and `m4v` videos
are using h.264 encoding, this is the primary (often only) container and
encoding supported by consumer video recording devices, and video editing
software. If a person knows enough to export in a different format, we can
assume they know enough to use h.264 for web video.
`mov` files are not allowed to be uploaded to WordPress, by default. It's
also not a reasonable assumption that they're using h.264. It's quite
common for it to be a container for MPEG-2 encoded video, particularly
video coming from hand-held video cameras more than a few years old. `mov`
support sometimes comes up in the support forums, where the general advice
is to convert it to `mp4`.
The final ~3% are a mixed bunch, none of which will reliably work in any
browser, and `wmv`/`ogv` are the only ones that can be uploaded to
WordPress.
So, my recommendations:
- When the video is `mp4` or `m4v`, use a plain `video` tag.
- When the video is any other format, load mejs as a fallback. We can't
guarantee it'll work, but it'll usually provide a better experience than
not loading it, and it's no worse than WordPress current behaviour for
embedded video.
- I wouldn't mind YouTube support, it can be
[https://codepen.io/ccrch/pen/GgPLVW done quite nicely] using the YouTube
API.
- Vimeo only works for
[https://vimeo.com/forums/feature_requests/topic:278001 videos upload by
Pro members], so I'm inclined to not add Vimeo support.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38172#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list