Skip navigation
Currently Being Moderated

FP 11+ Audio Encoding Issue With H.264 Video

Nov 4, 2011 10:33 AM

Tags: #h.264 #flash_player_11 #nellymoser

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!

 
Replies
  • Currently Being Moderated
    Nov 10, 2011 3:22 PM   in reply to ImAStreamer

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

    thanks,

    Hitomi

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 28, 2011 10:52 AM   in reply to ImAStreamer

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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 28, 2011 9:25 PM   in reply to ImAStreamer

    That is correct.

     

    Jozsef

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 9:21 AM   in reply to ImAStreamer

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 10:06 AM   in reply to bmai209

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 29, 2011 3:00 PM   in reply to ImAStreamer

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

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2012 6:49 PM   in reply to ImAStreamer

    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?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points