关于视频格式的有关问题

关于视频格式的问题
最近在做流媒体播放器的东西,对rmvb格式不了解,求大虾给与指教。
1.rmvb的索引里放着什么东西,如果想实现P2p实时播放的话,索引起什么作用?
2.rmvb格式与wmv有什么不同,我看了几个开源的代码,发现从source   filter的角度,rmvb与其他格式的处理方式是相同的,只有wmv不同,为什么?


------解决方案--------------------
the index includes:
0)version
1)time_code
2)offset
3)packet_num

you need use time_code to match A/V sync
Index_Chunk_Header
{
u_int32 object_id;
u_int32 size;
u_int16 object_version;
if (object_version == 0)
{
u_int32 num_indices;
u_int16 stream_number;
u_int32 next_index_header;
}
}

IndexRecord
{
UINT16 object_version;
if (object_version == 0)
{
u_int32 timestamp;
u_int32 offset;
u_int32 packet_count_for_this_packet;
}
}

the rmvb file format is idetical to wmv file format, they are both tag-liked file format