Only Audio Playing - Android 7.0

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android

Research direction

Reproduce the issue on Android 7.0 and 8.0 using the MediaRecorder setup shown, including the listed MPEG-4, H.264, and AMR_NB settings. Trace the sample's recording and playback paths; done means a recorded video displays video as well as audio on the affected OS versions.

Written by the indexing model from the issue text.

Description

migrated googlesamples

I am facing an issue on OS 7.0 and 8.0, When i recorded video and playing it, Its playing only audio not showing video.

----Using following setup
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
if (mNextVideoAbsolutePath == null || mNextVideoAbsolutePath.isEmpty()) {
mediaFileR = getVideoFilePath(getActivity().getApplicationContext());
}
mMediaRecorder.setOutputFile(mediaFileR.getAbsolutePath());
mMediaRecorder.setVideoEncodingBitRate(10000000);
mMediaRecorder.setVideoFrameRate(30);
mMediaRecorder.setVideoSize(mVideoSize.getWidth(), mVideoSize.getHeight());

    mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);// MPEG_4_SP
    mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
Dominant language
Kotlin
Stars
1.4k
Forks
777
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/media-samples

All issues in android/media-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.