Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/149.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ IP摄像头RTSP中缺少MP3标头_C++_Opencv_Rtsp - Fatal编程技术网

C++ IP摄像头RTSP中缺少MP3标头

C++ IP摄像头RTSP中缺少MP3标头,c++,opencv,rtsp,C++,Opencv,Rtsp,我只想在没有声音的情况下显示IP摄像头视频,但此摄像头播放有声音的视频,控制台中缺少[mp3@0x107808800]标题。没有声音我怎么演奏?我用的是vstarcam-30s。这是我的密码: int main (int argc, char *argv[]) { VideoCapture vcap; Mat image; string videoStreamAddress = "rtsp://[IPADDRESS]/profile2/

我只想在没有声音的情况下显示IP摄像头视频,但此摄像头播放有声音的视频,控制台中缺少
[mp3@0x107808800]标题。没有声音我怎么演奏?我用的是vstarcam-30s。这是我的密码:

int main (int argc, char *argv[]) 
{ 
     VideoCapture vcap; 
     Mat image; 

     string videoStreamAddress =
          "rtsp://[IPADDRESS]/profile2/media.smp";

      if (!vcap.open(videoStreamAddress)) { 
           cout << "Error opening video stream or file" << endl; 
           return -1; 
      } 

 for(;;) { 
      if(!vcap.read(image)) { 
           cout << "No frame" << endl; 
           waitKey(); 
         } 
          imshow("Output Window", image); 
          if(waitKey(1) >= 0) break; 
      } 
     return 0;
}
intmain(intargc,char*argv[])
{ 
视频捕获vcap;
Mat图像;
字符串视频流地址=
“rtsp://[IPADDRESS]/profile2/media.smp”;
如果(!vcap.open(videoStreamAddress)){
库特