Comments (18)
typedef struct {
/**
* Left of desktop area
*/
int v_left;
/**
* Top of desktop area
*/
int v_top;
/**
* Width of desktop area
*/
int v_width;
/**
* Height of desktop area
*/
int v_height;
/**
* Output video quality, value must be between 0 and 100, 0 is least, 100 is best
*/
int v_qb;
/**
* Output video bitrate, the larger value you set,
* the better video quality you get, but the file size is also larger.
* Suggestion: 960|1280|2500 *1000
*/
int v_bit_rate;
/**
* FPS(frame per second)
*/
int v_frame_rate;
/**
* Video encoder id
* Must get by recorder_get_vencoders
*/
int v_enc_id;
/**
* Output file path,the output file format is depended on the ext name.
* Support .mp4|.mkv for now.
*/
char output[260];
/**
* Desktop device
* Unused
*/
AMRECORDER_DEVICE v_device;
/**
* Microphone device info
*/
AMRECORDER_DEVICE a_mic;
/**
* Speaker device info
*/
AMRECORDER_DEVICE a_speaker;
}AMRECORDER_SETTING;
You can specifiy the resolution of monitor which you want to record by the param AMRECORDER_SETTING of initialize function.
from screen-recorder.
For more detail,you can find the function get_dst_adapter of record_desktop_duplication.cpp and do_record of record_desktop_gdi.cpp
from screen-recorder.
If you do not have other problems,I will close this issue.
from screen-recorder.
whether have any example? Or whether current project could compile in linux?
from screen-recorder.
For more detail,you can find the function get_dst_adapter of record_desktop_duplication.cpp and do_record of record_desktop_gdi.cpp
Thank you very much!
from screen-recorder.
whether have the example that draw rect in windows or linux, that sopport the mult screen?
from screen-recorder.
whether have any example? Or whether current project could compile in linux?
only support windows for now
from screen-recorder.
whether have the example that draw rect in windows or linux, that sopport the mult screen?
You can find the test code in the Test project, and give different values to the v_left|v_top|v_width|v_height
from screen-recorder.
whether it can compile with x64, what version of your ffmpeg?
from screen-recorder.
whether it can compile with x64, what version of your ffmpeg?
It is designed on x86.
Do you still have any problems?
from screen-recorder.
whether it can compile with x64, what version of your ffmpeg?
It is designed on x86.
Do you still have any problems?
First, thankyou very much. Then, I also want to ask: how to get the monitor of my current cursor in?
from screen-recorder.
We usually enum all monitors and let user to choose one.
Well, you can get the point of cursor and rects of all monitors through window api.
from screen-recorder.
We usually enum all monitors and let user to choose one.
Well, you can get the point of cursor and rects of all monitors through window api.
whether have a function, that pass the current cursor to it, that then i could get the cur monitor?
from screen-recorder.
Well, you can get the point of cursor and rects of all monitors through window api? How to do, i am a newer, do you could give me some guidances?
from screen-recorder.
Well, you can get the point of cursor and rects of all monitors through window api? How to do, i am a newer, do you could give me some guidances?
GetCursorInfo
EnumDisplayDevices
from screen-recorder.
Do you still have any problems?
I will close this issue.
from screen-recorder.
Yes. when i get the current cursor information is:
typedef struct {
DWORD cbSize;
DWORD flags;
HCURSOR hCursor;
POINT ptScreenPos;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
And when i get the all DisplayDevices:
typedef struct _DISPLAY_DEVICE {
DWORD cb;
TCHAR DeviceName[32];
TCHAR DeviceString[128];
DWORD StateFlags;
TCHAR DeviceID[128];
TCHAR DeviceKey[128];
} DISPLAY_DEVICE, *PDISPLAY_DEVICE;
1、how to get the current DISPLAY_DEVICE that current cursor in?
2、when get the current DISPLAY_DEVICE that to record, how to match the info IDXGIAdapter?
from screen-recorder.
https://docs.microsoft.com/en-us/windows/win32/gdi/multiple-display-monitors-functions
It is not about screen-recorder, I will close this issue.
from screen-recorder.
Related Issues (20)
- Get video encoders crashed when recording
- Pause HOT 1
- Audio capture under win7 HOT 1
- Micphone
- get db from pcm array
- get db from pcm array
- separate record and muxe HOT 1
- V2.0
- 音频和视频编码的时候不需要比较下时间戳吗? HOT 12
- Does screen-recorder support recording based on one window or dialog(not based on desktop) please? HOT 3
- vaapi support? HOT 1
- video and audio is not sync HOT 12
- 程序崩溃 HOT 1
- Can not Play video HOT 1
- 为什么我录制出来帧率只有12 HOT 1
- 录出来的视频有杂音 (MacOS 11.5 QuickTime Player)
- 如何录制两份,比如一份直播用,一份录制本地
- Crashed when i use dxgi duplication to capture a rotate screen HOT 1
- Electron下WGC采集崩溃
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screen-recorder.