common:application_note:software:change_encoder

The ODROID-C4/N2 support the H.265(HEVC) and H.264(AVC) codec Encoder.
And you can select the codec for video capturing by Camera on the Android.
Also you can customize your own settings to capture Camera's video & audio codecs.

Please following the commands on the ODROID-C4/N2 board.

target
$ cd /odm
$ vi default.prop

And change the configuration xml file name of media.settings.xml.

Default Setting

...
media.settings.xml=vendor/etc/media_profiles_V1_0_h264.xml
...

Codec Selection table

Video codec / Audio codec path
H.264(AVC)/ACC /vendor/etc/media_profiles_V1_0_h264.xml
H.265(HEVC)/ACC /vendor/etc/media_profiles_V1_0_hevc.xml
H.264(AVC)/ARMWB /system/etc/media_profiles_V1_0.xml

If you have ODROID-N2/N2+ with 4Gbyte RAM, Edit /odm/env.ini

target
$ cd /odm
$ vi env.ini
...
overlays="i2c0 i2c1 spi0 uart0 pwm_cd pwm_ef codec_mm_cma"  
...

You can customize codec selection configuration by edit the media_profiles.xml.
Some of codecs are encoded by hardware encoder, but most of codecs are encoded by software encoder.
Please check it and make your own settings.
And please check /system/etc/media_profiles_V1_0.xml as a reference.

Default supported containers are 3gp and mp4.

Video Codec Support List

Name H/W Encoder
H.263 X
H.264(AVC) O
H.265(HEVC) O

Audio Codecs Support List

AMR-WB / AAC / HE-AAC / AAC-ELD / AMR-NB

  • common/application_note/software/change_encoder.txt
  • Last modified: 2021/04/27 16:43
  • by codewalker