如何录制30帧以上的视频

待确认的方案

ffmpeg+X11grab

https://trac.ffmpeg.org/wiki/Capture/Desktop

https://unix.stackexchange.com/questions/73622/how-to-get-near-perfect-screen-recording-quality

这里有个中文文档,里面提到了x264编码无损模式录制:

https://trac.ffmpeg.org/wiki/Capture/Capture/Desktop%E4%B8%AD%E6%96%87%E7%89%88%E6%9C%AC

自己操控RAF

WebRTC的源码

https://searchfox.org/mozilla-central/source/dom/media/MediaRecorder.cpp

https://searchfox.org/mozilla-central/source/dom/media/webrtc/MediaEnginePrefs.h

1
2
3
4
5
6
public:
static const int DEFAULT_VIDEO_FPS = 30;
static const int DEFAULT_43_VIDEO_WIDTH = 640;
static const int DEFAULT_43_VIDEO_HEIGHT = 480;
static const int DEFAULT_169_VIDEO_WIDTH = 1280;
static const int DEFAULT_169_VIDEO_HEIGHT = 720;