Skip to main content
Participant
July 22, 2010
Question

RTMP video/audio format

  • July 22, 2010
  • 2 replies
  • 18374 views

Hi,

I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol.

Currently, my program can communicate with a flash media server correctly.

RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server.

The server seems to accept them, but a video player cannot playback the stream sending from the server.  The player just says "Loading..."

For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data.  Then, I muxed those data into video/audio message and sent to the flash media server.  In this case, the video player connected to the server can playback the stream correctly.

I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code.

With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.

Does anyone have idea?

    This topic has been closed for replies.

    2 replies

    Participant
    September 30, 2014

    hi, who can send me an rtmp sdk or tell me how to get the sdk?

    Inspiring
    October 6, 2014

    Please drop a mail to ams-sales@adobe.com

    Adobe Employee
    July 23, 2010

    Can you try appending "mp4:" to the stream name.. Are you playing the livestream or recorded file. Try to record the file as mp4.. you just need to append mp4: in the stream name to do that.  For example, if you stream is "abc" .. use "mp4:abc" in the publish as well as play option.

    Aki24xAuthor
    Participant
    July 23, 2010

    Hi NpComplete,

    Thank you very much for your answer. =)

    I am trying "livestream" one.  I added "mp4:" to both of stream name which is sent to the server from my test program and the video player, but nothing seems to be changed.

    I am compared my H.264 stream with the stream which is received/sent by Wirecast/UStream and determined that their stream is completely different from mine.

    The video/audio packets in their stream seems to be video/audio packets muxed with FLV packets.  I'll try to mux my v/a packets by FLV v/a packets.

    But, I am still wondering is there any way to use H.264/AAC raw stream instead of FLV packed ones?  I don't think it's the only way to mux v/a data into rtmp packets.

    Does anyone have advice or idea?

    Adobe Employee
    July 24, 2010

    Ohh.. you mean to say, you are sending the raw stream and not packing it into rtmp messages.. FMS only understand the rtmp and will try to intrepret your data as rtmp chunkstream.. and if you send raw stream, it is bound to fail.