Files
carbon 0545e9dc6d init version 2024-05-07
commit d1edce71135cc6d98c0a4b5729774542b676e769
Author: sophgo-forum-service <forum_service@sophgo.com>
Date:   Fri Mar 15 16:07:33 2024 +0800

    [fix] recommend using ssh method to clone repo.
    [fix] fix sensor driver repo branch name.
2024-05-07 19:36:36 +08:00
..
2024-05-07 19:36:36 +08:00
2024-05-07 19:36:36 +08:00
2024-05-07 19:36:36 +08:00
2024-05-07 19:36:36 +08:00
2024-05-07 19:36:36 +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.