Skip to main content
Participant
October 4, 2013
Question

How to use H264 video codec over RTMP live encoding on Android?

  • October 4, 2013
  • 2 replies
  • 2575 views

Code  ( Flash builder 4.7, Air 3.8 on Android/Desktop )

----------------------------------------------------------------------------

ns_out = new NetStream(nc);

ns_out.attachCamera(cam);

ns_out.attachAudio(Microphone.getMicrophone() );

var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_3_1);

ns_out.videoStreamSettings = h264Settings;

ns_out.publish("mp4:test", "live");

----------------------------------------------------------------------------

Video codec is H264  over RTMP on Desktop enviroment, but on Android it's SPARK!!

How to use H264 video codec over RTMP live encoding ?

I'd like to make live endcoder on Android.

This topic has been closed for replies.

2 replies

flashdictionary
Inspiring
March 21, 2014

I think that with the current state of the Adobe AIR Adobe FLash platforms, there is too much work to do to get echo cancellation to work on all platforms, and to get video to work as expected too. I think Adobe could solve many of these issues by implementing native WebRTC into the AIR platform, see this post here:

http://forums.adobe.com/message/6232094#6232094

flashdictionary
Inspiring
October 9, 2013

Other people have had this question in the past. (See here)

http://forums.adobe.com/message/4149715#4149715

Nobody from Adobe has answered the question yet, but I can confirm that using our app on iPad, Windows, and MacOSX all are transmitting H264 as expected. But using the same code on the Android results in the Android transmitting video using the Sorenson codec.

This is a problem for our app, and we are hoping for a resolution from Adobe. So I just logged the feature request here in the Adobe bugbase:

https://bugbase.adobe.com/index.cfm?event=bug&id=3648262

So be sure to add your vote to the bugbase if you want Adobe to work on this.