Files
Linux_Drivers/middleware/v2/sample/audio/cvi_aac_player
sam.xiang 89f501af2a [middleware] add cvitek's multimedia framework
Change-Id: Iffc3cf32b99b95ba3ba534081a97881a2e004a14
2023-03-10 20:36:18 +08:00
..

audio AAC sample code

[Notice]:

The aac player is based on the 3rdparty library fdk_aac built by Cvitek tool-chain. User Can download the source code to build out the library personally. Or contact Cvitek FAE to get the library required into adjust embedded platform.

  • From the fdk_aac license claim: Redistribution and use in source and binary forms, with or without modification, are permitted without payment of copyright license fees provided that you satisfy the following conditions: You must retain the complete text of this software license in redistributions of the FDK AAC Codec or your modifications thereto in source code form. See more through webpage: https://fedoraproject.org/wiki/Licensing/FDK-AAC
  • From Cvitek: Cvitek only suggest the using of fdk_aac codec for AAC transcode. We(Cvitek) do not provide the source code inside the SDK package. The usage of the AAC codec should follow the origin fdk_aac license rule . Cvitek only provide the sample for usage of AAC codec. Further payment or copyright under business concern will not be the responsibility of Cvitek without contacting Cvitek product.

[Build Code]:

You can:

  • If you want to use aacplayer, make sure that aac_lib/64bit or aac_lib/64bit has libfdkaac_dec.so.
  • Contact the FAE of Cvitek to get the libs.
  • Or check the [build by user] paragraph in below section.

[Code flow/ Sample code]:

Check the main function in cvi_aac_player.c User can see the encode and decode procedure.

[build by user]

-Download the toolchain for your project (ex. aarch64 / arm /...) -Enter aac_lib -Download fdk_aac source in current folder, and rename it to fdkaac. All the source of fdk aac should under the folder of fdkaac. -The fdk_aac version we used is 2.0.1, you can check the release note below: (https://github.com/mstorsjo/fdk-aac/releases) -make clean; make -In aac_lib/32bit or aac_lib/64bit folders: libfdkaac_dec.so update to your embedded board and try the encode decode.