• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

FP 11+ Audio Encoding Issue With H.264 Video

Community Beginner ,
Nov 04, 2011 Nov 04, 2011

Copy link to clipboard

Copied

I'm not sure if this issue is with the Flash Player when encoding the stream or with the Flash Media Server that is saving the stream so I'll be posting in both forums.

The problem is when publishing an audio and video stream from Flash Player 11 (Windows, FF) to the Flash Server using the H.264 video codec. The audio portion of the recorded stream doesn't appear to be playable by anything and FFMPEG cannot process the audio stream. Here are the differences in the stream:

When using Sorenson as the video codec and recording the stream (flv) from the Flash server, the information about the audio stream from FFMPEG is this:

Stream #0.0: Audio: nellymoser, 22050 Hz, mono, s16

This clip can be played and processed by various players and FFMPEG with no problem.

When using H.264 as the video codec and recording the stream (f4v) from the Flash server, the information about the audio stream from FFMPEG is this:

Stream #0.1(eng): Audio: nmos / 0x736F6D6E, 22050 Hz, 1 channels

This clip does not play the audio and cannot be understood by FFMPEG.

I tried using the Speex codec as well and I have a similar issue as above (it doesn't play the audio stream and FFMPEG can't understand it).

Note the version of FFMPEG I'm using supports both Nellymoser and Speex so there should not be an issue.

1) Any idea why the codec appears different and won't play.

2) How to achieve the goal: send H.264 video stream with audio from the Flash Player and have a recorded stream with playable audio.

Thanks!

Views

3.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Nov 10, 2011 Nov 10, 2011

Copy link to clipboard

Copied

Can you test with today's release, 11.1.102.55? If same, please log a bug in public bugbase.

thanks,

Hitomi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 11, 2011 Nov 11, 2011

Copy link to clipboard

Copied

The problem still exists. I've created a bug for it here:https://bugbase.adobe.com/index.cfm?event=bug&id=3044308

Please let me know what you find. Unfortunately this bug results in the complete inabilty to have audio in recorded clips if you do not stream them back through FMS.

Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 28, 2011 Nov 28, 2011

Copy link to clipboard

Copied

Unfortunately, H.264 video and nellymoser audio is not supported in f4v container. I do not think you can record on fms.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 28, 2011 Nov 28, 2011

Copy link to clipboard

Copied

So are you saying that if I use H.264 as the codec to stream video using FP11, there will be no means to record that video with playable audio using Flash Media Server (including using the Post Processor Tool)?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 28, 2011 Nov 28, 2011

Copy link to clipboard

Copied

That is correct.

Jozsef

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 29, 2011 Nov 29, 2011

Copy link to clipboard

Copied

Don't you think that is somthing that you guys might want to take a look at?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 29, 2011 Nov 29, 2011

Copy link to clipboard

Copied

You just can't play it back progressively or with another media player after you flatten the file with the post processor tool because the audio codec in the f4v container is a codec that's not supported in that container.  However, you can stream the recorded, unflatten file via fms.  If you are insistant on playing the file back via progressive playback than the recorded file should be in the flv container.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 29, 2011 Nov 29, 2011

Copy link to clipboard

Copied

As for my comment in our public bug base for the bug you log for this issue about transcoding the audio stream of the flatten f4v file to either aac or mp3, you can do that with ffmpeg.  However, it's somewhat of a hack.  There will be an error initially when you first do this so to bypass that error, I've went into the libavformat/utils.c file and comment out the code block that check for that error, recompile and install.  Once that's done you can transcode the audio stream with the following command;

ffmpeg -i recorded_stream_flatten.f4v -c:v copy -c:a libfaac -ar 44100  -ac 2 recorded_stream.mp4

The error I comment out in libavformat/utils.c check for the following error:

"Application provided invalid, non monotonically increasing ..."

It was suggested in this forum;

http://forum.doom9.org/archive/index.php/t-158193.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 29, 2011 Nov 29, 2011

Copy link to clipboard

Copied

OK, I have tried using FFMPEG and get the error you suggest that needs to be commented out and rebuilt.

1) Is it possible for you to provide that static build of FFMPEG? I'm running Windows and from what I've seen getting it built in Windows is no small task.

2) If it is not possible to get that build of FFMPEG, did you build that on a Linux box or a Windows box?

3) See #1

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 29, 2011 Nov 29, 2011

Copy link to clipboard

Copied

I built it on mac.  The instruction for building on mac is pretty similar to Linux.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 15, 2012 Apr 15, 2012

Copy link to clipboard

Copied

LATEST

I have been trying out various ffmpeg encodes of h.264 video recorded via FMS in an attempt to play back progressively.

The original recording plays very nice from FMS.

I have flattened with various tools, f4vpp, qt-faststart and encoded with various combinations of video and audio codecs and endless settings.

If I get the audio to work in sync, the video looks like crap. Lots of artifacts and blocks.

If I split the stream and use a copy of the video, the audio will not play progressively.

Has anyone ever actually successfully transcoded an h.264 ( baseline or main ) file that was recorded in flash via FMS?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines