cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

No basic video file in library example #782

Closed 60-hz closed 4 months ago

60-hz commented 5 months ago

I foticed recently that the "cloud.mp4" file is not accessible anymore from the "Library files" in cables.gl and dev. It was handy to have a small example video file for example testing and during workshops.

pandrr commented 5 months ago

yes, it was confusing because it is a stop motion movie and stutters. i wanted to include an snippet from the open source blender movie. do you have any public domain files that would make sense ?

60-hz commented 5 months ago

During workshops, I like to use slow motion video because it's fun to play with. I found out that recompressing using ffmpeg with one key frame for each frame allows for smoother frame by frale decoding: ffmpeg -i input.mp4 -preset slow -crf 18 -vcodec libx264 -x264-params keyint=1 output.mp4 Also, I think the final size should be light, maybe no more than 5mo...

Here is an example encoded with ffmpeg with the previous settings (working very smoothly with cables.gl on my macbook): https://github.com/cables-gl/cables_docs/assets/5449719/09214246-6c3e-419b-8cfd-460bc50d80d8

Maybe a short texture-like slow motion file and another one with a little animation with sound could be nice for different purposes ?

This website have a lot of "free to use" and easy downloadable videos without accounts : https://www.pexels.com/search/videos/cloud/

pandrr commented 5 months ago

thanks, very nice website. i added this video to the default library: https://www.pexels.com/video/ocean-waves-on-los-angeles-beach-20325563