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 ...
随机推荐
- Android监听手机网络变化
Android监听手机网络变化 手机网络状态发生变化会发送广播,利用广播接收者,监听手机网络变化 效果图 注册广播接收者 <?xml version="1.0" encodi ...
- 利用LogParser将IIS日志插入到数据库
利用LogParser将IIS日志插入到数据库 上面的博文是定制一个计划任务来将log日志定时的导入数据库 下面这篇博文是用cmd指令将日志导入到一张sql表中,是一次性操作 Log P ...
- The new powerful SQL executing schedule monthly or weekly in DB Query Analyzer 7.01
1 About DB Query Analyzer DB Query Analyzer is presented by Master Genfeng,Ma from Chinese Mainland. ...
- J2EE进阶(十五)MyEclipse反向工程实现从数据库反向生成实体类之Hibernate方式
J2EE进阶(十五)MyEclipse反向工程实现从数据库反向生成实体类之Hibernate方式 反向工程又称逆向工程. 开发项目涉及到的表太多,一个一个的写JAVA实体类很是费事.MyEcl ...
- [Python监控]psutil模块简单使用
安装很简单 pip install psutil 官网地址为 https://pythonhosted.org/psutil/ (文档上有详细的api) github地址为 https://githu ...
- 程序员的自我修养-----Java开发的必须知道的几个注意点
1. 将一些需要变动的配置写在属性文件中 比如,没有把一些需要并发执行时使用的线程数设置成可在属性文件中配置.那么你的程序无论在DEV环境中,还是TEST环境中,都可以顺畅无阻地运行,但是一旦部署在P ...
- T-SQL中的APPLY用法(半翻译)
本文接上文:T-SQL 中的CROSS JOIN用法(半翻译) 同样可用于微软认证70-461: Querying Microsoft SQL Server 2012考试的学习中. --------- ...
- Android仿淘宝购物车demo
夏的热情渐渐退去,秋如期而至,丰收的季节,小编继续着实习之路,走着走着,就走到了购物车,逛过淘宝或者是京东的小伙伴都知道购物车里面的宝贝可不止一件,对于爱购物的姑娘来说,购物车里面的商品恐怕是爆满,添 ...
- android开发之this.finish()的使用
在一个Activity用完之后应该将之finish掉,但是,之前在学校里自己摸索着开发时并没有太注意这个问题,因为activity无论是否finish掉对功能的影响貌似都不是那么明显(这是读书时候的观 ...
- Android初级教程理论知识(第七章服务)
服务两种启动方式 startService:服务被启动之后,跟启动它的组件没有一毛钱关系 bindService:跟启动它的组件同生共死 绑定服务和解绑服务的生命周期方法:onCreate->o ...