文件名称:CapScreenAndAudio
介绍说明--下载内容均来自于网络,请自行研究使用
1,经过改良的版本,工作少故障
2,完成对视频和音频一起采集,并生成MP4文件
3,在打开audio失败的情况,这个就要用ffmpeg命令行输入ffmpeg -list_devices true -f dshow -i dummy这个参数,可以看到本机的audio名称,
[dshow @ 00377b60] DirectShow audio devices
[dshow @ 00377b60] "FrontMic (Realtek High Definition Audio)",然后替换代码里面的dup_wchar_to_utf8(L"audio=FrontMic (Realtek High Definition Audio)");字符串即可(The improved version has fewer breakdowns)
2,完成对视频和音频一起采集,并生成MP4文件
3,在打开audio失败的情况,这个就要用ffmpeg命令行输入ffmpeg -list_devices true -f dshow -i dummy这个参数,可以看到本机的audio名称,
[dshow @ 00377b60] DirectShow audio devices
[dshow @ 00377b60] "FrontMic (Realtek High Definition Audio)",然后替换代码里面的dup_wchar_to_utf8(L"audio=FrontMic (Realtek High Definition Audio)");字符串即可(The improved version has fewer breakdowns)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CapScreenAndAudio\CapScreenAndAudio\avcodec-55.dll
CapScreenAndAudio\CapScreenAndAudio\avdevice-55.dll
CapScreenAndAudio\CapScreenAndAudio\avfilter-4.dll
CapScreenAndAudio\CapScreenAndAudio\avformat-55.dll
CapScreenAndAudio\CapScreenAndAudio\avutil-52.dll
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.cpp
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj.filters
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj.user
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CapScreenAndAudio.lastbuildstate
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CL.read.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CL.write.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\link.read.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\link.write.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.Build.CppClean.log
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.lastbuildstate
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.log
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.obj
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.pch
CapScreenAndAudio\CapScreenAndAudio\Debug\stdafx.obj
CapScreenAndAudio\CapScreenAndAudio\Debug\vc120.idb
CapScreenAndAudio\CapScreenAndAudio\Debug\vc120.pdb
CapScreenAndAudio\CapScreenAndAudio\include\inttypes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\avcodec.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\avfft.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\dxva2.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\old_codec_ids.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vaapi.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vda.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vdpau.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\xvmc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavdevice\avdevice.h
CapScreenAndAudio\CapScreenAndAudio\include\libavdevice\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\asrc_abuffer.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avcodec.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avfilter.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avfiltergraph.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\buffersink.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\buffersrc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\avformat.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\avio.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\adler32.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\aes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\attributes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\audioconvert.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\audio_fifo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avassert.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avconfig.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avstring.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avutil.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\base64.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\blowfish.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\bprint.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\bswap.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\buffer.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\channel_layout.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\common.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\cpu.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\crc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\dict.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\downmix_info.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\error.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\eval.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\ffversion.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\fifo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\file.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\frame.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\hmac.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\imgutils.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intfloat.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intfloat_readwrite.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intreadwrite.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\lfg.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\log.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\lzo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\macros.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\mathematics.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\md5.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\mem.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\murmur3.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\old_pix_fmts.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\opt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\parseutils.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\pixdesc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\pixfmt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\random_seed.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\rational.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\replaygain.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\ripemd.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\samplefmt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\sha.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\sha512.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\stereo3d.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\time.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\timecode.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\timestamp.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\version.h
CapScreenAndAudio\CapScreenAndAudio\avdevice-55.dll
CapScreenAndAudio\CapScreenAndAudio\avfilter-4.dll
CapScreenAndAudio\CapScreenAndAudio\avformat-55.dll
CapScreenAndAudio\CapScreenAndAudio\avutil-52.dll
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.cpp
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj.filters
CapScreenAndAudio\CapScreenAndAudio\CapScreenAndAudio.vcxproj.user
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CapScreenAndAudio.lastbuildstate
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CL.read.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\CL.write.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\link.read.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScree.31B5477C.tlog\link.write.1.tlog
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.Build.CppClean.log
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.lastbuildstate
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.log
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.obj
CapScreenAndAudio\CapScreenAndAudio\Debug\CapScreenAndAudio.pch
CapScreenAndAudio\CapScreenAndAudio\Debug\stdafx.obj
CapScreenAndAudio\CapScreenAndAudio\Debug\vc120.idb
CapScreenAndAudio\CapScreenAndAudio\Debug\vc120.pdb
CapScreenAndAudio\CapScreenAndAudio\include\inttypes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\avcodec.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\avfft.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\dxva2.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\old_codec_ids.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vaapi.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vda.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\vdpau.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavcodec\xvmc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavdevice\avdevice.h
CapScreenAndAudio\CapScreenAndAudio\include\libavdevice\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\asrc_abuffer.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avcodec.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avfilter.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\avfiltergraph.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\buffersink.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\buffersrc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavfilter\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\avformat.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\avio.h
CapScreenAndAudio\CapScreenAndAudio\include\libavformat\version.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\adler32.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\aes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\attributes.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\audioconvert.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\audio_fifo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avassert.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avconfig.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avstring.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\avutil.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\base64.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\blowfish.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\bprint.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\bswap.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\buffer.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\channel_layout.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\common.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\cpu.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\crc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\dict.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\downmix_info.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\error.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\eval.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\ffversion.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\fifo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\file.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\frame.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\hmac.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\imgutils.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intfloat.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intfloat_readwrite.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\intreadwrite.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\lfg.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\log.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\lzo.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\macros.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\mathematics.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\md5.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\mem.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\murmur3.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\old_pix_fmts.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\opt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\parseutils.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\pixdesc.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\pixfmt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\random_seed.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\rational.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\replaygain.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\ripemd.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\samplefmt.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\sha.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\sha512.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\stereo3d.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\time.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\timecode.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\timestamp.h
CapScreenAndAudio\CapScreenAndAudio\include\libavutil\version.h