Giter VIP home page Giter VIP logo

Comments (18)

peilinok avatar peilinok commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

If you do not have other problems,I will close this issue.

from screen-recorder.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

whether have any example? Or whether current project could compile in linux?

from screen-recorder.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

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.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

whether have the example that draw rect in windows or linux, that sopport the mult screen?

from screen-recorder.

peilinok avatar peilinok commented on July 29, 2024

whether have any example? Or whether current project could compile in linux?

only support windows for now

from screen-recorder.

peilinok avatar peilinok commented on July 29, 2024

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.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

whether it can compile with x64, what version of your ffmpeg?

from screen-recorder.

peilinok avatar peilinok commented on July 29, 2024

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.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

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.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

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.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

Do you still have any problems?
I will close this issue.

from screen-recorder.

xinsuinizhuan avatar xinsuinizhuan commented on July 29, 2024

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.

peilinok avatar peilinok commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.