Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quick setting to video panel for "GIF-like" playback #19730

Open
pbakaus opened this issue Jan 17, 2020 · 4 comments
Open

Add quick setting to video panel for "GIF-like" playback #19730

pbakaus opened this issue Jan 17, 2020 · 4 comments
Labels
[Block] Media & Text Affects the Media & Text Block [Block] Video Affects the Video Block [Feature] Media Anything that impacts the experience of managing media Needs Accessibility Feedback Need input from accessibility Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@pbakaus
Copy link

pbakaus commented Jan 17, 2020

Is your feature request related to a problem? Please describe.
GIFs must die as format, as they have file size, color palette and performance issues. Much as been written about it, the best article is probably this WebFundamentals article.

Describe the solution you'd like
It would be excellent if Gutenberg could steer people into using videos by making "gif-like" playback just one click away (most journalists likely don't know which options to toggle). Here's a concept mock (but this certainly doesn't have to be the exact solution):
animation_gutenberg

I blogged about it here as well (calling out Gutenberg, but mostly as positive example, not to single it out).

Describe alternatives you've considered
An alternative that should probably also be done but might warrant a separate issue is the auto-conversion of GIFs you drag into Gutenberg to mp4/webm combinations. Platforms like Twitter already do this, and WordPress/Gutenberg would be doing a great service to the planet by wasting less CPU cycles for billions of people.

/cc @westonruter

@westonruter
Copy link
Member

I don't think it is feasible to transcode GIF to MP4 on the server given the wide variety of capabilities among hosts. What would be interesting is doing this conversion client-side with Wasm. If someone drags a GIF into the editor or adds a GIF to the media library, before uploading it could:

  1. Transcode from GIF to MP4.
  2. Generate poster image frame for the video to set as the attachment's featured image.

Disclaimer: I'm not a Wasm expert, or even a novice.

@pbakaus
Copy link
Author

pbakaus commented Jan 17, 2020

  1. Transcode from GIF to MP4.
  2. Generate poster image frame for the video to set as the attachment's featured image.

Disclaimer: I'm not a Wasm expert, or even a novice.

Totally possible. Promising new actively maintained ffmpeg.js: https://github.com/ffmpegjs/ffmpeg.js

@swissspidy swissspidy added [Block] Image Affects the Image Block [Block] Media & Text Affects the Media & Text Block [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement. Needs Design Needs design efforts. [Block] Video Affects the Video Block and removed [Block] Image Affects the Image Block labels Jan 20, 2020
@swissspidy
Copy link
Member

Very promising stuff!

I think client-side asset optimization and transcoding definitely warrants its own issue and perhaps even a Trac ticket (as it doesn't affect only Gutenberg).

In the meantime, such a UI change seems like a great first step. There might also be other touchpoints for this. For example, when a user uploads a gif, the editor could suggest using a video instead.

@enriquesanchez enriquesanchez added the Needs Accessibility Feedback Need input from accessibility label Apr 6, 2020
@karmatosed karmatosed added the [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later label Apr 6, 2020
@carolinan carolinan removed the [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later label Apr 28, 2023
@swissspidy
Copy link
Member

I've been solving this using the variations feature. It works pretty smooth:

GIF.to.video.mov

I'm going to demo this at WCUS this month, and will continue working on it as part of #61447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Media & Text Affects the Media & Text Block [Block] Video Affects the Video Block [Feature] Media Anything that impacts the experience of managing media Needs Accessibility Feedback Need input from accessibility Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants