MasayukiSuda / Mp4Composer-android

This library generate an Mp4 movie using Android MediaCodec API and apply filter, scale, trim, transcode, crop, timeScale, mute and rotate Mp4.
MIT License
956 stars 219 forks source link

How MediaExtractor switch trackIndex from video to audio? #94

Open andev009 opened 3 years ago

andev009 commented 3 years ago

Before runPipelines, called selectTrack for video and audio, but for VideoComposer and AudioComposer 's stepPipeline , use mediaExtractor.getSampleTrackIndex to get current TrackIndex, the value will from 1 to 0, or from 0 to 1, But I can't find where to switch the TrackIndex, where to switch TrackIndex?