Questions tagged [mediamuxer]

Android class : "MediaMuxer facilitates muxing elementary streams."

Android class : "MediaMuxer facilitates muxing elementary streams." https://developer.android.com/reference/android/media/MediaMuxer

172 questions
0
votes
1 answer

Use MediaMuxer to encode a MP4 file but it crashes when calling mediaMuxer.stop()

I'm using MediaMuxer and MediaCodec to encode both Video(H264) data and Audio(AAC-LC) data from camera and audio to a MP4 file. But the MediaMuxer object sometimes crashes at mediaMuxer.stop() and the error log is 11-03 16:28:36.956: A/DEBUG(711):…
user3032481
  • 548
  • 6
  • 18
0
votes
1 answer

Writing Tee Pseudo muxer of FFMPEG by C++ code

Is there anyone who knows how to use Tee pseudo muxer of ffmpeg by c++ code. Kindly guide in doing this. I am working on getting multiple outputs of muxed transport stream (ts) data. I am able to mux aac and h264 in ts. But i have to get muxed ts…
0
votes
1 answer

Unable to change ARGB to YUV420Planar

I'm attempting to use MediaCodec and MediaMuxer to change a series of JPEGs into a mp4. No matter what I do, I always get a green staticy screen as output on the MP4. Code Follows: public class AvcEncoder { public bool CanEncode = true; …
CurtDotNet
  • 11
  • 4
0
votes
0 answers

releaseEncoder MediaMuxer in android 4.1

I have created an application containing image to video maker and i using MediaMuxer to creating video from sequence of images but SlideEncoder add second image to auto close MediaMuxer and application is crush. 05-22 07:58:33.691…
Ashish Virani
  • 182
  • 1
  • 15
0
votes
1 answer

MediaMuxer sometimes resulting in black video

I am using AndroidEncoder to produce a H264 video with AAC audio that I send both over an RTMP network and also store locally in a MP4 file using MediaMuxer. Broadcasting is working nicely over RTMP, but when saving locally the resulting video is…
M Rajoy
  • 4,028
  • 14
  • 54
  • 111
0
votes
0 answers

How to reach 30fps on recording audio and video using MediaCodec MediaMuxer on android?

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…
0
votes
1 answer

Android image to video

How I can load an image as a texture and rendering it through GLES to use the MediaCodec Surface input approach? I was started from EncodeAndMuxTest example. Thank you in advance.
Siv
  • 193
  • 2
  • 16
0
votes
1 answer

Encode Images to Video (Mediacodec)

I need to encode a series of 10 bitmaps into a video using Mediacodec. I do not want to use FFmpeg or Jcodec because its very slow. I have searched on the Internet but can't seem to find a fully working sample code that i can modify. Here is what…
0
votes
0 answers

Android MediaProjection performance improvements

I Would like to ask, if it's possible to improve performance for MediaProjection. Edited after fadden answer. Pseudo structure of app: 1) Fullscreen FrameLayout in AppCompatActivity:
0
votes
1 answer

Issues encoding audio with Mediacodec and Motorola mobile

I have been able to implement a video/audio decoder and encoder. On my Samsung S3, everything works fine. Then I deployed into a Samsung, and I had some rotation issues I have fixed, but the final encoded video does not have audio. When I stop the…
Gabriel Bursztyn
  • 656
  • 8
  • 24
0
votes
1 answer

Mediacodec to encode video online

I was able to implement a code which records video bases on CameraCaptureActivity from grafika. Now I can record myself counting from 1 to 10, but when I go to see the recorded video I am saying 1,3,8,9, that is I missed some frames to be recorded.…
Gabriel Bursztyn
  • 656
  • 8
  • 24
0
votes
1 answer

Saving h.264 streaming video using MediaMuxer on Android

(I'm not really good in English but I'll do my best.) I'm working on a Android app that saves received h.264 streaming video/audio frames into a clip. And I ran into a problem that mentioned here, "Missing codec specific data." I tried some method…
Owen Hsieh
  • 139
  • 8
0
votes
1 answer

I Have Select One Video and Audio file and now I Want To add My Selected Audio/Sound in to My Video

I Have Select One Video and Audio file and now I Want To add My Selected Audio in to Video And I Want to Save The output file in .mp4 in external or internal Storage directory I search on Google and Found that ffmpeg,mediaMuxer,mp4parser but i can…
0
votes
0 answers

Combine EncodeAndMux with HelloEffects in Android

I am trying to create a video with a series of images using MediaCodec and MediaMuxer. I want to also apply an Effect on each Bitmap before the encoding. The video gets created with the correct duration but the output is only black screen. I have…
Kaitis
  • 628
  • 9
  • 21
0
votes
1 answer

What, if any, are the differences in MediaCodec encoders (I420, NV12, Planar, Semi-Planar, etc)?

Referring to this page: http://bigflake.com/mediacodec/ A5. The color formats for the camera output and the MediaCodec encoder input are different. Camera supports YV12 (planar YUV 4:2:0) and NV21 (semi-planar YUV 4:2:0). The MediaCodec encoders…
1 2 3
11
12