I want to extract some portion of video when user is playing that video via my application. While playing a video user can give start and end duration to cut the video. so are there any way to cut the video based on duration and save to sd card ?
You may try to compile and integrate ffmpeg into your project. I used ffmpeg to cut video and audio, is very fast, no recording needed. I've NO experience on doing it on android, but It should work. Here you have the official wiki page about ffmpeg on android:
https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20compile%20FFmpeg%20for%20Android