owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.36k stars 178 forks source link

Video Preview #7127

Open ThesiiNCey opened 1 year ago

ThesiiNCey commented 1 year ago

Is your feature request related to a problem? Please describe.

When I upload videos in the following format ( MP4 | MOV | AVI | WMV | 3GP ) I get no preview so a Thumbnail

Describe the solution you'd like

A possibility that one can use ffmpeg for this would be a great solution

impalax33 commented 11 months ago

This feature would be really great yes

micbar commented 11 months ago

@ThesiiNCey

Do you know a library which does the video processing on the server side? maybe even without any C-Bindings?

ThesiiNCey commented 11 months ago

Only ffmpeg or Imagemagic as bin only File

micbar commented 11 months ago

Only ffmpeg or Imagemagic as bin only File

Hm. That is what i feared. This would introduce C dependencies into our codebase, which is error prone and hard to maintain.

ThesiiNCey commented 6 months ago

Only ffmpeg or Imagemagic as bin only File

Hm. That is what i feared. This would introduce C dependencies into our codebase, which is error prone and hard to maintain.

someone tells me it can be possible with -> https://github.com/notedit/media-server-go

micbar commented 6 months ago

Media Server Go has a c dependency too 🙈

ThesiiNCey commented 6 months ago

https://github.com/h2non/imaginary

That would actually be the last method I could think of, I even asked Chatgpt for it

micbar commented 6 months ago

That looks very interesting.

ThesiiNCey commented 6 months ago

so could that possibly be a possibility?

illode commented 6 months ago

Is imaginary's dependency on libvips (plus optionally libheif (and libjxl in the next release)) better than any of the other options? On top of that, the only new formats would be PDF, SVG, HEIF, AVIF, and JXL, none of which are video formats (although I would love for them to be added!)

illode commented 6 months ago

I think if generating thumbnails for a variety of video / (more) image formats is to be added, some sort of ffmpeg wrapper is pretty much unavoidable.

It looks like imaginary (built using bimg) / libvips can support more than just the formats I mentioned, but they use ImageMagick. Since ImageMagick itself doesn't support videos, when generating thumbnails from a video, it ends up just using ffmpeg anyways.

imaginary also only seems useful if the pre-built microservice itself is desired, otherwise bimg can be used directly. And while libvips' design / features do seem nice, the lack of direct video support means another dependency would be needed for video anyways, which was the whole point of this issue.

Having said all that, I would also greatly appreciate video / (more) image thumbnails. Having no thumbnails makes storing videos in OCIS somewhat unpleasant.

ThesiiNCey commented 2 months ago

I haven't looked at it for a long time, but is it now possible to get a video preview just like with GIF and webm and webp files?

kulmann commented 1 month ago

I haven't looked at it for a long time, but is it now possible to get a video preview just like with GIF and webm and webp files?

No. Sadly pretty much nothing changed in that regard :-(