open-chat-labs / open-storage

GNU General Public License v3.0
35 stars 9 forks source link

Transcode all video to mp4 (maybe) #98

Open julianjelfs opened 2 years ago

julianjelfs commented 2 years ago

OpenChat's video attachment feature is pretty useless at the moment because videos uploaded on one platform do not work on other platforms. To overcome this we would (probably) need to transcode everything to a more cross platform format (e.g. mp4).

Seems like there are open source tools that can do most of the work here. Most notably https://ffmpeg.org/. Is there some rust wrapper for this?

lalalune commented 2 years ago

Looked into this.

First option is you can have users video convert in wasm in the frontend, so they are handling the compute: https://github.com/ffmpegwasm/ffmpeg.wasm

Second option would be to create a marketplace and distribute this to p2p, we've thrown this around a lot for server instancing etc. Could be marketplaced with a reward.

julianjelfs commented 2 years ago

I think option one is not ideal because of the download size. Is there not an option 3 of just using a rust wrapper around ffmpeg and doing it on upload. That was the intention I think.