iphone导出视频出错(连接到系统上的设备没有发挥作用)

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/nju_zjy/article/details/89330009

在将视频从iphone等设备拷贝至PC时部分视频出现错误:连接到系统上的设备没有发挥作用
错误原因:iphone的视频压缩功能
解决方法:更改iphone的设置
设置-照片-传输到MAC或PC 将其更改为 “保留原始照片”

展开阅读全文

求助,用directshow进行摄像头操作,提示连接到系统上的设备没有发挥作用

06-24

用directshow操作摄像头,当摄像头数量超过5个的时候提示连接到系统上的设备没有发挥作用,4个的时候都可以正常工作rn代码是用的是directshow的samples改的rn如下rnrnrnrn int hr;rnrn ISampleGrabber sampGrabber = null;rn IBaseFilter capFilter = null;rn IPin pCaptureOut = null;rn IPin pSampleIn = null;rn IPin pRenderIn = null;rnrn // Get the graphbuilder objectrn m_FilterGraph = new FilterGraph() as IFilterGraph2;rnrn tryrn rn#if DEBUGrn m_rot = new DsROTEntry(m_FilterGraph);rn#endifrn // add the video input devicern hr = m_FilterGraph.AddSourceFilterForMoniker(dev.Mon, null, dev.Name, out capFilter);rn DsError.ThrowExceptionForHR(hr);rnrn // Find the still pinrn m_pinStill = DsFindPin.ByCategory(capFilter, PinCategory.Still, 0);rnrn // Didn't find one. Is there a preview pin?rn if (m_pinStill == null)rn rn m_pinStill = DsFindPin.ByCategory(capFilter, PinCategory.Preview, 0);rn rnrn // Still haven't found one. Need to put a splitter in so we havern // one stream to capture the bitmap from, and one to display. Ok, wern // don't *have* to do it that way, but we are going to anyway.rn if (m_pinStill == null)rn rn IPin pRaw = null;rn IPin pSmart = null;rnrn // There is no still pinrn m_VidControl = null;rnrn // Add a splitterrn IBaseFilter iSmartTee = (IBaseFilter)new SmartTee();rnrn tryrn rn hr = m_FilterGraph.AddFilter(iSmartTee, "SmartTee");rn DsError.ThrowExceptionForHR(hr);rnrn // Find the find the capture pin from the video device and thern // input pin for the splitter, and connnect themrn pRaw = DsFindPin.ByCategory(capFilter, PinCategory.Capture, 0);rn pSmart = DsFindPin.ByDirection(iSmartTee, PinDirection.Input, 0);rnrn hr = m_FilterGraph.Connect(pRaw, pSmart);rn DsError.ThrowExceptionForHR(hr);rnrn // Now set the capture and still pins (from the splitter)rn m_pinStill = DsFindPin.ByName(iSmartTee, "Preview");rn pCaptureOut = DsFindPin.ByName(iSmartTee, "Capture");rnrn // If any of the default config items are set, perform the configrn // on the actual video device (rather than the splitter)rn if (iHeight + iWidth + iBPP > 0)rn rn // SetConfigParms(pRaw, iWidth, iHeight, iBPP);rn rn rn finallyrn rn if (pRaw != null)rn rn Marshal.ReleaseComObject(pRaw);rn rn if (pRaw != pSmart)rn rn Marshal.ReleaseComObject(pSmart);rn rn if (pRaw != iSmartTee)rn rn Marshal.ReleaseComObject(iSmartTee);rn rn rn rn elsern rn // Get a control pointer (used in Click())rn m_VidControl = capFilter as IAMVideoControl;rnrn pCaptureOut = DsFindPin.ByCategory(capFilter, PinCategory.Capture, 0);rnrn // If any of the default config items are setrn if (iHeight + iWidth + iBPP > 0)rn rn SetConfigParms(m_pinStill, iWidth, iHeight, iBPP);rn rn rnrn // Get the SampleGrabber interfacern sampGrabber = new SampleGrabber() as ISampleGrabber;rnrn // Configure the sample grabberrn IBaseFilter baseGrabFlt = sampGrabber as IBaseFilter;rn ConfigureSampleGrabber(sampGrabber);rn pSampleIn = DsFindPin.ByDirection(baseGrabFlt, PinDirection.Input, 0);rnrn // Get the default video rendererrn IBaseFilter pRenderer = new VideoRendererDefault() as IBaseFilter;rn hr = m_FilterGraph.AddFilter(pRenderer, "Renderer");rn DsError.ThrowExceptionForHR(hr);rnrn pRenderIn = DsFindPin.ByDirection(pRenderer, PinDirection.Input, 0);rnrn // Add the sample grabber to the graphrn hr = m_FilterGraph.AddFilter(baseGrabFlt, "Ds.NET Grabber");rn DsError.ThrowExceptionForHR(hr);rnrn if (m_VidControl == null)rn rn // Connect the Still pin to the sample grabberrn hr = m_FilterGraph.Connect(m_pinStill, pSampleIn);rn DsError.ThrowExceptionForHR(hr);rnrn // Connect the capture pin to the rendererrn hr = m_FilterGraph.Connect(pCaptureOut, pRenderIn);rn DsError.ThrowExceptionForHR(hr);rn rn elsern rn // Connect the capture pin to the rendererrn hr = m_FilterGraph.Connect(pCaptureOut, pRenderIn);rn DsError.ThrowExceptionForHR(hr);rnrn // Connect the Still pin to the sample grabberrn hr = m_FilterGraph.Connect(m_pinStill, pSampleIn);rn DsError.ThrowExceptionForHR(hr);rn rnrn // Learn the video propertiesrn SaveSizeInfo(sampGrabber);rn ConfigVideoWindow(hControl);rnrn // Start the graphrn IMediaControl mediaCtrl = m_FilterGraph as IMediaControl;rn hr = mediaCtrl.Run();rn DsError.ThrowExceptionForHR(hr);rn rnrnrnrnrnhr = mediaCtrl.Run();当跑到这步的时候就报示连接到系统上的设备没有发挥作用rn 论坛

win7内核修改后产生 连接到系统上的设备发挥作用 与 不支持此接口. 高分

12-16

如题:rn win7内核修改后产生 连接到系统上的设备未发挥作用 与 不支持此接口???rn 求助高分rn问题详情如下:rn[code=c]rn// 问题详情如下:rn// 1: win7 64位系统rn// 2: 经过驱动进入内核后勾住了一此内核程序,详细见下面rn// 3: 一开始进入系统后,一切尚可rn// 4: 开机运行1、2、3天后就产生了错误rn// 错误1: 点击开始,上面应该显示的条目如 "计算机" "控制面板" 等没有显示rn// 错误2: 刷新下桌面,则桌面上只有刚安装好系统的时候的图标,而在使用过程中拉上来的图标则没有rn// 错误3: 点击桌面上的图标如 "计算机",无动作rn// 错误4: 右键->启动任务管理器,出现提示窗口:不支持此接口rn// 错误5: 运行regedit(好像是运行这个吧),出现提示窗口:c:\windows\system32\msdt.exe 连接在系统上的设备未发挥作用rn// 错误6: 使用快捷键(自己注册的)去切换桌面到Default无效果rn// 错误7: ctrl+alt+del成功,点击注销后,再进入一切又尚可了rn// 内核后勾住了一此程序详细如下:rn/*rn NtLoadDriver, rn NtQueryValueKey, rn NtEnumerateKey,rn NtEnumerateValueKey,rn NtQueryInformationFile,rn NtSetInformationFile,rn NtDeviceIoControlFile,rn NtQuerySystemInformation,rn NtCreateFile,rn NtOpenFile,rn NtCreateSection,rn NtOpenSection,rn NtCreateNamedPipeFile,rn NtFsControlFile,rn NtCreateMailslotFile,rn NtCreateEvent,rn NtCreateMutant,rn NtCreateSemaphore,rn NtCreateTimer,rn NtCreateThread,rn NtCreateThreadEx,rn NtCreateProcess,rn NtCreateProcessEx,rn NtCreateUserProcess,rn NtQueryVolumeInformationFile,rn NtAlpcSendWaitReceivePort,rn NtOpenProcess,rn NtOpenThread,rn NtQueryInformationProcess,rn NtAddAtom,rn NtMapViewOfSection,rn NtProtectVirtualMemory,rn NtAlpcCreatePort,rn NtCreatePort,rn NtCreateWaitablePort,rn NtConnectPort,rn NtAlpcConnectPort,rn NtCreateToken,rn NtOpenProcessToken,rn NtOpenProcessTokenEx,rn NtOpenThreadToken,rn NtOpenThreadTokenEx,rn NtQueryVirtualMemory,rn NtOpenKey,rn NtOpenKeyEx,rn NtCreateKey,rn NtCreateKeyTransacted,rn NtCreateKeyedEvent,rn NtSetValueKey,rnrn NtUserFindWindowEx,rn NtUserQueryWindow,rn NtUserGetForegroundWindow,rn NtUserBuildHwndList, rn NtUserWindowFromPoint,rn NtOpenClipboard,rn NtChildWindowFromPointEx,rn NtRealChildWindowFromPoint,rn NtUserGetClassName,rn NtUserPostMessage,rn NtUserMessageCall,rn NtUserInternalGetWindowText,rn NtUserSwitchDesktop,rn*/rn[/code] 论坛

没有更多推荐了,返回首页