FFMPEG列出DirectShow支持的设备
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
FFMPEG列出DirectShow支持的设备的更多相关文章
- FFmpeg获取DirectShow设备数据(摄像头,录屏)
这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘.本文所述的方法主要是对应Windows平台的. 1. 列设备 ffmpeg -list_devic ...
- 【转】FFmpeg获取DirectShow设备数据(摄像头,录屏)
这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘.本文所述的方法主要是对应Windows平台的. 1. 列设备 ffmpeg -list_devic ...
- USB系列之一:列出你的USB设备
USB现在已经成为PC机必不可少的接口之一,几乎所有的设备都可以接在USB设备上,USB键盘.鼠标.打印机.摄像头,还有常用的U盘等等,从本篇文章开始,将集中篇幅介绍一下在DOS中使用USB设备的方法 ...
- HALCON不支持的设备中,获取图像
HALCON不支持的设备中,获取图像 参考(HALCON手册): Solution_guide_II_A_image_acquisiton.pdf image_acquisition_interf ...
- Kali Linux NetHunter教程Kali NetHunter支持的设备和ROMs
Kali Linux NetHunter教程Kali NetHunter支持的设备和ROMs NetHunter是一个基于Kali Linux为Nexus设备构建的Android渗透测试平台,其中包括 ...
- TFS支持移动设备,微软已经走出了第一步(手机上更新、查询工作项)
TFS支持移动设备,微软已经走出了第一步! 从现在开始,你可以在手机浏览器上打开自己的VSTS团队项目,会看大手机版的工作项界面,你可以在手机设备上更新.查询工作项. 这是原生自带的,这些移动功能马上 ...
- Towelroot v3.0版发布 将支持更多设备 Towelroot v3.0下载
Towelroot虽然已经发布一段时间了,虽然所Towelroot可以一键ROOT很多设备,虽然它只有100多K.不过还是有一小部分的机型没办法ROOT成功的,也不知道什么原因.不过不用担心,Geoh ...
- 实战FFmpeg--编译iOS平台使用的FFmpeg库(支持arm64的FFmpeg2.6.2)
编译环境:Mac OS X 10.10.2 ,Xcode 6.3 iOS SDK 8.3 FFmpeg库的下载地址是 http://www.ffmpeg.org/releases/ . ...
- 音频视频解决方案:GStreamer/ffmpeg/ffdshow/directshow/vfw
音频视频编程相关:GStreamer/ffmpeg/directshow/vfw linux和window下几种流行的音频视频编程框架作一个总结,防止自己迷惘,免于晕头转向. 一.GStreamer ...
随机推荐
- 让你的代码减少三倍!使用kotlin开发Android(五) 监听器
本文同步自 博主的私人博客wing的地方酒馆 在前面的博客中,有一个栗子,是点击按钮转跳的监听器. button.setOnClickListener { val user = User(" ...
- Android基于JsBridge封装的高效带加载进度的WebView
Tamic http://blog.csdn.net/sk719887916/article/details/52402470 概述 从去年4月项目就一直用起了JsBridge,前面也针对jsBrid ...
- ROS(indigo) 语音工具 科大讯飞 百度 pocketsphinx julius rospeex 16.11.22更新 ROS中文语音
ROS语音工具汇总,目前先给出链接,只用过一些简单的命令. 中文语音: 参考链接:使用科大讯飞库 1 http://www.ncnynl.com/archives/201611/1069.html 2 ...
- 用scheme重写Python的三大函数map reduce 和filter
重写过程中,发现这种做法能加深对递归的理解,而且reduce还体现了函数式编程是如何通过参数传递来实现命令式编程中的状态改变的. (define (imap f x . y) (if (null? y ...
- 【安卓开发】Android系统中Parcelable和Serializable的区别
http://greenrobot.me/devpost/android-parcelable-serializable/ 进行Android开发的时候,我们都知道不能将对象的引用传给Activiti ...
- Android简易实战教程--第三十一话《自定义土司》
最近有点忙,好几天不更新博客了.今天就简单点,完成自定义土司. 主布局文件代码: <RelativeLayout xmlns:android="http://schemas.andro ...
- bmp格式图像的读写函数(对一个开源代码的封装)
在网上看到一段读写bmp格式图像的代码,本文对这段代码分成两个函数封装起来方便使用,一个函数是读取bmp格式的图像,一个是向指定文件写入bmp格式的图像. 前提 我们不需要知道这段代码是如何读取bmp ...
- SpriteKit关于SKScene中的渲染Loop
在本节中,我将来说明一下SKScene在SKView显示之后发生了神马. 在更传统的iOS app中,你可能只会渲染view的内容仅仅一次,然后它将保持静态直到view的模式发生了显示的改变,这对于商 ...
- [struts2学习笔记] 第六节 struts2依赖的jar包还有Could not find action or result 错误解决
本文地址:http://blog.csdn.net/sushengmiyan/article/details/43272061 本文作者:sushengmiyan ------------------ ...
- 【伯乐在线】最值得阅读学习的 10 个 C 语言开源项目代码
原文出处: 平凡之路的博客 欢迎分享原创到伯乐头条 伯乐在线注:『阅读优秀代码是提高开发人员修为的一种捷径』http://t.cn/S4RGEz .之前@伯乐头条 曾发过一条微博:『C 语言进阶有 ...