AnsweredAssumed Answered

amf-dem CreateEncoder failed ??

Question asked by alexh264 on Feb 5, 2015
Latest reply on Feb 9, 2015 by amit.agarwal

Hi,

 

I am running AMD Media SDK 1.1 Beta samples\dem project and there is an error in CScreenCaptureEncApi::encCreate() then mEncoder->CreateEncoder() == AMF_ENCODER_CREATE_FAILED

 

What can be the problem ? How can I gather more details why encoder is not created ?

 

Here is my info:

screenCapture Release Win32 - The example code is unmodified

Windows 7 64-bit

Catalyst Version: 14.11.2 Beta

Graphics Chipset: AMD Radeon R7 200 Series (R7 240 Sapphire 1GB DDR3)


ScreenCaptureLog.txt:

Error code : 0x16 CreateEncoder failed @ ..\..\src\ScreenCaptureEncApi.cpp, 257

encCreate failed @ I:\bin\amd_media_sdk\AMD Media SDK\1.1 Beta\samples\dem\screenCapture\inc\ScreenCaptureEncApi.h 275

exampleConfig.cfg:

/******************************************************************************/

/* DEM Encoder Create Parameters                                              */

/******************************************************************************/

encUsage                         1    //Usage type

                                      // 1 - Generic mode

                                      // 2 - Wireless Display mode

                                      // 4 - Low latency mode

encOutputType                    0    // Output type

                                      // 0 - AV_TS

                                      // 1 - AV_ES

                                      // 2 - V_TS

                                      // 3 - V_ES

encProfile                       66   // H.264 encoding profile

                                      // 66 - Constraint Baseline profile

                                      // 77 - Main profile

                                      // 100 - High profile

framesToEncode                   500  // frames to encode

                                       // framesToEncode/2 video frames, framesToEncode/2 audio frames for AV_TS & AV_ES

                                       // framesToEncode video frames for V_TS & V_ES

 

 

/******************************************************************************/

/* Display width and height settings                                          */

/******************************************************************************/

displayWidth                     1920

displayHeight                    1080

 

 

/******************************************************************************/

/* DEM Encoder Configure Parameters                                           */

/******************************************************************************/

encRateControlMethod             0          // Rate Control method

                                            // 0 - Peak constraint VBR

                                            // 1 - latency constraint VBR

                                            // 2 - CBR

encInloopDeblockFilter           1          // De-blocking filter

                                            // 0 - disable

                                            // 1 - enable

encBitrate                       2000000     // Bitrate of the encoded video (bits per sec)

encPeakBitrate                   2000000    // Peak Bitrate of the encoded video (bits per sec)

                                             // It must be more than encBitrate

encIDRPeriod                     25   // IDR Period

                                       // Allowable range (0 to 6000)

                                       // Make sure encIntraRefreshMBPerSlot set to zero otherwise Intra refresh MB per slot will be enabled

encSkippedPicPeriod              0     // Skipped Picture period

                                       // Allowable range (0 to 7)

encSlicesPerFrame                1     // Slices per frame

                                       // Allowable range (1 to 68)

encIntraRefreshMBPerSlot         360    // Default value is number of MB in column

                                       // Allowable range (0 to 3160)

encInitVBVbufferFullness         100   // Initial VBV buffer fullness

                                       // Allowable range (0 to 100)

encVBVbufferSize                 312500 //

                                        // Allowable range (250000 to 30000000)

encMinQP                         22     // Minimum QP

                                        // Allowable range (0 to 51)

encMaxQP                         51     // maximum QP

                                        // Allowable range (0 to 51)

 

 

Kind regards,

Alex

Outcomes