digitalgarden icon indicating copy to clipboard operation
digitalgarden copied to clipboard

Video not supported

Open gopokyo-colinn opened this issue 1 year ago • 6 comments

Please add support to upload and render mp4 or webm files. This would be great as I frequently download copies of youtube vidoes for reference such that I can work offline and still review reference material.

gopokyo-colinn avatar Sep 13 '23 13:09 gopokyo-colinn

In general, the ability to embed files would be really relevant to me, especially PDFs and videos.

Neekster avatar Oct 18 '23 16:10 Neekster

So while I agree it would be nice I will say it probably isn't feasible without figuring out some sort of secondary storage bucket / hosting system for the video files.

  • Git is meant to revision control text files and you can do binary blob files (images, videos, and pdfs) but it isn't intended.
  • You can do it but things get ... not optimal if you "change/move" them because it causes unfortunate things to happen in your git archive.
  • GitHub does not allow uploading of large files (greater than 100MB) to a Git repository.

-dayne

dayne avatar Oct 21 '23 04:10 dayne

The official Obsidian publish has limits of 50mb per file - or something around there. Would having a restriction like that help? I am not aware of change/move issues with our game development projects using largefiles. What are the unfortunate things your are referring to @dayne ?

gopokyo-colinn avatar Oct 21 '23 22:10 gopokyo-colinn

@gopokyo-colinn

The top answer here is pretty good. Another: Why not doing it and what to do to fix it if you do.

This is all why GitHub offers guidance on managing large files on github

dayne avatar Oct 25 '23 06:10 dayne

Is Git Large File Storage an option for implementing this?

I say this as a longtime Digital Garden user on multiple sites who'd love to see the feature exist – but I have no idea what's involved on a technical level.

As a high-school computer science teacher authoring tutorials for my students, I currently work around this by making animated GIFs in place of short .MP4 files, but GIFs have their own issues.

I'd love to occasionally be able to include PDF files and sometimes .ZIP files as well.

russellgordon avatar Jan 20 '24 17:01 russellgordon

LFS is a good option to consider for handling of binary blobs in git. It is not perfect for all usecases/workflows

GitHub supports LFS so that leans nicely into that .. but possible there are a lot of layers of complexity to integrate this correctly and consistently at each of the layers/environments a digital garden workflow involves to go from a workstation to a website.

Serious considerations planning & hacking needed before attempting to weave it into the digitalgarden plugin .. lot of layers of things have to all agree to mange things the same way .. and it where the final website is deployed to would need the tools too.

dayne avatar Jan 20 '24 22:01 dayne