Skip to main content
Known Participant
May 29, 2012
Question

FMS 4.5 and Flash Player 11 broadcasting H264 incompatible?

  • May 29, 2012
  • 2 replies
  • 5206 views

I'm using FMS 4.5 to record a live stream with H264 encoding. The broadcaster is  Flash Player 11. The resulting MP4 file has video but no audio. I have spent a couple of days trying to figure this one out but it simply doesn't work properly. Could it be possible the audio encoders (Nellymoser and Speex) for Microphone object in Flash Player 11 are not compatible with MP4 container?

Here are some of my findings:

1) If I broadcast without H264 encoding, the resulting FLV file is correct and has both audio and video.

2) If I broadcast using H264 encoding, the resulting F4V/MP4 file has video but no audio.

3) If I record an FLV file with H264 encoding, the resulting file has audio but no video.

I understand that FLV container doesn't allow H264 encoding. But why does the MP4 container outputs with no audio after F4VPP post-processing?

Is there any other alternative solution to this problem? I'll really appreciate some help with this one.

This topic has been closed for replies.

2 replies

Participant
June 29, 2012

hi adeel.raza.  i found this problem too! Do you have solution ?

May 30, 2012

Hi,

Could you please post/send a private message with the piece of code you're using for recording and maybe we could help debug the issue, because I checked on my end and the recording and playback of H264-Speex/NellyMoser in MP4 container is happening just fine for me.

Thanks,

Apurva

Known Participant
May 30, 2012

Hi Apurva,

Here's my flash player broadcaster code:

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

camera.setQuality(0,80);

camera.setMode(320,240,30);

mic.codec = SoundCodec.SPEEX;

mic.encodeQuality = 10;

mic.gain = micVolumeSlider.value;

mic.rate = 16;

mic.framesPerPacket = 2;

mic.setUseEchoSuppression(true);

mic.setSilenceLevel(0);

videoDisplay.attachCamera(camera);

h264Settings = new H264VideoStreamSettings();

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

h264Settings.setQuality(0, 80);

h264Settings.setMode(320,240,30);

sendStream.attachAudio(mic);

sendStream.attachCamera(camera);

sendStream.videoStreamSettings = h264Settings;

sendStream.publish(eventID, "live");

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

For the server-side, I'm using the default main.asc that comes with livepkgr (except that I have changed f4f: to mp4:) and im publishing the stream to EVENTID?adbe-live-event=liveevent&adbe-record-mode=record.

Can you tell me if you used the same settings to broadcast from flash player in your test? Did you play your mp4 back in a flash player with or without f4vpp post-processing?

May 30, 2012

Could you try with "mp4:" + streamObj.name+".mp4", I'm still not able to reproduce the issue at my end. Also how're you playing back the stream?

Thanks,

Apurva