QL-Win / QuickLook

Bring macOS “Quick Look” feature to Windows
http://pooi.moe/QuickLook/
GNU General Public License v3.0
16.67k stars 1.07k forks source link

[Feature Request] Samsung and Google Motion Photos #536

Open wss7932 opened 4 years ago

wss7932 commented 4 years ago

Would it be possible to add the ability to preview embeded video inside JPG, such as Samsung Motion Photo and Google Motion Still photos? So far there really is no good way I've found to do this.

xupefei commented 4 years ago

This is possible in some way... May add a few lines to Plugins.ImagePlayer to detect such file type and extract the video by using https://github.com/joemck/ExtractMotionPhotos. After, just call Plugins.VideoPlayer to play the video.

It seems not like a complex task. Any volunteer for a new plugin?

wss7932 commented 4 years ago

I certainly don't have the skills but, I would love to be able to use this function.

wss7932 commented 4 years ago

I found this and I wonder if it would help to make this happen. https://android.jlelse.eu/working-with-motion-photos-da0aa49b50c Looks like all it would take is to first, detect ftypmp4, 2nd get offset from exif, and 3rd jump to offset. I just don't have any coding skills to make it happen. Hope it helps. Would be an awesome feature and then quicklook would be the only app I know of in existance that would let one actually view the video. Could just be a button that shows up if ftyp is detected.

wss7932 commented 4 years ago

...this too, https://android.stackexchange.com/questions/196831/how-do-i-view-googles-motion-photos-on-my-windows-pc

wss7932 commented 4 years ago

I found this: https://gist.github.com/vi/5de17bb8d4ea91b8c28e79e0bac6c3cb Again, I don't have the knowledge to pull this off but, this is as close as I can get. I figure someone out there can do this easy.

wss7932 commented 4 years ago

Ok, this does work i Windows. I'm using bash and installed mpv and now I can run this script and it plays the video portion of the file. What I don't know how to do is to bake it into Quicklook. QL will need some mechanism for checking each jpg for "microvideooffset" like this: λ exiftool -t C:\Users\myname\OneDrive\Desktop\20190901_073909.jpg | grep -F 'Micro Video Offset' Micro Video Offset 4733577 If it does, then it could offer a function via a plugin that would allow for a key press or an icon that could be clicked that would play the video. It would be real nice if it would offer the option to always play the video and then freeze on the photo.
I hope someone can make this a thing.

xupefei commented 4 years ago

While QuickLook has many users, there is only few who contributes plugins, sad story :(

Complain aside, I will now look into this issue and try making a plugin for you to download.

wss7932 commented 4 years ago

Wow. Thank you. I think this will be awesome.

On Thu, Oct 10, 2019, 2:29 AM Paddy Xu notifications@github.com wrote:

While QuickLook has many users, there is only few who contributes plugins, sad story :(

Complain aside, I will now look into this issue and try making a plugin for you to download.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/QL-Win/QuickLook/issues/536?email_source=notifications&email_token=AA2UOXMAPDWX7IDXT5E3H7LQN3KVTA5CNFSM4ILN7PPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA3FXSI#issuecomment-540433353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2UOXIO7LY7LPU7YHH47T3QN3KVTANCNFSM4ILN7PPA .