android - How to record video and audio with MediaCodec and MediaMuxer -



android - How to record video and audio with MediaCodec and MediaMuxer -

i able record(encode) video help of mediacodec , mediamuxer. next, need work on sound part , mux sound video help of mediacodec , mediamuxer.

i facing 2 problems:

how encode sound mediacodec. need encode sound , video in separate threads?

how can pass sound , video info mediamuxer (as writesampledata() method takes 1 type of info @ time)?

i referred mediamuxertest using mediaextractor. need utilize mediacodec video encoding done mediacodec. please right me if wrong.

any suggestion or advice helpful there no proper documentation available these new apis.

note:

my app targeting api 18+ (android 4.3+). i have referred grafika video encoding.

no, don't need separate thread audio, utilize 2 separate mediacodec instances.

the first parameter of writesampledata trackindex, allows specify track each packet corresponds to. (by running addtrack twice, 1 time each track, 2 separate track ids.)

android audio video mediacodec mediamuxer

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -