I am trying to record audio and video with mediaMuxer. I followed the example for video recording from https://github.com/google/grafika but when I tie in an audiostream it results in a broken video over half the time. Does anyone know of any examples or tutorials that show how to record both audio and video properly?
Related
I am playing the .mp4 h264 video in exoplayer with defaultExtractor. Video is not seekable. When i seek the video it goes to start everytime i want to seek it. Others MP4 videos plays fine without any issue . Help me I am beginner of exoplayer .
I would like to record 1920x1080p, H264 video from camera and audio from mic. I started with the sample code. This only gets 15fps at the max.
https://github.com/saki4510t/AudioVideoRecordingSample
Another sample code can reach 30fps without audio.
https://github.com/google/grafika "Show + capture camera"
I am running Android 5.1, on which MediaRecorder can record AV at 30fps. But I have to access the video data before muxer.
I guess it is related to timestamp on both video and audio. I was able to reach 26fps with AV out of sync.
Any suggestions on 30fps on AudioVideoRecordingSample?
I have mute video file and separate audio file for same video. How can I play video with separate audio in android? I have tried using VideoView but unable to play audio separately. can anyone help in this!!
Before you start everything running, first you prepare both video and audio. When both of them are prepared only after that you can push the Start button.. and they should be synchronized ( if you recorded the audio part at the same time you started the video part)
I am trying to add a short audio clip on top of a video clip. I have been able to use Android's MediaMuxer to combine a .mp4 with video only and a .mp4 with audio only, but my current task is to overlay an .mp4 audio clip on top of a video+audio .mp4 clip in the middle. I have tried using the mp4parser library that has been suggested in other threads but have found troubles with that route (SampleDescriptionBoxes never match).
My idea was to use writeSampleData() to the MediaMuxer with data extracted from separate .mp4 clips. I would write the audio from the original video, then at the given point start writing the new audio. Finally, I would return to the audio from the original video again. Does anyone know if this is feasible? I am having troubles mostly because I don't understand how presentationTimeUs is supposed to work and the result is not streamable.
Any suggestions/help are appreciated!
Is it possible to capture video from a playing video (not from the camera) on Android? I mean, that it records a video from surface video output.
As far as I know, mediaRecorder can record it only from Camera. But, I'm trying to trim a video for a specific range while it plays this video.
Is it possible?