HRA123 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Support Android's MediaCodec #430

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Android's MediaCodec API is the standard way of working with audio and video 
streams on Android devices. There is a class that allows for simple muxing of 
streams - MediaMuxer, which takes streams configured via 
    android.media.MediaFormat. Unfortunately, MediaMuxer only supports mp4 (see 
android.media.MediaRecorder.OutputFormat), which cannot be streamed live - you 
can only do downloading and progressive streaming.

If would be great to create an equivalent of MediaMuxer in JavaCV - something 
that takes streams, configured with MediaFormat, then muxes them behind the 
scene, and feeds continuously to the recorder.

This JavaCV enhancement, ie the coupling of Android media sources with FFmpeg's 
battery of features would give Android devices a leap forward because 
developers could suddenly use any of ffmpeg's latest features without the 
dependency on the slow Android release train.

Original issue reported on code.google.com by eug...@parsable.com on 11 Feb 2014 at 10:14

GoogleCodeExporter commented 8 years ago
Sure, that would interesting. But I would like that we make things portable, so 
if we could make it work with Java SE as well, it would be great.

Original comment by samuel.a...@gmail.com on 12 Feb 2014 at 5:52

GoogleCodeExporter commented 8 years ago
Oh BTW, in what way is Xuggler insufficient in this respect?

Original comment by samuel.a...@gmail.com on 12 Feb 2014 at 11:58

GoogleCodeExporter commented 8 years ago
I think it is! Thank you for the tip. I'll give it a whirl.

Original comment by eug...@parsable.com on 12 Feb 2014 at 5:59

GoogleCodeExporter commented 8 years ago
I am trying to do something similar. Granted, I don't have the extended 
knowledge of ffmpeg but I've included my source code in the following stack 
overflow question: 
http://stackoverflow.com/questions/28775931/muxing-android-mediacodec-encoded-h2
64-packets-into-rtmp

Original comment by vadym.dr...@gmail.com on 1 Mar 2015 at 9:03