C++ IP摄像头RTSP中缺少MP3标头
我只想在没有声音的情况下显示IP摄像头视频,但此摄像头播放有声音的视频,控制台中缺少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/
[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)){
库特