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

Preview of video files #27

Closed
lebouquetin opened this issue Sep 24, 2018 · 6 comments
Closed

Preview of video files #27

lebouquetin opened this issue Sep 24, 2018 · 6 comments

Comments

@lebouquetin
Copy link
Member

lebouquetin commented Sep 24, 2018

Currently, preview-generator does not allow preview of video files.

Expected: generate an image preview of video files.

Here is a way to do so:

  1. get video file duration in seconds: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 <videofile>
  2. compute the timeframe at 5% (ie duration/20)
  3. extract the frame : `ffmpeg -ss -i -vframes 1 -q:v 2 <preview.jpeg>

Finally, the right way to implement video preview generation would better be based on https://github.com/kkroening/ffmpeg-python

@lebouquetin
Copy link
Member Author

Note : implementing support of video files in preview generator should come with mediainfo features for extracting video metadata (for json preview)

@lebouquetin
Copy link
Member Author

@AKTasos you take this feature?

@inkhey
Copy link
Contributor

inkhey commented Nov 15, 2019

fixed by #138

@inkhey inkhey closed this as completed Nov 15, 2019
@Alynva
Copy link

Alynva commented Jun 17, 2021

How to use it? It says that "video/mp4" is not supported.

@raphj
Copy link
Contributor

raphj commented Jun 17, 2021

@Alynva Can you give us more information on what you are trying to achieve? What is your setup? How are you using preview-generator? Can you provide us with a snippet of code exhibiting your issue?
You might want to open a new issue, this one is solved since 2019.

@otavs
Copy link

otavs commented Jun 18, 2021

Hi @raphj, I opened issue #232 with details, I'm working with @Alynva :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants