- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I wanted to test HEVC encoding of a simply raw video in NV12 pixel format.
I started with the sample_encode application you provided in the Media SDK, but unfortunately i got following error coming from the Query method of the encoder that checks the parameters.
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), AllocFrames, Query (for encoder) failed at .../pipeline_encode.cpp:966
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), ResetMFXComponents, AllocFrames failed at .../pipeline_encode.cpp:2073
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), Init, ResetMFXComponents failed at .../pipeline_encode.cpp:1854
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), main, pPipeline->Init failed at .../sample_encode.cpp:1745
I also enabled the tracer and the log on text file, but personally i couldn't find the problem. Following is the core library log on text file:
804 2022-3-11 16:32:51 mfx_tracer: dll_init() +
804 2022-3-11 16:32:51 mfx_tracer: lib=libmfxhw64.so.1
804 2022-3-11 16:32:51 mfx_tracer: dll_init() -
804 2022-3-11 16:32:51 function: MFXInitEx(mfxInitParam par={.Implementation=MFX_IMPL_HARDWARE_ANY, .Version=0x7ffff10c8784}, mfxSession *session=0x5604c7746408) +
804 2022-3-11 16:32:51 par.Implementation=MFX_IMPL_HARDWARE_ANY
804 2022-3-11 16:32:51 par.Version.Major=1
804 2022-3-11 16:32:51 par.Version.Minor=0
804 2022-3-11 16:32:51 par.Version.Version=65536
804 2022-3-11 16:32:51 par.ExternalThreads=0
804 2022-3-11 16:32:51 par.NumExtParam=0
804 2022-3-11 16:32:51 par.ExtParam=0000000000000000
804 2022-3-11 16:32:51 par.reserved2[]={ 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 par.GPUCopy=0
804 2022-3-11 16:32:51 par.reserved[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 mfxSession session=0
804 2022-3-11 16:32:51 >> MFXInitEx called
804 2022-3-11 16:32:51 par.Implementation=MFX_IMPL_HARDWARE_ANY
804 2022-3-11 16:32:51 par.Version.Major=1
804 2022-3-11 16:32:51 par.Version.Minor=0
804 2022-3-11 16:32:51 par.Version.Version=65536
804 2022-3-11 16:32:51 par.ExternalThreads=0
804 2022-3-11 16:32:51 par.NumExtParam=0
804 2022-3-11 16:32:51 par.ExtParam=0000000000000000
804 2022-3-11 16:32:51 par.reserved2[]={ 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 par.GPUCopy=0
804 2022-3-11 16:32:51 par.reserved[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 function: MFXInitEx(3.682 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXQueryVersion(mfxSession session=0x5604c7746030, mfxVersion *version=0x7ffff10c8834) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 version.Major=0
804 2022-3-11 16:32:51 version.Minor=0
804 2022-3-11 16:32:51 version.Version=0
804 2022-3-11 16:32:51 >> MFXQueryVersion called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 version.Major=1
804 2022-3-11 16:32:51 version.Minor=35
804 2022-3-11 16:32:51 version.Version=65571
804 2022-3-11 16:32:51 function: MFXQueryVersion(0.005 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXVideoENCODE_Close(mfxSession session=0x5604c7746030) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 >> MFXVideoENCODE_Close called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 function: MFXVideoENCODE_Close(0.007 msec, status=MFX_ERR_NOT_INITIALIZED) -
804 2022-3-11 16:32:51 function: MFXClose(mfxSession session=0x5604c7746030) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7746030
804 2022-3-11 16:32:51 >> MFXClose called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7746030
804 2022-3-11 16:32:51 function: MFXClose(0.721 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXClose(mfxSession session=0) +
804 2022-3-11 16:32:51 mfxSession session=0
804 2022-3-11 16:32:51 mfx_tracer: dll_init() +
804 2022-3-11 16:32:51 mfx_tracer: lib=libmfxhw64.so.1
804 2022-3-11 16:32:51 mfx_tracer: dll_init() -
804 2022-3-11 16:32:51 function: MFXInitEx(mfxInitParam par={.Implementation=MFX_IMPL_HARDWARE_ANY, .Version=0x7ffff10c8784}, mfxSession *session=0x5604c7746408) +
804 2022-3-11 16:32:51 par.Implementation=MFX_IMPL_HARDWARE_ANY
804 2022-3-11 16:32:51 par.Version.Major=1
804 2022-3-11 16:32:51 par.Version.Minor=0
804 2022-3-11 16:32:51 par.Version.Version=65536
804 2022-3-11 16:32:51 par.ExternalThreads=0
804 2022-3-11 16:32:51 par.NumExtParam=0
804 2022-3-11 16:32:51 par.ExtParam=0000000000000000
804 2022-3-11 16:32:51 par.reserved2[]={ 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 par.GPUCopy=0
804 2022-3-11 16:32:51 par.reserved[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 mfxSession session=0
804 2022-3-11 16:32:51 >> MFXInitEx called
804 2022-3-11 16:32:51 par.Implementation=MFX_IMPL_HARDWARE_ANY
804 2022-3-11 16:32:51 par.Version.Major=1
804 2022-3-11 16:32:51 par.Version.Minor=0
804 2022-3-11 16:32:51 par.Version.Version=65536
804 2022-3-11 16:32:51 par.ExternalThreads=0
804 2022-3-11 16:32:51 par.NumExtParam=0
804 2022-3-11 16:32:51 par.ExtParam=0000000000000000
804 2022-3-11 16:32:51 par.reserved2[]={ 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 par.GPUCopy=0
804 2022-3-11 16:32:51 par.reserved[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 function: MFXInitEx(3.682 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXQueryVersion(mfxSession session=0x5604c7746030, mfxVersion *version=0x7ffff10c8834) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 version.Major=0
804 2022-3-11 16:32:51 version.Minor=0
804 2022-3-11 16:32:51 version.Version=0
804 2022-3-11 16:32:51 >> MFXQueryVersion called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 version.Major=1
804 2022-3-11 16:32:51 version.Minor=35
804 2022-3-11 16:32:51 version.Version=65571
804 2022-3-11 16:32:51 function: MFXQueryVersion(0.005 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXVideoENCODE_Close(mfxSession session=0x5604c7746030) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 >> MFXVideoENCODE_Close called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7745138
804 2022-3-11 16:32:51 function: MFXVideoENCODE_Close(0.007 msec, status=MFX_ERR_NOT_INITIALIZED) -
804 2022-3-11 16:32:51 function: MFXClose(mfxSession session=0x5604c7746030) +
804 2022-3-11 16:32:51 mfxSession session=0x5604c7746030
804 2022-3-11 16:32:51 >> MFXClose called
804 2022-3-11 16:32:51 mfxSession session=0x5604c7746030
804 2022-3-11 16:32:51 function: MFXClose(0.721 msec, status=MFX_ERR_NONE) -
804 2022-3-11 16:32:51 function: MFXClose(mfxSession session=0) +
804 2022-3-11 16:32:51 mfxSession session=0
804 2022-3-11 16:32:51 status=MFX_ERR_INVALID_HANDLE
804 2022-3-11 16:32:51 status=MFX_ERR_INVALID_HANDLE
It seems that the h265 encoding is not supported, but in the online docs it is written that it is. The strange thing is that if i use sample_decode it works properly, so the problem is related only to the h265 ncoding.
The target device is an Intel evaluation bord for Elkhart Lake with Intel Yocto image.
CPU: Intel Atom x6425RE
Intel media sdk: version 21.3.5
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Do you have any news regarding this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting on Intel Communities.
We apologized for the delay from our side.
Please can you answer the following questions:
- Please can you share the command to used for running the HEVC encoding and the sample input file?
- Did you made any changes in code of sample_encode ? If yes please share that file.
- Can you share the exact model number/name of the Intel evaluation board that you are using?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thanks for your reply.
I didn't made any chages to te sample_encode sources.
The evaluation board is the Elkhart lake Customer reference board (Fab C), intel reference document 607610.
The CPU is Intel Atom x6425RE
The command i ran is:
sample_encode h265 -i video.raw -o video.h265 -nv12 -w 3840 -h 2160
The video.raw is made of 400 frames in nv12 pixel format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Do you have any news?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are sorry for the delay. We are checking on it internally, will get back to you soon with an update.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
any updates?
From intel docs the H.265 encoding is supported by Elkhart lake CPU, but in reality the sample_encode does not work with h265.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are working on this internally, will let you know the updates.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
any updates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sid023 - huge apologies. Your issue was escalated to our priority support tool with only the original information. We had not realized you provided more information. This is a new process for us, please be patient just a bit longer.
We will test this and get back to you.
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sid023,
We have reproduced your issue and are escalating to development. Thank you for reporting this.
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sid023,
I was chatting with a colleague. It turns out your command line was not quite right. Please try this:
This command should encode the raw file to h265: sample_encode h265 -i video.raw -o video.h265 -w 3840 -h 2160 -sw
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sid023,
on my side, the following command is working on x6425RE:
sample_encode h265 -i video.raw -o video.h265 -w 3840 -h 2160 -lowpower:on
The LowPower option is mandatory for HEVC with hw acceleration.
Nico
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page