1

我正在关注https://github.com/WowzaMediaSystems/wse-example-pushpublish-hls以便将来自 Wowza 的 HLS 流注入 AWS MediaPackage 通道。

我的 PushPublishProfilesCustom.xml

<?xml version="1.0" encoding="UTF-8"?>
<Root>
    <PushPublishProfiles>
            <PushPublishProfile>
                    <Name>cupertino-file</Name>
                    <Protocol>HTTP</Protocol>
                    <BaseClass>com.mycompany.wms.example.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoFileHandler</BaseClass>
                    <Implementation>
                            <Name>Cupertino File</Name>
                    </Implementation>
                    <HTTPConfiguration>
                    </HTTPConfiguration>
                    <Properties>
                    </Properties>
            </PushPublishProfile>
            <PushPublishProfile>
                    <Name>cupertino-http</Name>
                    <Protocol>HTTP</Protocol>
                    <BaseClass>com.mycompany.wms.example.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoHTTPHandler</BaseClass>
                    <Implementation>
                            <Name>Cupertino HTTP</Name>
                    </Implementation>
                    <HTTPConfiguration>
                    </HTTPConfiguration>
                    <Properties>
                    </Properties>
            </PushPublishProfile>
    </PushPublishProfiles>
</Root>

我的#APP_NAME#/PushPublishMap.txt(我正在添加 EndOfLines 以便于阅读)

MediaPackage={
              "entryName":"MediaPackage",
              "profile":"cupertino-http",
              "streamName":"MediaPackageStream",
              "destinationName":"MediaPackage0",
              "host":"xxxx.mediapackage.eu-west-1.amazonaws.com/in/v2/xxxx/xxxx/channel", 
              "port":"443",
              "sendSSL":"true",
              "username":"xxxx,
              "password":"xxxx",
              "http.path":"hls"
}

当我将数据发送到我的 wowza ( rtsp://XXXX:1935/#APP_NAME#/MediaPackage )时,我开始看到这样的日志......

WARN    server  comment 2020-06-02  09:23:49    -   -   -   -   -   4325.922    -   -   -   -   -   -   -   -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Found 79 segments to send
WARN    server  comment 2020-06-02  09:23:49    -   -   -   -   -   4325.922    -   -   -   -   -   -   -   -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Found 76 segments to delete
ERROR   server  comment 2020-06-02  09:23:49    -   -   -   -   -   4325.934    -   -   -   -   -   -   -   -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Send media segment. rendition: AUDIOVIDEO chunkId:77 uri:pdmekxw9/media_77.aac result:FAILURE

因此,HLS Push Publishing 正在发送块......但没有成功

我已阅读https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming但我不知道我可以更改哪些值。

我究竟做错了什么?有任何想法吗?

编辑:更多日志

2020-06-02  14:32:39    UTC comment server  INFO    200 -   PushPublishHTTPCupertinoHTTPHandler.createOutputItem([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) chunkCount:10, chunkStartIndex:201, lastChunkIndex:209   -   -   -22856.082  -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  INFO    200 -   PushPublishHTTPCupertinoHTTPHandler.createOutputItem([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) playlistChunkCount:3, playlistChunkStartIndex:208    -   -   -   22856.082   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  INFO    200 -   PushPublishHTTPCupertinoHTTPHandler.createOutputItem([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) New chunk: chunkRendition:AUDIOVIDEO, chunkId:210, chunkIndex:2  -   --  22856.082   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  INFO    200 -   PushPublishHTTPCupertinoHTTPHandler.createOutputItem([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Marking MediaSegmentModel: pcnod08j/media_207.aac for deletion   -   --  22856.083   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  WARN    200 -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Found 32 segments to send  -   -   -   22856.083   -   -   --  -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  WARN    200 -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Found 29 segments to delete    -   -   -   22856.083   -   --  -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
2020-06-02  14:32:39    UTC comment server  ERROR   500 -   PushPublishHTTPCupertinoHTTPHandler.outputSend([MediaPackage] TV/_definst_/MediaPackage->MediaPackageStream) Send media segment. rendition: AUDIOVIDEO chunkId:208 uri:pcnod08j/media_208.aac result:FAILURE    -   -   -   22856.097
4

0 回答 0