Ok, extremely good news!I've just managed to send through FMS a video packet containing the 1st full frame from a FLV file (going to use libflv to provide frames, for now I'm just hackishly reading it from the file), and it got played in the flash player.
I've done "proper" chunking (see below for an exceptional case of chunking found through etherealing) i.e. insert C6 each 128 bytes counting from 0x09. FMS is happy, Flash player is happy.
Someone noted earlier on that FMS may not like all codecs. I've manually changed the codec code from 0x12 (sorenson) to 0x14(screen) in the FLV file and sent it through. Flash obviously didn't play it, but FMS accepted the stuff, so I don't think it does any codec filtering as suggested, it's just that when I was sending junk to it it couldn't make sense of the packets and therefore dropped them and said I'm not allowed to broadcast. Hope that clears a few worries.
;) cheers Radu-Adrian Popescu wrote:
I've just figured this out!Looking at smaller, full RTMP video packets, they only have a header of 8 bytes, ending in 09. After each 128 bytes an C6 is added, and the numbers add up. For a 670 bytes size packet, the RTMP header-declared length is 0x291 = 657.657 can hold 5 128-byte packets, so there's 5 C6 bytes in between chunks. The header is 8 bytes, rendering 657+8+5=670.I've three different traces of the 1st video packet that is larger and contains a full frame. In two of them the chunking is performed at 128 bytes, as for the smaller, delta frames. All fine and dandy. In the other 1st video packet, the first C6 byte appears at offset 158 in the trace file, which is 18 bytes "later"; after that it continues at each 128. Weird!Cheers, ------------------------------------------------------------------------ _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
-- Radu-Adrian Popescu CSA, DBA, Developer Aldrapay MD Aldratech Ltd. +40213212372
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
