【发布时间】:2020-11-18 04:36:33
【问题描述】:
我正在尝试构建此处记录的自定义实时流媒体服务:
https://aws.amazon.com/solutions/implementations/live-streaming-on-aws/
我为“使用 MediaStore 在 AWS 上直播”使用了预先提供的 cloudformation 模板,该模板为我预置了所有相关资源。接下来,我想测试我的自定义流媒体。
我使用 OBS Studio 将我的网络摄像头输出流式传输到在 AWS cloudformation 配置期间创建的 MediaLivePushEndpoint。 OBS 建议它已经将网络摄像头流传输到 rtmp 端点到 AWS MediaLive RTMP 端点。
现在,为了确认我是否可以观看流,当我尝试将 VLC 播放器中的 Input Nerwork Stream 设置为为我创建的云端端点(如下所示:https://aksj2arbacadabra.cloudfront.net/stream/index.m3u8)时,VLC 无法获取流并在日志中显示以下错误消息失败。我错过了什么?谢谢!
...
...
...
http debug: outgoing request: GET /stream/index.m3u8 HTTP/1.1 Host: d2lasasasauyhk.cloudfront.net Accept: */* Accept-Language: en_US User-Agent: VLC/3.0.11 LibVLC/3.0.11 Range: bytes=0-
http debug: incoming response: HTTP/1.1 404 Not Found Content-Type: application/x-amz-json-1.1 Content-Length: 31 Connection: keep-alive x-amzn-RequestId: HRNVKYNLTdsadasdasasasasaPXAKWD7AQ55HLYBBXHPH6GIBH5WWY x-amzn-ErrorType: ObjectNotFoundException Date: Wed, 18 Nov 2020 04:08:53 GMT X-Cache: Error from cloudfront Via: 1.1 5085d90866d21sadasdasdad53213.cloudfront.net (CloudFront) X-Amz-Cf-Pop: EWR52-C4 X-Amz-Cf-Id: btASELasdasdtzaLkdbIu0hJ_asdasdasdbgiZ5hNn1-utWQ==
access error: HTTP 404 error
main debug: no access modules matched
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 2/3)
main debug: nothing to play
- 根据 Zach 的回复进行更新:
以下是我在使用 MediaLive 部署 cloudformation 模板进行直播时使用的参数(注意我使用的是 RTMP_PUSH):
我使用的是MediaLive 而不是MediaPackage,所以当我转到MediaLive 到我的频道时,我看到了这个:
请注意,它说它找不到“流 [流]”,但我确认我添加到 OBS 的 rtmp 端点正是我从我的 cloudformation 堆栈中作为输出创建的端点:
最后,当我尝试去媒体商店查看是否有任何对象时,它完全是空的:
【问题讨论】:
标签: amazon-web-services amazon-cloudfront live-streaming aws-media-live aws-mediastore