实例介绍
使用DirectShow采集摄像头并实时进行H264和AAC编码,然后将其封装成MP4,希望对大家有用
【实例截图】
【核心代码】
623cdff9-db33-4abd-bf38-9164f327166d
└── CameraAVEncodeEx
├── AudioSampleGrabber.cpp
├── AudioSampleGrabber.h
├── bin
│ ├── avcodec-55.dll
│ ├── avcodec-56.dll
│ ├── avdevice-55.dll
│ ├── avdevice-56.dll
│ ├── avfilter-3.dll
│ ├── avfilter-4.dll
│ ├── avfilter-5.dll
│ ├── avformat-55.dll
│ ├── avformat-56.dll
│ ├── avutil-52.dll
│ ├── avutil-54.dll
│ ├── CC_API.dll
│ ├── DEVICEIO.dll
│ ├── GetDeviceInfoD.exe
│ ├── libasprintf-0.dll
│ ├── libass-5.dll
│ ├── libassuan-0.dll
│ ├── libatomic-1.dll
│ ├── libbluray-1.dll
│ ├── libbz2-1.dll
│ ├── libcaca++-0.dll
│ ├── libcaca-0.dll
│ ├── libcairo-2.dll
│ ├── libcairo-gobject-2.dll
│ ├── libcairo-script-interpreter-2.dll
│ ├── libcharset-1.dll
│ ├── libcppunit-1-13-0.dll
│ ├── libeay32.dll
│ ├── libexpat-1.dll
│ ├── libfaac-0.dll
│ ├── libfaacd.dll
│ ├── libfaac.dll
│ ├── libfaad-2.dll
│ ├── libffi-6.dll
│ ├── libfontconfig-1.dll
│ ├── libfreetype-6.dll
│ ├── libfribidi-0.dll
│ ├── libgcc_s_dw2-1.dll
│ ├── libgdbm-4.dll
│ ├── libgettextlib-0-19-6.dll
│ ├── libgettextpo-0.dll
│ ├── libgettextsrc-0-19-6.dll
│ ├── libgfortran-3.dll
│ ├── libgif-7.dll
│ ├── libgio-2.0-0.dll
│ ├── libglib-2.0-0.dll
│ ├── libgme.dll
│ ├── libgmodule-2.0-0.dll
│ ├── libgmp-10.dll
│ ├── libgmpxx-4.dll
│ ├── libgnarl-5.dll
│ ├── libgnat-5.dll
│ ├── libgnutls-30.dll
│ ├── libgnutlsxx-28.dll
│ ├── libgobject-2.0-0.dll
│ ├── libgomp-1.dll
│ ├── libgomp-plugin-host_nonshm-1.dll
│ ├── libgpg-error-0.dll
│ ├── libgsm.dll
│ ├── libgthread-2.0-0.dll
│ ├── libharfbuzz-0.dll
│ ├── libharfbuzz-gobject-0.dll
│ ├── libharfbuzz-icu-0.dll
│ ├── libhistory6.dll
│ ├── libhogweed-4-1.dll
│ ├── libiconv-2.dll
│ ├── libidn-11.dll
│ ├── libintl-8.dll
│ ├── libjpeg-8.dll
│ ├── liblcms2-2.dll
│ ├── liblsmash-2.dll
│ ├── liblsmash.dll
│ ├── liblzma-5.dll
│ ├── liblzo2-2.dll
│ ├── libmad-0.dll
│ ├── libmikmod-3.dll
│ ├── libminizip-1.dll
│ ├── libmodplug-1.dll
│ ├── libmp3lame-0.dll
│ ├── libmp4ff-0.dll
│ ├── libnettle-6-1.dll
│ ├── libobjc-4.dll
│ ├── libogg-0.dll
│ ├── libopencore-amrnb-0.dll
│ ├── libopencore-amrwb-0.dll
│ ├── libopenjp2-7.dll
│ ├── libopenjp3d-7.dll
│ ├── libopenjpeg-5.dll
│ ├── libopenjpeg_JPWL.dll
│ ├── libopenjpip-7.dll
│ ├── libopenjpwl-7.dll
│ ├── libopenmj2-7.dll
│ ├── libp11-kit-0.dll
│ ├── libpixman-1-0.dll
│ ├── libpng16-16.dll
│ ├── libpython2.7.dll
│ ├── libquadmath-0.dll
│ ├── libreadline6.dll
│ ├── libSaveHardDisk.dll
│ ├── libSDL_gfx-15.dll
│ ├── libssp-0.dll
│ ├── libstdc++-6.dll
│ ├── libsystre-0.dll
│ ├── libtasn1-6.dll
│ ├── libtermcap-0.dll
│ ├── libtheora-0.dll
│ ├── libtheoradec-1.dll
│ ├── libtheoraenc-1.dll
│ ├── libtiff-5.dll
│ ├── libtiffxx-5.dll
│ ├── libtre-5.dll
│ ├── libturbojpeg-0.dll
│ ├── libvorbis-0.dll
│ ├── libvorbisenc-2.dll
│ ├── libvorbisfile-3.dll
│ ├── libvorbisidec-1.dll
│ ├── libvpx-1.dll
│ ├── libvtv-0.dll
│ ├── libvtv_stubs-0.dll
│ ├── libwebp-6.dll
│ ├── libwebpdecoder-2.dll
│ ├── libwebpdemux-2.dll
│ ├── libwebpmux-2.dll
│ ├── libwinpthread-1.dll
│ ├── libx264-148.dll
│ ├── libx264.dll
│ ├── libxml2-2.dll
│ ├── mfc120.dll
│ ├── mfc120ud.dll
│ ├── mfc120u.dll
│ ├── mfcm120.dll
│ ├── mfcm120u.dll
│ ├── msvcp80d.dll
│ ├── msvcr120d.dll
│ ├── msvcr80d.dll
│ ├── opencv_core2413d.dll
│ ├── opencv_core2413.dll
│ ├── opencv_ffmpeg.dll
│ ├── opencv_highgui2413d.dll
│ ├── opencv_highgui2413.dll
│ ├── postproc-52.dll
│ ├── postproc-53.dll
│ ├── smpeg2.dll
│ ├── smpeg.dll
│ ├── ssleay32.dll
│ ├── swresample-0.dll
│ ├── swresample-1.dll
│ ├── swscale-2.dll
│ ├── swscale-3.dll
│ ├── tcl86.dll
│ ├── tk86.dll
│ ├── xvidcore.dll
│ └── zlib1.dll
├── DShowCaptureToLocal.suo
├── DShowCaptureToLocal.v11.suo
├── GetDeviceInfo.aps
├── GetDeviceInfo.cpp
├── GetDeviceInfoDlg.cpp
├── GetDeviceInfoDlg.h
├── GetDeviceInfo.h
├── GetDeviceInfo.rc
├── GetDeviceInfo.sln
├── GetDeviceInfo.v11.suo
├── GetDeviceInfo.vcxproj
├── GetDeviceInfo.vcxproj.filters
├── include
│ ├── compat
│ │ ├── aix
│ │ │ └── math.h
│ │ ├── avisynth
│ │ │ ├── avisynth_c.h
│ │ │ ├── avs
│ │ │ │ ├── capi.h
│ │ │ │ ├── config.h
│ │ │ │ └── types.h
│ │ │ ├── avxsynth_c.h
│ │ │ └── windowsPorts
│ │ │ ├── basicDataTypeConversions.h
│ │ │ └── windows2linux.h
│ │ ├── float
│ │ │ ├── float.h
│ │ │ └── limits.h
│ │ ├── getopt.c
│ │ ├── msvcrt
│ │ │ ├── snprintf.c
│ │ │ └── snprintf.h
│ │ ├── os2threads.h
│ │ ├── plan9
│ │ │ ├── head
│ │ │ ├── main.c
│ │ │ └── printf
│ │ ├── strtod.c
│ │ ├── tms470
│ │ │ └── math.h
│ │ ├── va_copy.h
│ │ ├── w32pthreads.h
│ │ └── windows
│ │ ├── makedef
│ │ └── mslink
│ ├── DirectShow
│ │ ├── Include
│ │ │ ├── activecf.h
│ │ │ ├── amaudio.h
│ │ │ ├── amparse.h
│ │ │ ├── amstream.h
│ │ │ ├── amva.h
│ │ │ ├── Amvideo.h
│ │ │ ├── atsmedia.h
│ │ │ ├── audevcod.h
│ │ │ ├── austream.h
│ │ │ ├── aviriff.h
│ │ │ ├── basetsd.h
│ │ │ ├── bdaiface.h
│ │ │ ├── bdamedia.h
│ │ │ ├── Bdatif.h
│ │ │ ├── bdatypes.h
│ │ │ ├── comlite.h
│ │ │ ├── control.h
│ │ │ ├── d3d8caps.h
│ │ │ ├── d3d8.h
│ │ │ ├── d3d8types.h
│ │ │ ├── d3d9caps.h
│ │ │ ├── d3d9.h
│ │ │ ├── d3d9types.h
│ │ │ ├── d3dcaps.h
│ │ │ ├── d3d.h
│ │ │ ├── d3drmdef.h
│ │ │ ├── d3drm.h
│ │ │ ├── d3drmobj.h
│ │ │ ├── d3drmwin.h
│ │ │ ├── d3dtypes.h
│ │ │ ├── d3dvec.inl
│ │ │ ├── d3dx8core.h
│ │ │ ├── d3dx8effect.h
│ │ │ ├── d3dx8.h
│ │ │ ├── d3dx8math.h
│ │ │ ├── d3dx8math.inl
│ │ │ ├── d3dx8mesh.h
│ │ │ ├── d3dx8shape.h
│ │ │ ├── d3dx8tex.h
│ │ │ ├── d3dx9anim.h
│ │ │ ├── d3dx9core.h
│ │ │ ├── d3dx9effect.h
│ │ │ ├── d3dx9.h
│ │ │ ├── d3dx9math.h
│ │ │ ├── d3dx9math.inl
│ │ │ ├── d3dx9mesh.h
│ │ │ ├── d3dx9shader.h
│ │ │ ├── d3dx9shape.h
│ │ │ ├── d3dx9tex.h
│ │ │ ├── d3dxcore.h
│ │ │ ├── d3dxerr.h
│ │ │ ├── d3dx.h
│ │ │ ├── d3dxmath.h
│ │ │ ├── d3dxmath.inl
│ │ │ ├── d3dxshapes.h
│ │ │ ├── d3dxsprite.h
│ │ │ ├── ddraw.h
│ │ │ ├── ddstream.h
│ │ │ ├── dinputd.h
│ │ │ ├── dinput.h
│ │ │ ├── dls1.h
│ │ │ ├── dls2.h
│ │ │ ├── dmdls.h
│ │ │ ├── dmerror.h
│ │ │ ├── dmksctrl.h
│ │ │ ├── dmodshow.h
│ │ │ ├── dmo.h
│ │ │ ├── dmoimpl.h
│ │ │ ├── dmoreg.h
│ │ │ ├── dmort.h
│ │ │ ├── dmplugin.h
│ │ │ ├── dmusbuff.h
│ │ │ ├── dmusicc.h
│ │ │ ├── dmusicf.h
│ │ │ ├── dmusici.h
│ │ │ ├── dmusics.h
│ │ │ ├── dpaddr.h
│ │ │ ├── dplay8.h
│ │ │ ├── dplay.h
│ │ │ ├── dplobby8.h
│ │ │ ├── dplobby.h
│ │ │ ├── dpnathlp.h
│ │ │ ├── dsconf.h
│ │ │ ├── dsetup.h
│ │ │ ├── dshowasf.h
│ │ │ ├── DShow.h
│ │ │ ├── DShowIDL
│ │ │ │ ├── amstream.idl
│ │ │ │ ├── austream.idl
│ │ │ │ ├── axcore.idl
│ │ │ │ ├── axextend.idl
│ │ │ │ ├── bdaiface.idl
│ │ │ │ ├── Bdatif.idl
│ │ │ │ ├── control.odl
│ │ │ │ ├── ddstream.idl
│ │ │ │ ├── devenum.idl
│ │ │ │ ├── dmodshow.idl
│ │ │ │ ├── dshowasf.idl
│ │ │ │ ├── dvdif.idl
│ │ │ │ ├── dxtrans.idl
│ │ │ │ ├── dyngraph.idl
│ │ │ │ ├── mediaobj.idl
│ │ │ │ ├── medparam.idl
│ │ │ │ ├── mixerocx.idl
│ │ │ │ ├── mmstream.idl
│ │ │ │ ├── Mpeg2Data.idl
│ │ │ │ ├── Mpeg2Structs.idl
│ │ │ │ ├── Mstvca.idl
│ │ │ │ ├── mstve.idl
│ │ │ │ ├── Mstvgs.idl
│ │ │ │ ├── Msvidctl.idl
│ │ │ │ ├── qedit.idl
│ │ │ │ ├── regbag.idl
│ │ │ │ ├── sbe.idl
│ │ │ │ ├── Segment.idl
│ │ │ │ ├── strmif.idl
│ │ │ │ ├── tuner.idl
│ │ │ │ ├── tvratings.idl
│ │ │ │ ├── Videoacc.idl
│ │ │ │ ├── vmr9.idl
│ │ │ │ └── Vmrender.idl
│ │ │ ├── dsound.h
│ │ │ ├── dvdevcod.h
│ │ │ ├── dvdmedia.h
│ │ │ ├── dv.h
│ │ │ ├── dvoice.h
│ │ │ ├── dvp.h
│ │ │ ├── dx7todx8.h
│ │ │ ├── DxDiag.h
│ │ │ ├── dxerr8.h
│ │ │ ├── dxerr9.h
│ │ │ ├── dxfile.h
│ │ │ ├── dxtrans.h
│ │ │ ├── dxva.h
│ │ │ ├── edevctrl.h
│ │ │ ├── edevdefs.h
│ │ │ ├── errors.h
│ │ │ ├── evcode.h
│ │ │ ├── il21dec.h
│ │ │ ├── Iwstdec.h
│ │ │ ├── ksguid.h
│ │ │ ├── ks.h
│ │ │ ├── ksmedia.h
│ │ │ ├── ksproxy.h
│ │ │ ├── ksuuids.h
│ │ │ ├── mediaerr.h
│ │ │ ├── mediaobj.h
│ │ │ ├── medparam.h
│ │ │ ├── mixerocx.h
│ │ │ ├── mmstream.h
│ │ │ ├── mpconfig.h
│ │ │ ├── Mpeg2Bits.h
│ │ │ ├── mpeg2data.h
│ │ │ ├── Mpeg2Error.h
│ │ │ ├── mpegtype.h
│ │ │ ├── Mstvca.h
│ │ │ ├── Mstve.h
│ │ │ ├── Msvidctl.h
│ │ │ ├── Msvidctl.tlb
│ │ │ ├── multimon.h
│ │ │ ├── playlist.h
│ │ │ ├── qedit.h
│ │ │ ├── qnetwork.h
│ │ │ ├── regbag.h
│ │ │ ├── rmxfguid.h
│ │ │ ├── rmxftmpl.h
│ │ │ ├── sbe.h
│ │ │ ├── Segment.h
│ │ │ ├── strmif.h
│ │ │ ├── tune.h
│ │ │ ├── tuner.h
│ │ │ ├── Tuner.tlb
│ │ │ ├── tvratings.h
│ │ │ ├── uuids.h
│ │ │ ├── vfwmsgs.h
│ │ │ ├── videoacc.h
│ │ │ ├── vmr9.h
│ │ │ ├── vpconfig.h
│ │ │ ├── vpnotify.h
│ │ │ ├── vptype.h
│ │ │ └── xprtdefs.h
│ │ └── Lib
│ │ ├── amstrmid.lib
│ │ ├── d3d8.lib
│ │ ├── d3d9.lib
│ │ ├── d3dx8d.lib
│ │ ├── d3dx8dt.lib
│ │ ├── d3dx8.lib
│ │ ├── d3dx9d.lib
│ │ ├── d3dx9dt.lib
│ │ ├── d3dx9.lib
│ │ ├── d3dxd.lib
│ │ ├── d3dx.lib
│ │ ├── d3dxof.lib
│ │ ├── ddraw.lib
│ │ ├── dinput8.lib
│ │ ├── dinput.lib
│ │ ├── dmoguids.lib
│ │ ├── dplayx.lib
│ │ ├── dsetup.lib
│ │ ├── dsound.lib
│ │ ├── DxErr8.lib
│ │ ├── DxErr9.lib
│ │ ├── dxguid.lib
│ │ ├── dxtrans.lib
│ │ ├── encapi.lib
│ │ ├── ksproxy.lib
│ │ ├── ksuser.lib
│ │ ├── msdmo.lib
│ │ ├── quartz.lib
│ │ ├── strmbasd.lib
│ │ ├── STRMBASE.lib
│ │ └── strmiids.lib
│ ├── faaccfg.h
│ ├── faac.h
│ ├── inttypes.h
│ ├── libavcodec
│ │ ├── avcodec.h
│ │ ├── avfft.h
│ │ ├── d3d11va.h
│ │ ├── dv_profile.h
│ │ ├── dxva2.h
│ │ ├── old_codec_ids.h
│ │ ├── qsv.h
│ │ ├── vaapi.h
│ │ ├── vda.h
│ │ ├── vdpau.h
│ │ ├── version.h
│ │ ├── videotoolbox.h
│ │ ├── vorbis_parser.h
│ │ └── xvmc.h
│ ├── libavdevice
│ │ ├── avdevice.h
│ │ └── version.h
│ ├── libavfilter
│ │ ├── asrc_abuffer.h
│ │ ├── avcodec.h
│ │ ├── avfiltergraph.h
│ │ ├── avfilter.h
│ │ ├── buffersink.h
│ │ ├── buffersrc.h
│ │ └── version.h
│ ├── libavformat
│ │ ├── avformat.h
│ │ ├── avio.h
│ │ └── version.h
│ ├── libavresample
│ │ ├── aarch64
│ │ │ ├── asm-offsets.h
│ │ │ ├── audio_convert_init.c
│ │ │ ├── audio_convert_neon.S
│ │ │ ├── Makefile
│ │ │ ├── neontest.c
│ │ │ ├── resample_init.c
│ │ │ └── resample_neon.S
│ │ ├── arm
│ │ │ ├── asm-offsets.h
│ │ │ ├── audio_convert_init.c
│ │ │ ├── audio_convert_neon.S
│ │ │ ├── Makefile
│ │ │ ├── neontest.c
│ │ │ ├── resample_init.c
│ │ │ └── resample_neon.S
│ │ ├── audio_convert.c
│ │ ├── audio_convert.h
│ │ ├── audio_data.c
│ │ ├── audio_data.h
│ │ ├── audio_mix.c
│ │ ├── audio_mix.h
│ │ ├── audio_mix_matrix.c
│ │ ├── avresample.h
│ │ ├── avresampleres.rc
│ │ ├── avresample-test.c
│ │ ├── dither.c
│ │ ├── dither.h
│ │ ├── internal.h
│ │ ├── libavresample.v
│ │ ├── Makefile
│ │ ├── options.c
│ │ ├── resample.c
│ │ ├── resample.h
│ │ ├── resample_template.c
│ │ ├── utils.c
│ │ ├── version.h
│ │ └── x86
│ │ ├── audio_convert.asm
│ │ ├── audio_convert_init.c
│ │ ├── audio_mix.asm
│ │ ├── audio_mix_init.c
│ │ ├── dither.asm
│ │ ├── dither_init.c
│ │ ├── Makefile
│ │ ├── util.asm
│ │ └── w64xmmtest.c
│ ├── libavutil
│ │ ├── adler32.h
│ │ ├── aes.h
│ │ ├── attributes.h
│ │ ├── audioconvert.h
│ │ ├── audio_fifo.h
│ │ ├── avassert.h
│ │ ├── avconfig.h
│ │ ├── avstring.h
│ │ ├── avutil.h
│ │ ├── base64.h
│ │ ├── blowfish.h
│ │ ├── bprint.h
│ │ ├── bswap.h
│ │ ├── buffer.h
│ │ ├── camellia.h
│ │ ├── cast5.h
│ │ ├── channel_layout.h
│ │ ├── common.h
│ │ ├── cpu.h
│ │ ├── crc.h
│ │ ├── dict.h
│ │ ├── display.h
│ │ ├── downmix_info.h
│ │ ├── error.h
│ │ ├── eval.h
│ │ ├── ffversion.h
│ │ ├── fifo.h
│ │ ├── file.h
│ │ ├── frame.h
│ │ ├── hash.h
│ │ ├── hmac.h
│ │ ├── imgutils.h
│ │ ├── intfloat.h
│ │ ├── intreadwrite.h
│ │ ├── lfg.h
│ │ ├── log.h
│ │ ├── lzo.h
│ │ ├── macros.h
│ │ ├── mathematics.h
│ │ ├── md5.h
│ │ ├── mem.h
│ │ ├── motion_vector.h
│ │ ├── murmur3.h
│ │ ├── old_pix_fmts.h
│ │ ├── opt.h
│ │ ├── parseutils.h
│ │ ├── pixdesc.h
│ │ ├── pixelutils.h
│ │ ├── pixfmt.h
│ │ ├── random_seed.h
│ │ ├── rational.h
│ │ ├── replaygain.h
│ │ ├── ripemd.h
│ │ ├── samplefmt.h
│ │ ├── sha512.h
│ │ ├── sha.h
│ │ ├── stereo3d.h
│ │ ├── tea.h
│ │ ├── threadmessage.h
│ │ ├── timecode.h
│ │ ├── time.h
│ │ ├── timestamp.h
│ │ ├── twofish.h
│ │ ├── version.h
│ │ └── xtea.h
│ ├── libpostproc
│ │ ├── postprocess.h
│ │ └── version.h
│ ├── libswresample
│ │ ├── swresample.h
│ │ └── version.h
│ ├── libswscale
│ │ ├── swscale.h
│ │ └── version.h
│ ├── _mingw.h
│ ├── stdint.h
│ ├── x264cli.h
│ ├── x264_config.h
│ └── x264.h
├── lib
│ ├── avcodec-56.def
│ ├── avcodec.lib
│ ├── avdevice-56.def
│ ├── avdevice.lib
│ ├── avfilter-5.def
│ ├── avfilter.lib
│ ├── avformat-56.def
│ ├── avformat.lib
│ ├── avutil-54.def
│ ├── avutil.lib
│ ├── libfaacd.lib
│ ├── libfaac.lib
│ ├── libx264.lib
│ ├── pkgconfig
│ │ ├── libavcodec.pc
│ │ ├── libavdevice.pc
│ │ ├── libavfilter.pc
│ │ ├── libavformat.pc
│ │ ├── libavutil.pc
│ │ ├── libpostproc.pc
│ │ ├── libswresample.pc
│ │ ├── libswscale.pc
│ │ └── x264.pc
│ ├── postproc-53.def
│ ├── postproc.lib
│ ├── swresample-1.def
│ ├── swresample.lib
│ ├── swscale-3.def
│ └── swscale.lib
├── ReadMe.txt
├── res
│ ├── GetDeviceInfo.ico
│ └── GetDeviceInfo.rc2
├── resource.h
├── SampleGrabberCB.cpp
├── SampleGrabberCB.h
├── stdafx.cpp
├── stdafx.h
└── targetver.h
32 directories, 587 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论