Skip to main content
Known Participant
August 30, 2011
Question

h.264-encoded video from fp 11 looks mangled when recorded

  • August 30, 2011
  • 1 reply
  • 565 views

I'm streaming h.264 from a live conversation between two people, and storing via FMS. I've noticed that quite often, the recorded video seems to have out-of-order frames or other issues that result in poor quality video, although the live stream when viewed live at the other client looks fine. Here's an example:

I always see similar blocking when I initially begin streaming the other client's h.264 content, but this generally resolves within ~1 or 2 seconds.

Using the following h.264 settings:

var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

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

_netStream.videoStreamSettings = h264Settings;

A few more notes on this that might be helpful:

  • I've tried both RTMP and RTMFP connections - both result in the same issue
  • I don't always see the issue with recorded video, but it's quite common (~50% of the time)
  • The live stream does not look messed up at all to the other client (except for the initial stream connect for the first few seconds)
  • The recorded stream, when transcoding via ffmpeg, produces a lot of errors:
    • [h264 @ 0x101014c00]non-existing SPS 32 referenced in buffering period
         Last message repeated 3 times
      [h264 @ 0x101014c00]number of reference frames exceeds max (probably
      corrupt input), discarding one
      [h264 @ 0x101014c00]non-existing SPS 32 referenced in buffering period

Any help would be much appreciated!

    This topic has been closed for replies.

    1 reply

    Known Participant
    August 30, 2011

    Example image did not seem to come through, here's another try:

    That didn't seem to work either, but you can click on the broken link to see the image.