Muxing camera preview h264 encoded elementary stream with MediaMuxer
问题 I am working on an implementation of one of the Android Test Cases regarding previewTexture recording with the new MediaCodec and MediaMuxer API's of Android 4.3. I've managed to record the preview stream with a framerate of about 30fps by setting the recordingHint to the camera paremeters. However, I ran into a delay/lag problem and don't really know how to fix that. When recording the camera preview with quite standard quality settings (1280x720, bitrate of ~8.000.000) the preview and the