1

私は奇妙な状況に陥っています。このチュートリアルを使用してストリーミング サーバーを構成しようとしていますが、残念ながら成功しません。現在、最新バージョンの rtmpd サーバー (ビルド番号: 784) を使用しており、ここで見つけることができます。チュートリアルの指示に従ってインストールしました。これまでのところ問題はありませんが、フロープレーヤーの例でサーバーをテストできないことが問題です。

構成ファイル:

configuration=
{
  daemon=false,
  pathSeparator="/",
  logAppenders=
  {
      {
          name="console appender",
          type="coloredConsole",
          level=6
      },
      {
          name="file appender",
          type="file",
          level=6,
          fileName="/opt/crtmpserver/logs/crtmpserver.log",
      }
  },

  applications=
  {
      rootDirectory="applications",
      {
          description="FLV Playback",
          name="flvplayback",
          protocol="dynamiclinklibrary",
          default=true,
          aliases=
          {
              "simpleLive",
              "vod",
              "live",
              "WeeklyQuest",
              "SOSample",
              "oflaDemo",
          },
          acceptors =
          {
              {
                  ip="0.0.0.0",
                  port=1935,
                  protocol="inboundRtmp"
              },
              {
                  ip="0.0.0.0",
                  port=6666,
                  protocol="inboundLiveFlv",
                  waitForMetadata=true,
              },
              {
                  ip="0.0.0.0",
                  port=9999,
                  protocol="inboundTcpTs"
              },
          },

          externalStreams =
          {
              {
                  uri="rtsp://user:pass@link-to-stream",
                  localStreamName="pidg",
                  forceTcp=true,
              },
          },
          validateHandshake=true,
          keyframeSeek=true,
          seekGranularity=1.5, --in seconds, between 0.1 and 600
          clientSideBuffer=12, --in seconds, between 5 and 30
          --generateMetaFiles=true, --this will generate seek/meta files on application startup
          --renameBadFiles=false,
      mediaFolder="/opt/crtmpserver/media"
      },
  }
}

rtsp ストリームへのリンクは動作し、ffplay と vlc でテストされています。

エラー

ストリームに接続しようとすると、次のようになります。

/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 3->4 IOHT_TCP_CARRIER
/thelib/src/netio/epoll/tcpacceptor.cpp:185 Client connected: 127.0.0.1:50947 -> 127.0.0.1:1935
/thelib/src/application/baseclientapplication.cpp:257 Stream NR(1) with name `` registered to application `flvplayback` from protocol IR(4)
/thelib/src/application/baseclientapplication.cpp:268 Stream NR(1) with name `` unregistered from application `flvplayback` from protocol IR(4)
/thelib/src/application/baseclientapplication.cpp:257 Stream NR(2) with name `` registered to application `flvplayback` from protocol IR(4)
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1043 Play request for stream name `pidg`. Start: -2; length: -1
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:2164 No live streams found: `pidg` or `pidg`
/thelib/src/mediaformats/readers/streammetadataresolver.cpp:207 Stream name pidg not found in any storage
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1075 We are going to wait for the live stream `pidg`
/thelib/src/application/baseclientapplication.cpp:268 Stream NR(2) with name `` unregistered from application `flvplayback` from protocol IR(4)
/thelib/src/application/baseclientapplication.cpp:257 Stream ONR4R(3) with name `pidg` registered to application `flvplayback` from protocol IR(4)

フロープレイヤー

コードは次のとおりです。

<script>
$f("rtmp_player", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
        clip: {
               url : 'pidg',
               live : true,
               provider: 'rtmp',
              },

        plugins: {
               rtmp: {
               url: 'flowplayer.rtmp-3.2.13.swf',
               netConnectionUrl: 'rtmp://127.0.0.1/flvplayback' ,
                       subscribe:true,

                }
              }
            });
</script>

この時点でストリームを共有できないため、チュートリアルと同じように作成しようとしました。

自分で解決しようとしてかなりの時間を失ってしまったので、助けてもらえますか?

編集:

いくつかのテストの後、問題はサーバーが外部ストリームをストリーミングしないことであることがわかりました!

4

1 に答える 1