• 会员登陆 | 会员注册
  • 返回首页

    远程音视频(摄像头、麦克风)监控(amcc!远程监控摄像头 ap)mms流

    时间:2014-09-09 20:57来源:貌似不远 作者:设计师成劼 点击:
    Start(); system("pause"); InitCapture(); IsVideo(); void main() return 0; else return 1; pEncoder = NULL; pEncoder-Release(); if ( pEncoder ) pPro = NULL; pPro-Release(); if ( pPro ) pProColl = NULL; pProColl-Release(); if ( pProColl ) pSr
      

       Start();

    system("pause");

    InitCapture();

    IsVideo();

    void main()

    return 0;

    else

    return 1;

    pEncoder = NULL;

    pEncoder->Release();

    if ( pEncoder )

    pPro = NULL;

    pPro->Release();

    if ( pPro )

    pProColl = NULL;

    pProColl->Release();

    if ( pProColl )

    pSrcVid = NULL;

    pSrcVid->Release();

    if ( pSrcVid )

    pSrcAud = NULL;

    pSrcAud->Release();

    if ( pSrcAud )

    pSrcGrp = NULL;

    pSrcGrp->Release();

    if ( pSrcGrp )

    pSrcGrpColl = NULL;

    pSrcGrpColl->Release();

    if ( pSrcGrpColl )

    if ( SUCCEEDED(pEncoder->Stop()) )

    int Stop()

    听学习夫妻成长日记说远程监控摄像头停止编码

    return 0;

    return 1;

    if( SUCCEEDED(pEncoder->Start()) )

    int Start()

    开始编码

    return 1;

    hr = pSrcGrp->put_Profile(CComVariant(pPro));

    if ( SUCCEEDED( hr ) )

    听听流媒体

    hr = pProColl->Item(4, &pPro);

    if ( SUCCEEDED( hr ) )

    hr = pEncoder->get_ProfileCollection(&pProColl);

    if ( SUCCEEDED( hr ) )

    // Select the 5th profile from the collection and set it intoap)mms流媒体 the source group.

    hr = pBrdCst->put_Por装监控摄像头多少钱tNumber(WMENC_PROTOCOL_HTTP, 1225);

    if ( SUCCEEDED( hr ) )

    hr = pEncoder->get_Broadcast(&pBrdCst);

    if ( SUCCEEDED( hr ) )

    // Specify the output.

    hr = pSrcAud->SetInput(CComBSTR("Device://default_audio_device"));

    if ( SUCCEEDED( hr ) )

    视频监控系统

    hr = pSrcVid->SetInput(CComBSTR("Device://default_video_device"));

    if ( SUCCEEDED( hr ) )

    // Specify the sources.

    摄像头 hr = pSrcGrp->AddSource(WMENC_AUDIO, &pSrcAud);

    if ( SUCCEEDED( hr ) )

    hr = pSrcGrp->AddSource(WMENC_VIDEO, &pSrcVid);

    if ( SUCCEEDED( hr ) )

    // Add a video source and an audio source.

    hr = pSrcGrpColl->Add(CComBSTR("SG_1"), &pSrcGrp);

    if ( SUCCEEDED( hr ) )

    // Add a source group to the collection.

    hr = pEncoder->get_SourceGroupCollection(&pSrcGrpColl);

    if ( SUCCEEDED( hr ) )

    // Retrieve a pointer to an IWMEncSourceGroupCollection interface.

    (void**) &pEncoder

    IID_IWMEncoder2,

    CLSCTX_INPROC_SERVER,

    NULL,

    hr = CoCreateInstance(CLSID_WMEncoder,

    int InitCapture()

    return IsC;

    pPlugInfo = NULL;

    pPlugInfo->Release();

    if ( pPlugInfo )

    pDCPlugMgr = NULL;

    pDCPlugMgr->Release();

    if ( pDCPlugMgr )

    pSrcPlugMgr = NULL;

    pSrcPlugMgr->Release();

    if ( pSrcPlugMgr )

    // Release pointers.

    IsC = true;//对比一下远程监控摄像头判断是否有视频捕获设备

    if(sName == CComBSTR("Default_Video_Device"))

    hr = pPlugInfo->Item(j, &sName);

    if ( SUCCEEDED( hr ) )

    //

    远程监控摄像头远程音视频(摄像头、麦克风)监控(amcc!远程监控摄像头 ap)mms流媒体

    看着远程找到设备名称并添加到sName中

    for (j = 0; j < lResrcCount; j++)

    hr = pPlugInfo->get_Count(&lResrcCount);

    if ( SUCCEEDED( hr ) )

    // 远程监控摄像头循环找出资源

    if (bResources==VARIANT_TRUE)

    hr = pPlugInfo->get_Resources(&bResources);

    if ( SUCCEEDED( hr ) )

    // 看看远程音视频(摄像头、麦克风)监控(amcc找出设备

    if (_wcsicmp(sScheme, CComBSTR("DEVICE"))==0)

    hr = pPlugInfo->get_SchemeType(&sScheme);

    if ( SUCCEEDED( hr ) )

    // Find the plug-ins that support resources.

    hr = pSrcPlugMgr->Item(i, &pPlugInfo);

    if ( SUCCEEDED( hr ) )

    // Set the IWMEncPluginInfo object to the current plug-in.

    for (i = 0; i < lCount; i++)

    hr = pSrcPlugMgr->get_Count(&lCount);

    if ( SUCCEEDED( hr ) )

    //想知道视频监控方案循环找出音频和视频设备

    hr = pEncoder->get_DeviceControlPluginInfoManager(&pDCPlugMgr);

    if ( SUCCEEDED( hr ) )

    hr = pEncoder->get_SourcePluginInfoManager(&pSrcPlugMgr);

    if ( SUCCEEDED( hr ) )

    //其实音视频从IWMEncoder中找回源和设备信息管理的目标

    (void**) &pEncoder);

    IID_IWMEncoder2,

    CLSCTX_INPROC_SERVER,

    NULL,

    hr = CoCreateInstance(CLSID_WMEncoder,

    if ( SUCCEEDED( hr ) )

    hr = CoInitialize(NULL);

    // 手机视频监控初始化COM让其指向一个IWMEncoder接口

    VARIANT_BOOL bResources;

    CComBSTR sName;

    CComBSTR sScheme;

    long lResrcCount;

    long lCount;

    bool IsC = false;

    int j;

    int i;

    IWMEncPluginInfo* pPlugInfo;

    IWMEncDeviceControlPluginInfoManager* pDCPlugMgr;

    IWMEncSourcePluginInfoManager* pSrcPlugMgr;

    bool IsVideo()

    IWMEncBroadcast* pBrdCst;

    IWMEncProfile* pPro;

    IWMEncProfileCollection* pProColl;

    IWMEncSource* pSrcVid;

    IWMEncSource* pSrcAud;

    IWMEncSourceGroup* pSrcGrp;

    IWMEncSourceGroupCollection* pSrcGrpColl;

    IWMEncoder2 *pEncoder; //学会视频监控软件编码器对象

    HRESULT hr;

    #include "wmencvu.h"

    #include "wmencode.h"

    #include <atlbase.h>

    #include <windows.h>


    事实上视频监控方案监控
    amcc
    远程监控摄像头
    想知道远程音视频(摄像头、麦克风)监控(amcc
    摄像头
    视频监控系统
    mms
    听听ap视频监控系统
    学会视频监控方案
    对比一下ap)mms流媒体
    监控
    远程
    视频监控事实上远程视频监控软件
    麦克风
    相比看视频监控方案
    顶一下
    (0)
    0%
    踩一下
    (0)
    0%
    ------分隔线----------------------------
    最新评论 查看所有评论
    发表评论 查看所有评论
    请自觉遵守互联网相关的政策法规,严禁发布违法言论!
    用户名: 密码: 验证码:
    关于我们 | 服务条款 |广告联系广告联系 | |