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支持的设备的更多相关文章

  1. FFmpeg获取DirectShow设备数据(摄像头,录屏)

    这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘.本文所述的方法主要是对应Windows平台的. 1.       列设备 ffmpeg -list_devic ...

  2. 【转】FFmpeg获取DirectShow设备数据(摄像头,录屏)

    这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘.本文所述的方法主要是对应Windows平台的. 1.       列设备 ffmpeg -list_devic ...

  3. USB系列之一:列出你的USB设备

    USB现在已经成为PC机必不可少的接口之一,几乎所有的设备都可以接在USB设备上,USB键盘.鼠标.打印机.摄像头,还有常用的U盘等等,从本篇文章开始,将集中篇幅介绍一下在DOS中使用USB设备的方法 ...

  4. HALCON不支持的设备中,获取图像

    HALCON不支持的设备中,获取图像   参考(HALCON手册): Solution_guide_II_A_image_acquisiton.pdf image_acquisition_interf ...

  5. Kali Linux NetHunter教程Kali NetHunter支持的设备和ROMs

    Kali Linux NetHunter教程Kali NetHunter支持的设备和ROMs NetHunter是一个基于Kali Linux为Nexus设备构建的Android渗透测试平台,其中包括 ...

  6. TFS支持移动设备,微软已经走出了第一步(手机上更新、查询工作项)

    TFS支持移动设备,微软已经走出了第一步! 从现在开始,你可以在手机浏览器上打开自己的VSTS团队项目,会看大手机版的工作项界面,你可以在手机设备上更新.查询工作项. 这是原生自带的,这些移动功能马上 ...

  7. Towelroot v3.0版发布 将支持更多设备 Towelroot v3.0下载

    Towelroot虽然已经发布一段时间了,虽然所Towelroot可以一键ROOT很多设备,虽然它只有100多K.不过还是有一小部分的机型没办法ROOT成功的,也不知道什么原因.不过不用担心,Geoh ...

  8. 实战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/ . ...

  9. 音频视频解决方案:GStreamer/ffmpeg/ffdshow/directshow/vfw

    音频视频编程相关:GStreamer/ffmpeg/directshow/vfw linux和window下几种流行的音频视频编程框架作一个总结,防止自己迷惘,免于晕头转向. 一.GStreamer ...

随机推荐

  1. Lucene 查询(Query)子类

    QueryParser(单域查询) QueryParser子类对单个域查询时创建查询query,构造方法中需要传入Lucene版本号,检索域名和分词器. QueryParser parser = ne ...

  2. linux TCP头部的构造的简单分析

    TCP的头部的构造是在函数tcp_transmit_skb()中进行的 函数片段如下: /* Build TCP header and checksum it. */ th = tcp_hdr(skb ...

  3. Thread Pools

    许多程序会动态创建数十个设置上百个线程.举个例子,一个web服务器可能在每一个新到来的请求时创建一个新线程,然后在请求完成后将其终止. 然而,创建一个新线程将会带来一定的耗费:它需要在内核中创建自身必 ...

  4. CRM 2013 Script Loading Deep Dive

    关于CRM中脚本的加载次序梳理的很不错,可以看看 https://community.dynamics.com/crm/b/develop1/archive/2013/11/02/crm-2013-s ...

  5. Spring整合DWR comet 实现无刷新 多人聊天室

    用dwr的comet(推)来实现简单的无刷新多人聊天室,comet是长连接的一种.通常我们要实现无刷新,一般会使用到Ajax.Ajax 应用程序可以使用两种基本的方法解决这一问题:一种方法是浏览器每隔 ...

  6. everything of people’s life can changed in their twenties

    还记得三年前,独自背着行李,流浪远方,来到曾经只在地理课本上才熟悉的北国,带着好奇,带着期望,带着激动的心情,想感受毛爷爷当年霸气的北国风光,千里冰封的美丽,想知道北方的面条到底有多少种花样,想走进那 ...

  7. Windows上C语言实现设置控制台的颜色

    这里设置只要调用system();这个函数就行了,参数是字符串,想要设置终端的颜色,按照以下格式可以设置: //数字表示前景色,字母表示背景色 //color 0=黑色 1蓝色 2 绿色 3湖蓝色 4 ...

  8. 带你深入理解STL之Deque容器

    在介绍STL的deque的容器之前,我们先来总结一下vector和list的优缺点.vector在内存中是分配一段连续的内存空间进行存储,其迭代器采用原生指针即可,因此其支持随机访问和存储,支持下标操 ...

  9. App引导界面,可以这么玩

    什么是ViewPager,刚一听到这个词,我们可能感觉很奇怪,但是我相信我们大部分人都曾见到过这些界面的.其实它就是我们在安装好一个app之后第一次使用时的那些引导界面的效果.这就是通过ViewPag ...

  10. Docker教程:dokcer的配置和命令

    http://blog.csdn.net/pipisorry/article/details/50803028 Docker命令查询 终端运行docker命令,它会打印所有可用的命令列表及使用描述:# ...