I want to output elementary video streams with media recorder in android for the purpose of streaming with live555. In essence, I want to get media recorder to output an MPEG-4 Video Elementary Stream file (an .m4e file) or an H.264 Video Elementary Stream file (an .264 file). Is it possible to do that with media recorder on android? Or is there any other way to get it work?
I want to output elementary video streams with media recorder in android for the
Share
The answer is, as I understand, that it is not easy to do that with
MediaRecorderwhile recording. You may do that without much difficulty, usingffmpegonce the video is recorded. The reason is that,MediaPlayercannot record as elementary streams. Even if we record video only, it will be put in a container format such as 3GPP or MP4. Now, for tools likeffmpegto work on these files, they need the 3GPP or MP4 header information must be present on the recorded file. But,MediaPlayerwill write those headers to the file only after it finished recording.