Comments (2)
Hi,
AMF does not provide a replacement for DX9, DX11 or OpenCL device handling. For the proper adapter enumeration and device creation application is encouraged to use these APIs. There is a sample VCEEncoderD3D that shows how to do it. Check DeviceDX9.h/cpp, DeviceDX11.h/cpp and DeviceOpenCL.h/cpp. I don't think you need OpenGL.
Once you have a DX device you can initialize AMF and check capabilities. I think the VCE AMF plug-in is already doing so. In any case, CapabilityManager sample will help.
If the app intends to use OpenCL and choose to create own OCL device and context it is important to pass the correct DX9 or/and DX11 devices created earlier for interop between APIs to work. AMF encoder works only via DX9 or via DX11. DeviceOpenCL.cpp has the code. Though, you can rely on AMF to do OpenCL initialization and then get OpenCL device and context and query additional properties if needed.
AMFComputeFactory provides OpenCL device enumeration and creation but not connected to any DX. It is used primary for AMD True Audio Next SDK.
from amf.
Alright thank you. I will take a look at the VCEEncoderD3D example and see what I can do myself.
from amf.
Related Issues (20)
- [Investigation]: DX11 HW decode can cause image corruption on quick time skipping in some sources HOT 20
- [Question]: Using -rc for AV1_AMF HOT 1
- Need help for HEVC encoding GPU with AMF on FFMPEG HOT 4
- [Bug]: DX11 hardware accelerated transcode fails on FFMPEG v6 HOT 10
- [Bug]: Unable to produce scaled video with AMF specific methods HQScaler when preanalysis flag is enabled. HOT 2
- [Question]: How to use AMF with RADV driver? HOT 8
- [Bug]: AMF hangs on trying to decode video with momentary switch between progressive and interlaced fragment mid-stream
- [Question]: When AMD will use proper AI to replace programmers and produce a way better AMD AMF ? HOT 1
- [Bug]: <stream is not FLV 1.1 compatible> HOT 19
- [Question]: How to import AMF SDK into a QT project? HOT 2
- Missing documentation AMF_VE_FCR_RADIUS HOT 1
- [Bug]: Unable to make AMF encoder to follow specified CBR bitrate. Filler data parameter is ignored for CBR in some cases.
- [Question]: Every 4 seconds of recording gets blury HOT 19
- [Question]: (H)QVBR mode on Ryzen 5 8600G with AV1 HOT 6
- [Bug]: MJPEG decoder crashes with some JPEGs HOT 2
- Encoding from D3D RGBA/BGRA surfaces (encoder fails to init) HOT 3
- [Bug]: RX7600 AV1 Decoder crashes HOT 1
- Handling encoder output status after Flush() HOT 6
- AMF_VIDEO_ENCODER_OUTPUT_DATA_TYPE reports always frame type either 'NONE' or 'IDR' HOT 3
- [Bug]: AMD DX12 video encode driver bug?: Error using new FFMPEG HEVC D3D12 encoder support in Intel cartwheel repo.. HOT 2
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 amf.