Ant Media Server v2.4.0 versions uploads all HLS(ts, m3u8), MP4, WebM and PNG files to S3 when S3 options are configured.
On the other hand, I want only the MP4 files to be uploaded to the S3. How can I configure that?
Regards,
CodePudding user response:
To configure HLS, record ( MP4 or WebM ) or PNG output of Ant Media to upload, you can use the following setting;
settings.uploadExtensionsToS3
It is a number that its binary form digits represent upload or not. Least significant digit switches record files, second switches HLS, third for PNG.
Example: settings.uploadExtensionsToS3=5
( 101 in binary ) means upload mp4 and PNG but not HLS
Possible values;
Don't upload anything
settings.uploadExtensionsToS3=0
Only record file ( mp4 or webm ) upload
settings.uploadExtensionsToS3=1
Only HLS upload
settings.uploadExtensionsToS3=2
HLS record upload
settings.uploadExtensionsToS3=3
Only PNG upload
settings.uploadExtensionsToS3=4
PNG and record upload
settings.uploadExtensionsToS3=5
PNG HLS upload
settings.uploadExtensionsToS3=6
Upload everything ( default )upload
settings.uploadExtensionsToS3=7