skoobe / riofs

Userspace S3 filesystem
GNU General Public License v3.0
393 stars 60 forks source link

Corrupt on sync mp4 files #134

Open kenanchristian opened 7 years ago

kenanchristian commented 7 years ago

Hello guys, I've been using this inside a docker, and what I do is taking a FLV file from a live stream using FFMPEG then saved to a folder inside docker that mounted s3 storage, after that the FLV file will be converted to MP4 using FFMPEG and saved to the same folder, so it can be sent to S3.

The problem is, the mp4 files seems to be corrupted, and I can't play it from S3. I tried using another library for mount s3 and it doesn't get corrupted. Is it a bug, or I'm using it the wrong way?

wizzard commented 7 years ago

Please make sure you convert your files on non RioFS folder, as we do not support random file writes (video codecs most likely update a file header after finishing write). I recommend you to save the output file to a temporary folder and then copy to RioFS folder.