Skip navigation
Aki24x
Currently Being Moderated

RTMP video/audio format

Jul 22, 2010 3:40 PM

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?

 
Replies
  • Currently Being Moderated
    Jul 22, 2010 11:14 PM   in reply to Aki24x

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 24, 2010 12:30 AM   in reply to Aki24x

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 24, 2010 12:35 AM   in reply to Nitin Goel

    Why don't you try rtmp sdk.. if you wanna write your own publisher/encoder ..you may contact FMSOEMinquiries@adobe.com with you project description and company.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 15, 2011 2:40 AM   in reply to Aki24x

    Hi Aki24x,

     

    I am also facing a similar problem. Where you able to find the specification which describes the format in which audio and video are to be sent in RTMP?

     

    Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2011 6:30 AM   in reply to veeyenkay

    Hi,

     

    I am also facing a similar problem. Is it necessary to encrypt the handshake so that the Flash player will render the video?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2011 8:35 PM   in reply to Kish28

    Audio and video should be muxed in FLV and streamed to the server. No need to encrypt the handshake.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2011 9:34 PM   in reply to veeyenkay

    Thanks for your reply.

    I just want to send only the video data to flash player. Do you have any specification which describes the format in which video packets are to be sent in RTMP?

    I have used ffplay client which support RTMP video rendering. Its say that HandShake: client signature does not match! and [h264] no frame.

    i just formed an rtmp header for video data, read frame from file(mp4) form it has rtmp body and sent to flash or ffplay.

    Can you explain more details on this.


     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2011 10:23 PM   in reply to Aki24x

    Have you solved the problem which you faced. Can you provide me the details or any document for this. I'm aslo facing the same problem as you said.

    I already implemented rtmp protocol into my server program correctly.  Problem is only with the video data.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 1:21 AM   in reply to Kish28

    The required information are in "Video File Format Specification Version

    10" which you can get from Adobe site. The section "FLV File Format"

    describes how audio and video FLV packets have to be created. These FLV

    packets can then be sent using RTMP

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2012 3:35 AM   in reply to veeyenkay

    I had another problem. Flash player was not sending createstream command to my rtmp server software. Handshakes, connect and Window Acknowledgement Size are received from Flash player to my rtmp server. Flash player stop sending commands after Window Ack Size. Any help would be greatly appreciated.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 17, 2012 7:14 AM   in reply to Nitin Goel

    Hello,

     

    I am using Adobe Flash Media Server Connector for C++ version 1.6.1.0.

    I managed to stream on the one hand a stream with H264 video only (i.e. rtmp://myserveradress:1935/live/video1) and on the other hand a stream with AAC audio only (i.e. rtmp://myserveradress:1935/live/audio1).

    Although I am able to stream simultaneously video and audio, I don’t manage to play both streams from the server in this case.

    Is it possible to stream audio and video to the same url (i.e. rtmp://myserveradress:1935/live/mymedia) ?

    How can I stream a media which contains both video and audio that will be play simultaneously ?

     

    Thanks for any help.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 25, 2013 7:06 PM   in reply to vnaessens

    Hello,

    Could you tell me how to get the RTMP SDK?

     
    |
    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