ffmpeg摄像头视频采集 音频采集的正确参数
来源:互联网 发布:分析化学酸碱滴定数据 编辑:程序博客网 时间:2024/05/18 13:24
huzia@huzia-laptop:~$ ffmpeg -f video4linux2 -s 320*240 -r 10 -i /dev/video0 test.asf
FFmpeg version git-60ff1c3, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 21 2010 20:39:20 with gcc 4.3.3
configuration:
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[video4linux2 @ 0x8c8d420]Cannot open video device /dev/video0 : Permission denied
/dev/video0: Input/output error
huzia@huzia-laptop:~$ sudo ffmpeg -f video4linux2 -s 320*240 -r 10 -i /dev/video0 test.asf
FFmpeg version git-60ff1c3, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 21 2010 20:39:20 with gcc 4.3.3
configuration:
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[video4linux2 @ 0xa946420][3]Capabilities: 5000001
[video4linux2 @ 0xa946420]Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 0.000000, bitrate: 0 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 0 kb/s, 10 tbr, 1000k tbn, 10 tbc
File 'test.asf' already exists. Overwrite ? [y/N] y
Output #0, asf, to 'test.asf':
Metadata:
WM/EncodingSettings: Lavf52.61.0
Stream #0.0: Video: msmpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 10 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 3 fps= 0 q=2.0 Lsize= 10kB time=0.30 bitrate= 270.1kbits/s dup=0 drop=6811
video:8kB audio:0kB global headers:0kB muxing overhead 27.898459%
huzia@huzia-laptop:~$ ffmpeg -f oss -i /dev/dsp /tmp/out.mpg
FFmpeg version git-60ff1c3, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 21 2010 20:39:20 with gcc 4.3.3
configuration:
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[oss @ 0xaa39420]Estimating duration from bitrate, this may be inaccurate
Input #0, oss, from '/dev/dsp':
Duration: N/A, start: 1271899902.828937, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Output #0, mpeg, to '/tmp/out.mpg':
Metadata:
encoder : Lavf52.61.0
Stream #0.0: Audio: mp2, 44100 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 188kB time=23.77 bitrate= 64.8kbits/s
video:0kB audio:186kB global headers:0kB muxing overhead 1.230997%
huzia@huzia-laptop:~$ ffmpeg -f video4linux2 -s 320*240 -r 10 -i /dev/video0 test.asf
huzia@huzia-laptop:~$ ffmpeg -f oss -i /dev/dsp /tmp/out.mpg
- ffmpeg摄像头视频采集 音频采集的正确参数
- ffmpeg摄像头视频采集 音频采集的正确参数
- windows下用ffmpeg采集摄像头的视频
- ffmpeg命令采集笔记本摄像头视频
- qt5 采集摄像头的视音频
- FFMPEG采集摄像头视频并切片为hls视频流
- V4L2摄像头视频采集
- Qt摄像头视频采集
- C# 如何采集摄像头的视频
- linux v4l2 摄像头采集视频的方法
- Python+OpenCV采集本地摄像头的视频
- linux v4l2 摄像头采集视频的方法
- linux v4l2 摄像头采集视频的方法
- mac os上使用ffmpeg采集视频和音频
- FFMPEG在Windows上采集视频和音频
- 使用ffmpeg采集摄像头的视频和语音,合成mpg文件
- Linux V4L2 摄像头视频采集
- Linux V4L2 摄像头视频采集
- QGraphicsPixmapItem与QGraphicsScene的编程实例
- bash中字符串处理
- asp.net Session
- oracle-创建篇
- 60幅精美绝伦的绘景(Matte Paintings)作品欣赏
- ffmpeg摄像头视频采集 音频采集的正确参数
- htmlcleaner+xpath抓取网页数据
- java类型转换 Integer String Long Float Double Date
- escope
- 关于在窗体中使用多线程调用控件的方式
- IIS7: WCF Services - .SVC do not work
- SQL注入
- spring Filter过滤器,Spring拦截未登录用户权限限制
- sysfs接口函数的建立_DEVICE_ATTR