Why do I get errors when MediaLive tries to write data to MediaStore ?

0

I'm getting some errors when I try to do a live stream using MediaLive. In MediaLive, I have a RTMP(push) input and MediaStore configured as destination.

For MediaStore I have configured container policy like here:
https://docs.aws.amazon.com/mediastore/latest/ug/policies-examples-default.html
I enabled Cloudwatch logs for the MediaLive channel and these kind of PUT failed errors show whenever I start streaming.

Setting alert [6006] [1-2] [6006-1-2] [OutputDataS3: PUT failed [mediastore://xyz.data.mediastore.us-west-2.amazonaws.com/mystreams/stream_720p30_00005.ts] size [549148]. Response=[403] Message[] Headers[x-amzn-RequestId: EHYZJ3SDA4KJBHRSPELTDV2KW5FUAWVDJYWBC2VPYR7WHWOBDNFGIH3HEAJUJ]

Also in the channel's alert section, I see erros like this:

Failed to Create Output File or Socket
MPEGTS muxer for mediaID [1] unable to open output or stream [mediastore://xyz.data.mediastore.us-west-2.amazonaws.com/mystreams/stream_720p30.000007.m3u8].

For debugging purposes I've gave full access to the IAM role that is associated with the channel.

Any idea on what I'm missing ?

Edited by: adrianmg on Jun 22, 2020 10:39 PM

Edited by: adrianmg on Jun 22, 2020 10:42 PM

질문됨 4년 전856회 조회
2개 답변
0
수락된 답변

adrianmg

When writing to AWS Elemental MediaStore you should use "mediastoressl://" instead of "mediastore://".

See https://docs.aws.amazon.com/medialive/latest/ug/hls-protocol-fields.html & https://docs.aws.amazon.com/medialive/latest/ug/hls-destination-complete-fields-step.html as reference.

Additionally in the HLS Output Group settings - HLS Settings - CDN Settings should be set to HLS MediaStore.

답변함 4년 전
0

mediastoressl did the trick. I'll also change the hls webdav to hls media store. Live stream also works with webdav, but I need to read more about the difference between them.

Thanks @fxeataws !

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠