microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.79k stars 4.89k forks source link

AVSSAMP example not working #1077

Open shiqifeng2000 opened 6 months ago

shiqifeng2000 commented 6 months ago

hi, thanks for these samples, I would like to create a virtual camera with both video & audio, and perhaps some decoding functions

avshws working for me but got no sound, then I try avssamp. it builds successfuly, but not working.

I am using win11, got windows driver kit 10 installed, and have the cer file registered to root after that i tried:

  1. using hdwwiz, after choosing inf file, got no option to continue 1090864483

  2. try using devcon to register, it succeed, but unable to play

1066560444

1452378375

i created a avssamp.wav with my ffmpeg using pcm16le format, 1 channel, 44100hz, im sure it's valid

343203343

could you let me know if anything I config wrong

ColorfulDick commented 1 month ago

我也遇到了这个问题,驱动成功编译并安装,也能进行测试,测试时每次显示的音量都是固定的百分之五十,而不是像正常的音频设备驱动那样是会跳动的音量;测试时听不到任何声音

shiqifeng2000 commented 1 month ago

我也遇到了这个问题,驱动成功编译并安装,也能进行测试,测试时每次显示的音量都是固定的百分之五十,而不是像正常的音频设备驱动那样是会跳动的音量;测试时听不到任何声音

avshws好用,avssamp就不行,很奇怪,filter模式就是不行嘛,是版本问题嘛,也没有官方人来回答下 :(

ColorfulDick commented 1 month ago

t

老哥,avssamp是摄像头的吗?我本来找了个模型想实现一个基于虚拟摄像头实时更换背景的功能,编译安装了avscamera以后,在“设备管理器”里面也没有看到相应的设备;不知道是缺了哪一步

shiqifeng2000 commented 1 month ago

t

老哥,avssamp是摄像头的吗?我本来找了个模型想实现一个基于虚拟摄像头实时更换背景的功能,编译安装了avscamera以后,在“设备管理器”里面也没有看到相应的设备;不知道是缺了哪一步

avssamp是虚拟音频,但是也有视频的pin,有3个分类KSCATEGORY_VIDEO,KSCATEGORY_CAPTURE, KSCATEGORY_AUDIO。而avshws是虚拟视频,有3个分类KSCATEGORY_VIDEO,KSCATEGORY_CAPTURE,KSCATEGORY_VIDEO_CAMERA