mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 355|reply: 2
打印 prevThread nextThread

使用bvcu打开pu视频时,提示打开视频失败,错误码:65529

[copyURL]

22

主题

55

帖子

216

积分

midMem

Rank: 3Rank: 3

积分
216
jumpTo
owner
poston 2023-4-17 17:47 | authorOnly 回帖奖励 |倒序浏览 |阅读模式

平台版本:SmartEye-E
使用语言C++

现象:
平台使用SmartEye-E版本,客户端使用C++调用bvcu的SDK 打开mpu视频时,提示打开视频失败,错误码:65529,音频使用的G711A、视频使用H264和H265;
但平台使用smarteye-D时是调用是正常的

请问可能是什么原因导致?
reply

使用道具 report

1

主题

580

帖子

2001

积分

vipMem

Rank: 6Rank: 6

积分
2001
sofa
poston 2023-4-18 09:26 | authorOnly
bvcu SDP 是通过什么途径获取的呢?
用我们的smarteye CS客户端能否打开视频?
65529是端口不通错误,可以用CS客户端对比测试。
reply agree Against

使用道具 report

22

主题

55

帖子

216

积分

midMem

Rank: 3Rank: 3

积分
216
bench
 Owner| poston 2023-4-19 22:41 | authorOnly
fanghj90 post on2023-4-18 09:26
bvcu SDP 是通过什么途径获取的呢?
用我们的smarteye CS客户端能否打开视频?
65529是端口不通错误,可 ...

之前对接的smarteye-d版本,使用的是下面这段代码:

if (!BVCU_Result_SUCCEEDED(m_loginStatus)){
                return BVCU_RESULT_E_FAILED;
        }

        MPUChannelInfo puInfo;
        ZeroMemory(&puInfo, sizeof(puInfo));
        if (strcmp(type, "data") == 0){
                int result = m_data.GetPu(puId, &puInfo);
                if (BVCU_Result_FAILED(result))
                {
                        wchar_t buf[128];
                        wsprintf(buf, _T("m_data.GetPu result:%d \r\n"), result);
                        OutputDebugStringW(buf);
                        return result;
                }
        }
        else if (strcmp(type, "4G") == 0){
                int result = m_data.Get4GPu(puId, &puInfo);
                if (BVCU_Result_FAILED(result))
                {
                        wchar_t buf[128];
                        wsprintf(buf, _T("m_data.Get4GPu result:%d \r\n"), result);
                        OutputDebugStringW(buf);
                        return result;
                }
        }
        OpenInfo openInfo;
        ZeroMemory(&openInfo, sizeof(openInfo));
        openInfo.wnd = hwnd;
        strncpy_s(openInfo.sPUID, BVCU_MAX_ID_LEN + 1, puInfo.szPUID, _TRUNCATE);

        RECT rect;
        bool res = ::GetWindowRect(hwnd, &rect);       
        BVCU_Display_Rect dispRect;
        dispRect.iBottom = rect.bottom;
        dispRect.iLeft = rect.left;
        dispRect.iRight = rect.right;
        dispRect.iTop = rect.top;

        // 查找video或者4G模块的通道号
        if (strcmp(puInfo.pChannel[0].szName, "video") == 0 || strcmp(puInfo.pChannel[0].szName, "channel1") == 0)
        {
                for (int i = 0; i < puInfo.iChannelCount; i++){
                        //
                        // 10 代表单向视频回传
                        int result = CMLibBVCU::Browse(&openInfo.pDialog, puId, puInfo.pChannel.iChannelIndex, 10, hwnd, &dispRect);
                        if (BVCU_Result_SUCCEEDED(result)){
                                // 管理起来
                                m_openList.push_back(openInfo);
                        }
                        wchar_t buf[128];
                        wsprintf(buf, _T("CMLibBVCU::Browse result:%d \r\n"), result);
                        OutputDebugStringW(buf);
                        return result;
                }
        }
        else if (strcmp(Utf8ToGbk(puInfo.pChannel[0].szName).c_str(), "通道1") == 0){
                for (int i = 0; i < puInfo.iChannelCount; i++){
                        //
                        // 8 代表单向音频回传
                        int result = CMLibBVCU::Browse(&openInfo.pDialog, puId, puInfo.pChannel.iChannelIndex, 8, hwnd, &dispRect);
                        if (BVCU_Result_SUCCEEDED(result)){
                                // 管理起来
                                m_openList.push_back(openInfo);
                        }
                        wchar_t buf[128];
                        wsprintf(buf, _T("CMLibBVCU::Browse result:%d \r\n"), result);
                        OutputDebugStringW(buf);
                        return result;
                }
        }
        return BVCU_RESULT_E_FAILED;

对比现在最新的SDK好像流程有点不一样,能否指点一下?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-6 22:58 , Processed in 0.054690 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList