Git Product home page Git Product logo

strapi-plugin-video-thumbnail's Introduction

Hi, I'm Darron ๐Ÿ‘‹

Profile

Profile Counter

Github Stats

Top Languages

Interested in

  • Ethereum Protocol
  • Mitigate the negative externalities posed by MEV

Tech Stack

Javascript Go Docker

strapi-plugin-video-thumbnail's People

Contributors

darron1217 avatar kiyeopyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

strapi-plugin-video-thumbnail's Issues

Feature Request: Short Preview/Trailer Clip

Some platforms like youtube have a small, in place preview of the video when you hover over it. These previews are essentially a few seconds in total consisting of a few seconds of the original video at different positions (chronological of course and probably based on a percentage).

For example you have a 60 second video, the preview clip should be a 5 second long clip (with no audio) that consists of the following chunks of that original video:

  • 0-1
  • 12-13
  • 24-25
  • 36-37
  • 48-49

Making a total of 5 seconds. This would be awesome to have as a preview.

EDIT:

ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4

would provide the duration which then could be used by dividing it by 10 or so
and using that value in this cmd

ffmpeg -i input.mp4 -vf "select='lt(mod(t,FFPROBE_OUTPUT),3)',setpts=N/(FRAME_RATE*TB),scale=320:-2" -af "aselect='lt(mod(t,FFPROBE_OUTPUT),3)',asetpts=N/SR/TB" -an output.mp4

This would generate a preview video that consists of multiple 3 second videos for every 10% of the original one (only feasible of course if the video is of a certain length)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.