How to execute a command on an S3 file [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionI have some video files stored on S3, and I want to get video information on them using ffmpeg. However, when I do a command such as :
$ ffmpeg -i 'http://test.s2.amazonaws.com/video.mov
I get a HTTP error 403 Forbidden
response. How would I do this command? I also want to make sure not anyone can ex开发者_如何学Pythonecute stuff on these files. Thank you.
Update: I was able to do this after making the ACL public-read=everyone
for the video, didn't need to use s3fs after all.
You have two options:
- You can download the file and run ffmpeg on localfile,
- or you can use s3fs to mount your s3 bucket as a filesystem.
精彩评论