Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#27636 closed enhancement (maybelater)

Swap the mp4 index when uploading

Reported by: ascom's profile ascom Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords:
Focuses: Cc:

Description

When I upload a mp4 video to my test WordPress installation (running on a free hosting service), the video does not load and play right away in Firefox, which requires flash player. This is because many video converters/exporters (such as Openshot, which I used for the video) do not web optimize the output. The flash media element wants to download the whole mp4 before playing at all.

WordPress should swap the index to the beginning (like http://renaun.com/blog/code/qtindexswapper/), so the video loads right away in the player. Attached is the exported video and a screencast demo.

Attachments (2)

rickroll.mp4 (5.1 MB) - added by ascom 11 years ago.
Unoptimized video exported from Openshot
wordpress-qtindex-demo.mp4 (1.4 MB) - added by ascom 11 years ago.
Screencast demo of the delay in loading

Change History (8)

@ascom
11 years ago

Unoptimized video exported from Openshot

@ascom
11 years ago

Screencast demo of the delay in loading

#1 follow-up: @wonderboymusic
11 years ago

  • Focuses ui performance removed
  • Keywords close added
  • Milestone Awaiting Review deleted

WordPress does not encode or transcode video - that is the end user's responsibility.

#2 in reply to: ↑ 1 @ascom
11 years ago

Replying to wonderboymusic:

WordPress does not encode or transcode video - that is the end user's responsibility.

I disagree - since many users of WordPress are not so tech-saavy, they may not care about their export settings. I believe it is necessary to prevent confusion among users.

Also, I found a C-implementation of an index swapper - https://github.com/FFmpeg/FFmpeg/blob/master/tools/qt-faststart.c

Version 0, edited 11 years ago by ascom (next)

#3 @wonderboymusic
11 years ago

  • Milestone set to Awaiting Review

#4 @ascom
11 years ago

  • Keywords close removed

#5 @helen
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

We haven't found a good path to rotating images based on EXIF data yet (see #14459) - this seems even harder to manage in distributed software. Going to go with maybelater - there's no viable path forward, and who knows if this will still be the case by the time there is one.

#6 @ascom
11 years ago

I found a couple of PHP implementations for swapping the index...I actually might want to write my own plugin. :-) I don't see why it would be difficult to run this script on uploaded videos.

https://github.com/clickalicious/qt-faststart.php
https://gist.github.com/Thinkscape/3756836

Note: See TracTickets for help on using tickets.