2017-11-13 18 views
0

私はonvif対応カメラから現在のビデオ解像度を取得しようとしていますGetVideoOutputsを使用しています。私はPHPスクリプトでこの実装を実行すると、私は次のエラーを取得しています: -onvifを使用してカメラから解像度を取得

Array 
(
[Envelope] => Array 
    (
     [Header] => Array 
      (
      ) 

     [Body] => Array 
      (
       [Fault] => Array 
        (
         [@attributes] => Array 
          (
           [encodingStyle] => http://www.w3.org/2003/05/soap-encoding 
          ) 

         [Code] => Array 
          (
           [Value] => SOAP-ENV:Receiver 
           [Subcode] => Array 
            (
             [Value] => ter:Action 
            ) 

          ) 

         [Reason] => Array 
          (
           [Text] => Action failed 
          ) 

         [Detail] => Array 
          (
           [Text] => The requested SOAP action failed 
          ) 

        ) 

      ) 

    ) 

) 
+0

あなたが私たちに示すのは、配列ダンプの一般的で説明的ではないエラーメッセージです。これについて何をすべきか?なぜ「要求されたSOAPアクションが失敗したか」を調べる必要があります – Gordon

答えて

1

ストリーミング用のビデオ解像度が利用可能に取得するには、デバイスからのI/OサービスをGetVideoOutputsを使用することは間違っています。あなたが§5.1.1 of the Device I/O specsで見ることができるように

This command lists all available video outputs of a device. A device that has one or more physical video outputs shall support listing of available video outputs through the GetVideoOutputs command.

は、あなたが使用しなければならないビデオ解像度を取得するには:お使いのカメラがプロファイルSに準拠している場合 Media Service、§5.5
  • 参照

    • Media Service 2カメラがProfile Tに準拠している場合は、5.2.3項を参照してください。今のところ、このプロファイルはまだリリースされていないので、これがあなたのケースである可能性は非常に低いです。
  • 関連する問題