a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.28k stars 249 forks source link

Amazon S3 Integration #171

Open na9ort opened 3 years ago

na9ort commented 3 years ago

Hi there. Is there possibility to do integration with AWS S3?

In my situation I can't hold file in memory. I would like that ffmpeg flushes converted file on S3 not RAM.

I have some information about http target for ffmpeg.

Official docs with examples https://ffmpeg.org/ffmpeg-protocols.html#http

and some examples from stackoverflow

  1. https://stackoverflow.com/questions/54736246/stream-ffmpeg-transcoding-result-to-s3
  2. https://stackoverflow.com/questions/31530772/local-ffmpeg-output-to-s3-bucket

Those examples have integration with AWS S3 by URL. There are some integration options may be. For example OutputStream or something like that.

Thanks

a-schild commented 3 years ago

Do you have a working ffmpeg -> S3 solution? The two mentioned stackoverflow all lead back to work not or works not in all cases (not all video formats)

na9ort commented 3 years ago

Hi.

No, I don't have, but I am resolving this problem now. I think you can do this feature as if URL with URL. Doesn't matter what second URL is. There will be possibility to send by URL.

a-schild commented 3 years ago

Could you please try with ffmpeg command line to get a working command ? We can then integrate it when it's working in command lin emode