Hi guys,

I have the following issue streaming a FLV file into FMS, when sending the audio frames as well as the video ones. For video only this works great, but when I send the audio chunks from the FLV file as well, the video comes to a halt, displaying the 1st keyframe there is and then nothing; also the audio doesn't work either.

My RTMP packets are organised as follows, all 12-byte:
byte 1:
        for video it's 0x06 for the 1st video frame and 0x86 for the next video 
frames
        for audio it's 0x04 for the 1st audio frame and 0x84 for the next audio 
frames

byte 2-4: timestamp in milliseconds, computed independently for audio and video, as a delta to the absolute timestamp of the first frame sent (of the respective type); so basically they start at 0 and increment as time goes by

byte 5-7: packet size

byte 8: payload type (8, 9, 0x12, 0x14 etc)

byte 9: either 0 or 1

byte 10-11: 0 (all times)

Now for bytes that may look like weird choices to you, for instance byte 1 and 9-11 those values are picked up from tracing with ethereal video streamed from FMS to Flash player. I don't make much sense of them, but they work for video.

After these bytes comes in data from the FLV file, and if audio is present it all goes to hell basically.

Can someone please explain clearly what I'm doing wrong and perhaps help, even hard-coded values for the "weird" bytes I mentioned will do, I'm on a very very short deadline here, please help! :)

Thank you in advance and kind regards,
--
Radu-Adrian Popescu

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to