why i dont able to store hls file to the path which is mounted to aws s3 while converting a rtmp stream using ffmpeg? It’s work when the path is non mounted.
Actually I m using nginx rtmp to run a rtmp server & I want it in the foem of hls thats why the rtmp block look like this:
<code>rtmp{
server{
listen 1935;
chunk_size 4096;
# allow publish 127.0.0.1;
allow publish all;
# deny publish all;
application live{
live on;
record off;
hls on;
hls_path /tmp/hls;
hls_fragment 10s;
hls_playlist_length 5m;
}
}
}
</code>
<code>rtmp{
server{
listen 1935;
chunk_size 4096;
# allow publish 127.0.0.1;
allow publish all;
# deny publish all;
application live{
live on;
record off;
hls on;
hls_path /tmp/hls;
hls_fragment 10s;
hls_playlist_length 5m;
}
}
}
</code>
rtmp{
server{
listen 1935;
chunk_size 4096;
# allow publish 127.0.0.1;
allow publish all;
# deny publish all;
application live{
live on;
record off;
hls on;
hls_path /tmp/hls;
hls_fragment 10s;
hls_playlist_length 5m;
}
}
}
And I mounted that hls path (in this case /tmp/hls
)to a aws s3 bucket using s3fs.and its not storing only when the path mounted.what can be a good solution of this?
Why this happen & what can be a good solution of this?