Hi All,

I have extended the MediaRecorder class to support reading from a raw video
file. I am using the MediaRecorder class to create the output as Mpeg2TS
file with H264 encoding.

recorder = new MediaRecorder();
recorder.setVideoSource(MediaRecorder.VideoSource.MYSOURCE); //Extended
media source - my implementation
recorder.setOutputFormat(MediaRecorder.OutputFormat.OUTPUT_FORMAT_MPEG2TS);
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
recorder.setOutputFile("/mnt/sdcard/output.ts");

I could get the output file "output.ts". But i could not play it on any of
the available players like VLC player. I could not also play it from
Gallery application on the same emulator where its recorded.

Can anybody provide suggestions as to how i can view the contents of the ts
file?

Please note when i had done the same specifying output format as
MediaRecorder.OutputFormat.THREE_GPP. I could play the output file in 3gp
format using VLC player.

Thanks,
Hema

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to