Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

red5 with s3(i want to customize the path for streaming videos)

Tags:

red5

I am using red5 for streaming videos in my project and I am able to play the videos from the local system which are saved in default folder "streams".

Now i want to customize the path and want to get the videos from S3. How do i configure red5 to work with S3. Is this a good practice?

like image 672
user1903224 Avatar asked Nov 12 '22 15:11

user1903224


1 Answers

I've got code using the IStreamFilenameGenerator works with S3; I'll warn you now that it may not work with the latest jets3 library, but you'll get the point of how it works by looking through the source. One problem / issue that you must understand when using S3 is that you cannot "record" to the bucket on-the-fly; your flv files can only be transferred to S3 once the file is finalized; there is an example upload call in the Application.class. Whereas "play" from S3 will work as expected.

I added the S3 code to the red5-examples repo: https://github.com/Red5/red5-examples

like image 80
Paul Gregoire Avatar answered Jan 04 '23 03:01

Paul Gregoire