kahing / goofys

a high-performance, POSIX-ish Amazon S3 file system written in Go
Apache License 2.0
5.22k stars 523 forks source link

Error writing trailer With ffmpeg transfer video #296

Open waqasbelushi opened 6 years ago

waqasbelushi commented 6 years ago

Im facing this error on goofys s3fs handle this Operation file send successfully
But goofys not supported this Operation :( [mp4 @ 0x5583d4e896c0] Starting second pass: moving the moov atom to the beginning of the file Error writing trailer of /s3/test/ko12.mp4: Operation not supported frame= 758 fps=0.0 q=-1.0 Lsize= 3194kB time=00:00:30.27 bitrate= 864.2kbits/s speed= 672x video:2719kB audio:475kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001468% goofys#tubpk-storage-cdn /s3/test fuse _netdev,allow_other,--uid=33,--gid=33,--use-content-type,--dir-mode=0755,--file-mode=0644,--endpoint=https://ams3.digitaloceanspaces.com/ 0 0

s3fs#tubpk-storage-cdn /s3/test fuse retries=5,uid=33,gid=33,use_cache=/tmp,multireq_max=1000,max_stat_cache_size=100000,allow_other,url=http://ams3.digitaloceanspaces.com 0 0

kahing commented 6 years ago

could you use --debug_fuse and include the output here?

hanibash commented 4 years ago

For anyone struggling with this the problem is ffmpeg trying to seek to the beginning of the file to add the MOOV atom. Add -movflags frag_keyframe+empty_moov to your ffmpeg encoding so that the seek isn't necessary. -movflags faststart will not accomplish the same thing.

2020/08/17 18:00:56.256656 fuse.DEBUG WriteFile 9 test.mp4 [40 4]
2020/08/17 18:00:56.318792 fuse.ERROR WriteFile: only sequential writes supported 9 test.mp4 [609095 40]
2020/08/17 18:00:56.318856 fuse.DEBUG Op 0x00000214        connection.go:493] -> Error: "operation not supported"
2020/08/17 18:00:56.318893 fuse.ERROR *fuseops.WriteFileOp error: operation not supported