Back to project page Media-Pack.
The source code is released under:
Apache License
If you think the Android project Media-Pack listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// // INTEL CORPORATION PROPRIETARY INFORMATION // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Intel Corporation and may not be copied // or disclosed except in accordance with the terms of that agreement. // Copyright (c) 2013-2014 Intel Corporation. All Rights Reserved. ///* ww w . j av a 2s .c om*/ package com.intel.inde.mp.samples; import com.intel.inde.mp.MediaComposer; import com.intel.inde.mp.effects.SubstituteAudioEffect; import java.io.IOException; public class ComposerAudioEffectCoreActivity extends ComposerJoinCoreActivity { @Override protected void setTranscodeParameters(MediaComposer mediaComposer) throws IOException { mediaComposer.addSourceFile(mediaUri1); mediaComposer.setTargetFile(dstMediaPath); configureVideoEncoder(mediaComposer, videoWidthOut, videoHeightOut); configureAudioEncoder(mediaComposer); /////////////////////////// SubstituteAudioEffect effect = new SubstituteAudioEffect(); effect.setFileUri(this, mediaUri2); mediaComposer.addAudioEffect(effect); } @Override protected void getDstDuration() { } }