无线流媒体服务器接口开发指南-V36

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

(Ver3.6)3.5ReleaseJ2011-03-233.6ReleaseJ2011-05-19OWSPv3OpenWirelessSurveillanceProtocolv33.0TLVType-Length-Value115961TCPIDStreamDef.h2010-03-221versioninfo,register,formatinfokeepaliverequestkeepalivesuspendkeepalive23amr_wbamr_nbAudioDataFormat22.1ControlPacketHeaderCommPacketHeader+VideoPacketHeader+PayloadAudioPacketHeaderlengthmessage2.2typedefstruct_CommonPacketHeader{u_int32length;u_int32message;}CommonPacketHeader;lengthbig-endian010203040x010203044u_int32messagelittle-endian040302010x010203042.3message1MSG_CMD_VERSION_INFO402MSG_CMD_REGISTER413MSG_STREAM_FORMAT_INFO2004MSG_STREAM_VIDEO_DATA210MSG_STREAM_AUDIO_DATA211MSG_STREAM_VIDEO_AUDIO_DATA212315961device_id3.1400000008[1]28000000[2]02000100[3][1][2]0x28MSG_CMD_VERSION_INFO40[3]versionMajor=0x0002versionMinor=0x00013.2CommPacketHeader+10x0020000003C[1]29000000[2]707672303600…00[3]000000...00[4]FB020000[5]00[6]000000[7][1]Sizeof(CommPacketHeader)+sizeof([2]0x29MSG_CMD_REGISTER41[3]32”pvr06”[4]160[5]ID0x02FB763[6][7]33.3CommPacketHeader+LoginResponsetypedefstruct_LoginResponse{u_int16result;u_int16reserve;}LoginResponse;Result_RESPONSECODE_SUCC0100000008[1]2A000000[2]0100[3]0000[4][1][2]0x2AMSG_CMD_REGISTER_ANSWER42[3]0x01[4]44.1CommPacketHeader+SystemPackDataFormat+ExpandDataHeader+ExpandDataSystemPackDataFormattypedefstruct_SystemPackFormat{StreamDataFormatsd;VideoDataFormatvd;AudioDataFormatad;}SystemPackDataFormat;StreamDataFormat1.StreamDataFormat1.1u_int32fileLabelDEFAULT_STREAM_FORMAT_FILE_LABEL0x6B5C49FA1.2u_int16size;videoDataFormataudioDataFormatVideoDataFormataudioDataFormatsize=sizeof(VideoDataFromat)1.3u_int8versionMajorSTREAM_VERSION_MAJOR0x021.4u_int8versionMinor;STREAM_VERSION_MINOR0x001.5u_int8videoChannelMask;1248910111213141516171819201.6u_int8audioChannelMask;1248910111213141516171819201.7u_int8packetType;SPT_SYSTEM0x611.8u_int8dataType;StreamDatatypedefenum_StreamDataType{SDT_VIDEO=0,SDT_AUDIO=1,SDT_VIDEO_AUDIO=2}StreamDataType;1.9u_int32reserve;2.VideoDataFormat2.1u_int32codecId;ID’H264’2.2u_int32bitratekb2.3u_int16width;2.4u_int16height2.5u_int8framerate;2.6u_int8colorDepth;242.7u_int16reserve;3.AudioDataFormat3.1u_int32samplesSecond;8000Hz16000Hz3.2u_int32bitrate;bps3.3u_int16waveFormat;0xA104-WAVE_FORMAT_VOICEAGE_AMR_WB//AMR_WB0x7A21-WAVE_FORMAT_AMR_CBR//AMR_NB3.4u_int16channelSize;3.5u_int16blockAlign;3.6u_int16bitsSample;//bitspersample16bits8bits3.7u_int16frameInterval;ms200msamr20ms103.8u_int16reserve;4.ExpandDataHeader+ExpandDatalength0100000040[0.1]C8000000[0.2]FA495C6B[1.1]2400[1.2]02[1.3]01[1.4]01[1.5]01[1.6]61[1.7]02[1.8]00000000[1.9]48323634[2.1]00E80300[22]B000[2.3]8000[2.4]08[2.5]18[2.6]0000[2.7]08000000[3.1]07000000[3.2]04A1[3.3]0100[3.4]0000[3.5]0800[3.6]1400[3.7]0000[3.8]00000000[4][0.1][0.2]0xC8200[1.1]-[1.9]packetType0x61,dataType0x02SDT_VIDEO_AUDIO[2.1]-[2.10]codecIDH2640x03E800256kbps0x00B01760x0080128200000028[0.1]C8000000[0.2]FA495C6B[1.1]1000[1.2]02[1.3]01[1.4]01[1.5]01[1.6]61[1.7]00[1.8]00000000[1.9]48323634[2.1]00E80300[22]B000[2.3]8000[2.4]08[2.5]18[2.6]0000[2.7]00000000[4]4.2CommPacketHeader+StreamVideoDataHeader+VideoData1.u_int8type;ISPT_VIDEO_I_END0x64PSPT_VIDEO_P_END0x662.u_int8channelId;ID03.u_int8framePacketNum114.u_int8framePacketIndexframePacketNum1005.u_int32packetIndex16.u_int32frameIndex()7.u_int32time;8.u_int16checksum;9.u_int16reserve;10.u_int32dataSize;11.u_int8[dataSize]videodata;dataSize000005B0[0.1]D2000000[0.2]64[1]00[2]01[3]00[4]00000021[5]00000021[6]61E604F0[7]0000[8]0000[9]94050000[10]00C4C7…C528[11]I4.3CommPacketHeader+StreamAudioDataHeader+AudioData1.u_int8type;SPT_AUDIO2.u_int8channelId;ID03.u_int16codec_id;ID4.u_int32time;5.u_int16checksum;6.u_int16reserve;7.u_int32dataSize;000005B0[0.1]D3000000[0.2]62[1]00[2]217A[3]61E604F0[4]0000[5]00000000[6]94050000[7]00C4C7…C528[8]5MSG_CMD_CHANNEL_REQUESTMSG_CMD_SUSPEND_DATATCP5.15.1.1CommPacketHeader+ChannelRequest00000008[0.1]2C000000[0.2]01[1]00[2]0000[3][0.1][0.2]0x2C44[1]1[2][2]5.1.2CommPacketHeader+ChannelResponse00000008[0.1]30000000[0.2]0100[1]0000[2][0.1][0.2]0x2D45I5.25.2.1CommPacketHeader+ChannelSuspendRequest00000008[0.1]2F000000[0.2]01[1]000000[2][0.1][0.2]0x2F47[1]10[2]5.2.2CommPacketHeader+ChannelSuspendResponse00000008[0.1]30000000[0.2]0100[1]0000[2][0.1][0.2]0x3048[1]_RESPONSECODE_SUCC[2]5.35.3.130CommPacketHeader+KeepAliveRequest00000008[0.1]31000000[0.2]01[1]000000[2][0.1][0.2]0x3149[1]00channelmask10[2]5.3.2CommPacketHeader+KeepAliveResponse00000008[0.1]39000000[0.2]0100[1]0000[2][0.1][0.2]0x3957[1]_RESPONSECODE_SUCC[2]66.1.1CommPacketHeader+PTZRequest+[PTZData]PTZRequestdataSize0PTZData0PTZData0000000C[0.1]33000000[0.2]0000FB02[1]01[2]09[2]0000[2][0.1][0.2]0x3351MSG_CMD_TV_TUNER_REQUEST[1]DeviceID(763)[2]1[3]MD_UP09[4]dataSize0PTZData6.1.2CommPacketHeader+PTZResponse00000008[0.1]34000000[0.2]0001[1]0000[2][0.1][0.2]0x3452MSG_CMD_TV_TUNER_ANSWER[1]1_RESPONSECODE_SUCC[2]6.2.1CommPacketHeader++400000008[0.1]3A000000[0.2]00000000[1][0.1][0.2]0x3A58[1]socketsocket6.2.2CommPacketHeader++400000008[0.1]3B000000[0.2]0001

1 / 16
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功