Nginx rtmp live and save on s3bucket

537 Views Asked by At

I have successfully setup nginx-rmtp-module for live streaming, i have tested it with obs software, it works great !

But i am having trouble to save the video on s3bucket for future use.

This is what i setup:

rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                allow publish 127.0.0.1;
                deny publish all;

                application live {
                        live on;
                        record off;
                        hls on;
                        hls_path /var/www/html/stream/hls;
                        hls_fragment 3;
                        hls_playlist_length 60;

                        dash on;
                        dash_path /var/www/html/stream/dash;
                }
        }
}

and this is http

server {
    listen 8088;

    location / {
        add_header Access-Control-Allow-Origin *;
        root /var/www/html/stream;
    }
}

types {
    application/dash+xml mpd;
}

It works great, no complain at all ! But i am finding a way to push to my s3bucket. i want when a user go live, i want to save that video on s3bucket for future use.

i have google lots but coudlnt find any solution, is it possible?

0

There are 0 best solutions below