PKM-er / media-extended

enhanced media(video/audio) playback for obsidian.md
https://mx.pkmer.net
MIT License
589 stars 49 forks source link

Feature: Generate Video Snippet from Temporal Fragments #78

Open EternalHXP opened 2 years ago

EternalHXP commented 2 years ago

Hope media-plugin can generate video clip files by timestamp(start-time to end-time) then I can organize the markdown text with video clip files to Anki or just review text through play video clip files.

Vuccappella commented 2 years ago

That would require for the video to be downloaded and processed on your computer and split somehow, probably way out of scope for a plugin like this. Alternatively to connect to a service online that would do that online and return a newly hosted video with that fragment of the original video. I'm not a developer but it seems like a feature that wouldn't be very easily achievable.

You can limit the playback of the videos currently and loop them from one point in time to another. For example, if you paste this in your note:

[TEST](https://www.youtube.com/watch?v=jNQXAC9IVRw#loop&t=1,2&mute)

This would replay the video from the first second to the second and loop it (you can turn off the auto loop as well. So potentially you can setup your videos like that and they will be 'clipped' to only those time frames when replayed.

There's no hotkeys for this so you have to manually define the sections in your video url.