Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
193 Views

Hello_encode oneVPL project

Hi

I am doing some tests with the project Hello_encode of oneAPI (release beta 08).

The project (visual studio 2017 c++ )work fine with HEVC codec, for my use I would like to encode the same input file to h264, so I changed this line of code

mfxU32 codecID = MFX_CODEC_HEVC;

to

mfxU32 codecID = MFX_CODEC_AVC;

Run the program it exit with error.

What is the problem, I have other thing to fix in a code?

thanks

regards

0 Kudos
10 Replies
Highlighted
Moderator
173 Views

Hi Zanaboni__Gabriele,

 

Thank you for contacting Intel Customer Support. What error are you seeing when changing the codecID?

 

Update:

I believe the error you are seeing is due to AVC not being implemented. Per the Intel® oneAPI Base Toolkit Release Notes (Beta Update 8):

"CPU plugin implementation with H.265 & AV1 SW Decode/Encode"

 

Regards,

Jesus

 

0 Kudos
Highlighted
159 Views

Hi Jesus

So you are saying that we lose the compatibility with the previous version of oneAPI?

Because from release notes, since beta 04, I read:

Intel® oneAPI Video Processing Library

  • Basic Encode (AVC, HEVC) for GEN9
  • Transcode (AVC, HEVC)
  • Enhanced VPL Memory; Improved extension design and Decode (AVC, HEVC)

Regards

Gabriele

0 Kudos
Highlighted
Moderator
144 Views

Hi Gabriele,


Thanks for pointing that out, since AVC was introduced at an earlier release it should also be included. Let me check with my peers to see if this is a bug.


Regards,

Jesus


0 Kudos
Highlighted
Moderator
120 Views

Hi Zanaboni__Gabriele,


The issue you saw is expected in Beta08. We have added AVC encode support in Beta09 which will be released soon, please check our new release.


oneVPL is under development, so there are and will be changes until the official release at the end of the year. I am sorry for any inconvenience and please let me know your feedback.


Beta09 will be a CPU only release, because of the license restriction, there will be extra steps to enable AVC encoder except the source code change. Please read our get started guide and sample document after the release.


Mark


0 Kudos
Highlighted
85 Views

Hi Mark_L_intel1

Sorry sir, what you means when you say,

...there will be extra steps to enable AVC encoder...

there is something to pay (or get a licence in some way) for encode AVC in software?

Regards

Gabriele

0 Kudos
Highlighted
Moderator
76 Views

Hi Zanaboni__Gabriele,


Sorry for the late response since I want to wait for Beta09 release to explain easily. So here is our new release at GitHub:

https://github.com/oneapi-src/oneVPL

If you go to the build section under "optionally enable h264 encoder":

https://github.com/oneapi-src/oneVPL#optionally-enable-h264-encode


You can see the license I meant is the GPL license, for AVC encoder, the software library we used has a license limitation.


But you can try with Beta09 release with AVC encoder now.


Mark


0 Kudos
Highlighted
61 Views

Hi Mark_L_intel1

I installed the Intel oneAPI beta09, then as you suggested I downloaded the code from Git-Hub and run
from console the bootstrap gpl command.
Almost at the end of the batch, soon after cloning into 'ffmpeg', unfortunately the batch had some problems, and stopped the execution, It seems like it freeze without exit. Probably it has problems when  does the Git config, anyway I can't complete the install.
Do you have some hints to complete the batch bootstrap and continue with build?

Thanks

Regards

Gabriele

0 Kudos
Highlighted
Moderator
41 Views

Hi Zanaboni__Gabriele,


Apology for my mistake and thanks so much to support our product.


The process you tried is from our open source site, not the official landing page for release.


I believe your goal is to try our sample code, the easy way to start to install the release package.


Here is our landing page:

https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onevpl.html


oneVPL belongs to our Base Toolkit of our oneAPI product, so it is one component among the list of the installer. You can download the installer and following the Get Started Guide to run the sample.


Let me know if you have any issues.


Mark




0 Kudos
Highlighted
36 Views

Hi Sir,

As I said in the post before, I already installed the oneAPI Beta09, and as a firsth attempt
I created the Hello_encode project with the wizard present in visual studio, the program works fine, encoding an input file I420 to HEVC. Well, then I would like to use the same project to encode in h264. To do so I thought was enough change one line of code (see Image), no true. The program quit during initialization.

What should I do to encode in h264?

Regards

Gabriele

0 Kudos
Highlighted
Moderator
28 Views

Hi Zanaboni__Gabriele,


Sorry my mistake, this is the new release so I didn't go through the build process yet. It looks like your first try has the right direction.


I did try READM.md at https://github.com/oneapi-src/oneVPL and here is the steps you can try, it works for me:

  1. Clone the source code
  2. Following "BUILD.md" to setup the environment.
  3. "source ./script/bootstrap gpl" to build the library and dependency, it will create a directory _extBuild.
  4. "build gpl" to build the oneVPL and sample code.
  5. Run hello_encode according to README.md
  6. Change the hello_encode.cpp so it output AVC.
  7. Re-run "build gpl"
  8. Run hello_encode again, this time, it should output AVC output


Let me know if you have any questions.


Mark


0 Kudos