Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

rotation fail

$
0
0

hi there,

OS: Ubuntu 12.04

       MediaSamples_Linux_6.0.16043175.175

       MediaServerStudioEssentials2015R6

Platform:  i5-4570S

I got strange problem below when trying some commands

[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Encoding Sample Version 0.0.000.0000

Input file format       YUV420
Output video            AVC
Source picture:
        Resolution      1920x1088
        Crop X,Y,W,H    0,0,1920,1080
Destination picture:
        Resolution      1920x1088
        Crop X,Y,W,H    0,0,1920,1080
Frame rate      30.00
Bit rate(Kbps)  3757
Target usage    balanced
Memory type     system
Media SDK impl          hw
Media SDK version       1.16

Processing started
Frame number: 635
Processing finished

real    0m4.188s
user    0m0.740s
sys     0m0.500s
[release] $ time ./sample_encode_x11 h264 -i 1080p.yuv -o 1080p_enc.264 -w 1920 -h 1080 -angle 180

Return on error: error code 1,  /home/dspuser/Downloads/IntellMediaSDK/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp  656

real    0m0.002s
user    0m0.000s
sys     0m0.002s
[release] $

After checking the Mfxdefs.h, I got the following. But is it just a warning??

    /* warnings >0 */
    MFX_WRN_IN_EXECUTION                = 1,    /* the previous asynchronous operation is in execution */

One more thing I felt weird is 

    sts = pPipeline->Init(&Params);
    MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, 1);     ==> this line number is 656 in sample_encode.cpp

I try to find the key word but nothing found...

    [samples] $ grep -rniI "MFX_WRN_IN_EXECUTION" ./sample_encode/
    [samples] $

Then I looked into the code as below in pipeline_encode.cpp and found nothing error before return value.

mfxStatus CEncodingPipeline::Init(sInputParams *pParams)
{
...
    if ((pParams->MVC_flags & MVC_ENABLED) != 0 && !CheckVersion(&version, MSDK_FEATURE_MVC)) {
        msdk_printf(MSDK_STRING("error: MVC is not supported in the %d.%d API version\n"),
            version.Major, version.Minor);
        return MFX_ERR_UNSUPPORTED;

    }
    if ((pParams->MVC_flags & MVC_VIEWOUTPUT) != 0 && !CheckVersion(&version, MSDK_FEATURE_MVC_VIEWOUTPUT)) {
        msdk_printf(MSDK_STRING("error: MVC Viewoutput is not supported in the %d.%d API version\n"),
            version.Major, version.Minor);
        return MFX_ERR_UNSUPPORTED;
    }
    if ((pParams->CodecId == MFX_CODEC_JPEG) && !CheckVersion(&version, MSDK_FEATURE_JPEG_ENCODE)) {
        msdk_printf(MSDK_STRING("error: Jpeg is not supported in the %d.%d API version\n"),
            version.Major, version.Minor);
        return MFX_ERR_UNSUPPORTED;
    }

    if ((pParams->nRateControlMethod == MFX_RATECONTROL_LA) && !CheckVersion(&version, MSDK_FEATURE_LOOK_AHEAD)) {
        msdk_printf(MSDK_STRING("error: Look ahead is not supported in the %d.%d API version\n"),
            version.Major, version.Minor);
        return MFX_ERR_UNSUPPORTED;
    }
...
    sts = ResetMFXComponents(pParams);
    MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

    return MFX_ERR_NONE;
}

So what's going on with this phenomenon ?? Any idea??

 

 

 

 


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>