标签:文件 音频 camera 查询 facet raw 引号 flv ide
FFmpeg 常用命令汇总
录制视频
1.录制屏幕-i 指定从哪儿采集数据,它是一个文件索引号-r 指定帧率ffmpeg -f avfoundation -i 1 -r 30 out.yuv2.播放yuv数据需指定分辨率与像素格式ffplay -s 3360x2100 -pix_fmt uyvy422 out.yuv3.查询设备列表ffmpeg -f avfoundation -list_devices true -i ""
AVFoundation indev @ 0x7ff068403c00] AVFoundation video devices:[AVFoundation indev @ 0x7ff068403c00] [0] FaceTime HD Camera[AVFoundation indev @ 0x7ff068403c00] [1] Capture screen 0[AVFoundation indev @ 0x7ff068403c00] AVFoundation audio devices:[AVFoundation indev @ 0x7ff068403c00] [0] 外置麦克风[AVFoundation indev @ 0x7ff068403c00] [1] MacBook Pro 麦克风
录制音频
1.录制音频命令ffmpeg -f avfoundation -i :1 out.wav2.录制音视频ffmpeg -f avfoundation -i 1:1 -r 30 out.mp4
分解与复用命令
1.ffmpeg -i abc.flv -acodec copy -vcodec copy out.mp42.ffmpeg -i abc.flv -acodec copy -vn out.aac3.ffmpeg -i abc.flv -vcodec copy -an out.mp4
处理原始数据
1.抽取视频ffmpeg -i out.mp4 -an -c:v rawvideo -pix_fmt yuv420p out.yuv2.抽取音频ffmpeg -i out.mp4 -vn -ar 44100 -ac 2 -f s16le out.pcm
标签:文件 音频 camera 查询 facet raw 引号 flv ide
原文地址:https://www.cnblogs.com/tryFighting/p/12989118.html