FFMPEG列出dshow支持的设备:

 ffmpeg -list_devices true -f dshow -idummy

举例:

采集摄像头和麦克风

ffmpeg -f dshow -i video="Camera":audio="Microphone"

(摄像头名称是Camera,麦克风名称是Microphone)

比如说,在我的笔记本上采集10秒的视频,并且使用x264进行编码,可以用如下命令:

ffmpeg -f dshow -i video="Integrated Camera" -t 10 -vcodec libx264 test.mp4

=================================================================

以下是帮助信息:

http://ffmpeg.org/ffprobe.html

11.3 dshow

Windows DirectShow input device.

DirectShow support is enabled when FFmpegis built with mingw-w64. Currently only audio and video devices are supported.

Multiple devices may be opened as separateinputs, but they may also be opened on the same input, which should improvesynchronism between them.

The input name should be in the format:

TYPE=NAME[:TYPE=NAME]

where TYPE can be either audio or video,and NAME is the device’s name.

11.3.1 Options

If no options are specified, the device’sdefaults are used. If the device does not support the requested options, itwill fail to open.

‘video_size’

Set the video size in the captured video.

‘framerate’

Set the framerate in the captured video.

‘sample_rate’

Set the sample rate (in Hz) of the capturedaudio.

‘sample_size’

Set the sample size (in bits) of thecaptured audio.

‘channels’

Set the number of channels in the capturedaudio.

‘list_devices’

If set to ‘true’, print a list of devicesand exit.

‘list_options’

If set to ‘true’, print a list of selecteddevice’s options and exit.

‘video_device_number’

Set video device number for devices withsame name (starts at 0, defaults to 0).

‘audio_device_number’

Set audio device number for devices withsame name (starts at 0, defaults to 0).

11.3.2 Examples

Print the list of DirectShow supporteddevices and exit:

$ ffmpeg -list_devices true -f dshow -idummy

Open video device Camera:

$ ffmpeg -f dshow -ivideo="Camera"

Open second video device with name Camera:

$ ffmpeg -f dshow -video_device_number 1 -ivideo="Camera"

Open video device Camera and audio deviceMicrophone:

$ ffmpeg -f dshow -ivideo="Camera":audio="Microphone"

Print the list of supported options inselected device and exit:

$ ffmpeg -list_options true -f dshow -ivideo="Camera"

原文地址:http://blog.sina.com.cn/s/blog_3cb6a78c0100zti7.html

最新文章

  1. 【BZOJ-1570】BlueMary的旅行 分层建图 + 最大流
  2. win7的HOST文件夹具体位置
  3. linux命令每日一练习 wc more
  4. Linux C编程(1) vim及gcc命令
  5. ecshop 广告位固定
  6. SQL经典笔试题之一
  7. 转载: C#: Left outer joins with LINQ
  8. Android setTextColor无效_安卓setTextColor()的参数设置方式
  9. Bootstrap验证控件的使用
  10. 1.1 selenium 安装
  11. HDU-1754-I Hate It(线段树,简单,不过好像有点问题)
  12. PHP字符串三种定义方式
  13. PHP 获取访问来源
  14. 微信小程序请求API接口PHPSESSID变化的解决方式
  15. Debian 8 安装Nginx最新版本
  16. Wpf学习20180605
  17. phpBB3导入版面的Python脚本
  18. Julia安装以及使用扩展包package(ERROR: UndefVarError: Pkg not defined)
  19. javascript高级程序设计第二章知识点提炼
  20. 作为php了解一下共享内存的概念及优缺点

热门文章

  1. android M Launcher之LauncherModel (三)
  2. Windows编译ejabberd
  3. DJango内建模板转向jinja2的小脚本
  4. 分享一个CUDA的环境配置属性表,从此不用再担心配置不好CUDA环境了
  5. Mysql创建、删除用户、用户管理等相关:转载http://www.cnblogs.com/fly1988happy/archive/2011/12/15/2288554.html
  6. studio中碰到的jni问题:java.lang.UnsatisfiedLinkError
  7. System startup files
  8. Android传感器
  9. Android源码分析—深入认识AsyncTask内部机制
  10. 18 UI美化自定义形状shape