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 ...
随机推荐
- 全废话SQL Server统计信息(1)——统计信息简介
当心空无一物,它便无边无涯.树在.山在.大地在.岁月在.我在.你还要怎样更好的世界?--张晓风<我在> 为什么要写这个内容? 随着工作经历的积累,越来越感觉到,大量的关系型数据库的性能问题 ...
- shell命令执行hive脚本(hive交互,hive的shell编程)
Hive执行方式 Hive的hql命令执行方式有三种: 1.CLI 方式直接执行 2.作为字符串通过shell调用hive –e执行(-S开启静默,去掉"OK","Tim ...
- 源码篇——Handler消息机制
Handler消息机制 Message 消息 Message.obtain() Message msg = new Message() Handler new Handler(){ handlerMe ...
- EBS库存(INV)模块常用表
select * from org_organization_definitions库存组织 select * from mtl_parameters组织参数 select * from mtl ...
- Retrofit 2.0 超能实践(三),轻松实现文件/多图片上传/Json字符串
文:http://blog.csdn.net/sk719887916/article/details/51755427 Tamic 简书&csdn同步 通过前两篇姿势的入门 Retrofit ...
- GraphX PageRank
GraphX算法模型:PageRank 一:算法介绍 PageRank是Google专有的算法,用于衡量特定网页相对于搜索引擎索引中的其他网页而言的重要程度. 一个页面的"得 ...
- java中List接口的实现类 ArrayList,LinkedList,Vector 的区别 list实现类源码分析
java面试中经常被问到list常用的类以及内部实现机制,平时开发也经常用到list集合类,因此做一个源码级别的分析和比较之间的差异. 首先看一下List接口的的继承关系: list接口继承Colle ...
- 开源项目——小Q聊天机器人V1.3
小Q聊天机器人V1.0 http://blog.csdn.net/baiyuliang2013/article/details/51386281 小Q聊天机器人V1.1 http://blog.csd ...
- Android初级教程理论知识(第八章网络编程二)
HttpClient 发送get请求 创建一个客户端对象 HttpClient client = new DefaultHttpClient(); 创建一个get请求对象 HttpGet hg = n ...
- 【一天一道LeetCode】#326. Power of Three
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder's Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目 Given a ...