• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Adding images to an audio file?

ar792

Newbie
Is it possible to draw images(from an imageview) into an audio file which is being recorded in .mp4 format?
If so, by what methods?

Code for the audiorecorder:

import....

@override
protectedvoid onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

record=(Button)findViewById(R.id.start);
stop=(Button)findViewById(R.id.stop);
play=(Button)findViewById(R.id.play);

stop.setEnabled(false);
play.setEnabled(false);
outputFile =Environment.getExternalStorageDirectory().getAbsolutePath()+"/sample.mp4";;

myAudioRecorder=newMediaRecorder();
myAudioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
myAudioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
myAudioRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB);
myAudioRecorder.setOutputFile(outputFile);

........
}
...
}
 
Back
Top Bottom