FFmpeg4.0笔记:采集系统声音
Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff // 采集系统声音 void test_systemsound() { bool ret = false; std::string err; CDemux demux; CDecode decode; ret = demux.device_register_all(err); TESTCHECKRET(ret); ret = demux.set_input_format("dshow", err); //采集声卡 TESTCHECKRET(ret); ret = demux.set_dic_opt("framerate", "15", err); TESTCHECKRET(ret); ret = demux.set_demux_callback(DemuxSystemSoundCB, &decode, err); TESTCHECKRET(ret); ret = demux.set_demux_status_callback(DemuxStatusCB, &demux, err); TESTCHECKRET(ret); ret = demux.set_input("audio=virtual-audio-capturer", err);