How would I grab image data from display output of amd gpus? [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am attempting to create a personal PC streaming application on Windows. I was wondering how I could grab data from an AMD GPUs display output in C++ 11 (somewhat like OBS)? I attempted this in java with Robot.createScreenCapture method but was not able to achieve sufficient speeds required for streaming. I hope this is clear enough. Anything helps, thanks.

AMD AMF SDK can get you this: Is there a functionality to capture screen directly and encode at GPU buffer memory?
amf\public\src\components\DisplayCapture already has code which is basically wrapping DD API into AMF component. If my memory serves me right DVR sample shows how to use it (source code definitely has traces that it was/is working).

Related

Implement video editor [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to implement a "simple" video editor and since I'm new to the topic, I'm not sure how to start.
The editor should have the following features / components
A timeline for multiple recordings
A video player that plays the edited video in real-time (it should render all added effects and assets)
Assets that can be placed on the timeline such as text elements, arrows and so on
I'd like to start with the video player and then build the other components around it.
Which frameworks would you recommend?
For the player, I'm not sure if DirectShow is the right choice or MediaFoundation would be better. Are there other libraries to consider? FFmpeg?
My recommendation given your interests is to start with Blender
http://www.blender.org
It's written in a combination of C, C++, and Python, has a substantial user community, and has the advantage of open source code so you can see how a real large project looks.
You might end up just contributing to it, or you might lift bits of it to bootstrap your own project, etc. But if you don't know about, it's worthwhile to look at if only to help you refine what you want to work on.

How to get computer device manager information as text result in cpp code? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
How to get computer device manager information (in Windows (especially win 10)) as text result in cpp code?. In addition I don't want to use registry i my code.
You can get information of device manager using Windows Management Instrumentation(WMI) or by using Setup APIs. One example of Setup APIs for getting device manager information can be found in code project.

Listening for wave out in windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I want to "listen" to the output to sound devices in windows. Preferably in C/C++. I have no idea what a proper starting point would be for this on windows and was wondering if I could get pointed in the right direction to capture sound. I would like to do this so that I can change different settings based on the sound that is playing. I am not looking to listen through a microphone
You need to work with Windows audio related COM-based interfaces. Starting point is to obtain a reference to the IMMDevice interface of an endpoint object in a device collection by calling the IMMDeviceCollection::Item method. Afterwards, it is possible to get a reference to the IMMEndpoint interface of an endpoint object by calling the IMMDevice::QueryInterface` method. After retrieving a collection of endpoint devices, it is possible to query the properties of the individual devices in the collection to determine their suitability for use.
This is one example and this is another

Fast Screen Transfer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What is the fastest way in C++ to share screens between computers, like in Skype or Google Plus? Currently I'm taking a screenshot, convert it to low-quality JPG with GDI+ and then send it too a remote computer, but although it works, it is not very fast (7 FPS via localhost).
I can't comment :(
But some things to think about.
Which operation(s) take the most time? I suspect this would be the capture due to the localhost xmission - but it really could be anything. Benchmark.
Does the sender "block" the next frame generation while waiting on the recipient display? If this is so then it might add in an implict bottleneck. The sender probably wants to keep sending frames unless the recipient requests a throttle.
If bandwidth is an issue, what about only sending partial or delta frames? Even though localhost shouldn't be a bandwidth issue, I am fairly certain that this is done in more advanced clients.
Consider looking at some [open source] VNC clients for how they work. It's not necessarily the same as "Skype", but it shound provide insight for a screen sharing program.

DirectShow Raw Capture [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have problems with DirectShow. I'm trying to record video from webcam and save as raw format on the disk. Can someone PLEASE show me simple example how to do it? I'm new to it and I'm not having enough time to start learning and then doing it, because of job..
Thank you!
DirectShow Samples on MSDN:
AmCap Sample Capture Video capture application.
PlayCap Sample Capture Simple capture application.
Using GraphEdit SDK tool you can interactively connect web cam filter to WM ASF Writer Filter and produce Windows Media files (the same can be repeated in code programmatically).