JVC 257VP, 137, 237VP, 157WP Getting SD Card data from the Camera via RTSP/RTP, Playback control

Page 96

4) The client continues to send 512 bytes of u-Law data with a 12-byte header.

0x00000080

Volume of payload (512 for u-Law)

Time stamp in 8kHz

u-Law data (512 bytes)

5) To end, disconnect TCP49298.

30.2. Restrictions

Restrictions on Number of Clients

Only 1 client is allowed to send audio data to the camera. the camera will return an error for this API and TCP will be disconnected when this function is currently in use by another client.

Timing of Data Sending

512 bytes, or in other words, 64 msec of audio data may be sent during each transmission. Send audio data at intervals as evenly as possible. A part of the data may be lost if audio data exceeding 2 seconds are sent to the camera at one time.

31. Getting SD Card data from the Camera via RTSP/RTP

RTSP of the camera is RFC2326 compliant.

31.1. URI

URI for RTSP is

rtsp://ipaddress/PSIA/Streaming/tracks

31.2. Playback control

For Playback control, the messages is used as below,

Control command

Method

Header

Example

Play

PLAY

Range

Range:

 

 

 

clock=20120518T135717Z

Pause

PAUSE

-

 

KeepAlive

GET_PARAMETER

-

 

Specify start time by request header “Range”.

For keep-alive control, issue the GET_PARAMETER method in 3 seconds during receiving data.

Keep the message interval is longer than 200 milliseconds.

96

Image 96
Contents VN-H37/137/237/237VP VN-H57/157WP/257/257VP Updates Page Preface JVC API for Alarm FAQ Basic Procedures Streaming ProtocolJVC Protocol Jpeg Streaming API Format Structure Parameter DescriptionResponse RestrictionsJpeg File Format Sent Out by the camera FFD9JVC Protocol H.264 Streaming When API is successfully received H.264 Stream Format Send Out by the cameraExample of H.264 Stream JVC Protocol MPEG-4 Streaming MPEG-4 Stream Format Send Out by the camera Example of MPEG-4 Stream API to Search Camera URIJpeg H.264Using API that Requires Basic Authentication ProcedureResponse Example System.id=VN-H37192.168.0.2/24&200 Okcrlf Getting Parameter Api/param?ParamA.ParamB.ParamCApi/param?ParamA.ParamB.ParamC&ParamA.ParamD.ParamE ParamA.ParamB.ParamC=Data&200 OKSetting Parameter JVC API for CameraGetting Camera ID Setting Camera ID Example of setting /api/param?camera.id=Camera01Getting Current Scene File Number As follows. /api/param?camera.id=Comment%20In%20JPEGGetting Preset Data of Scene File Loading/Saving/Initializing Scene FileGetting Current Scene File Name Setting Auto Exposure Reference of a Scene File Setting Color Level of a Scene FileGetting Auto Exposure Reference of a Scene File Getting Color Level of a Scene FileSetting Enhance of a Scene File Setting 3DDNR of a Scene FileGetting Enhance of a Scene File Getting 3DDNR of a Scene FileSetting White Balance of a Scene File Setting R-Gain of White Balance of a Scene FileGetting R-Gain of White Balance of a Scene File Getting B-Gain of White Balance of a Scene FileSetting B-Gain of White Balance of a Scene File Setting AGC of a Scene FileSetting Limit of Sense Up of a Scene File Getting AGC of a Scene FileSetting ALC priority of Scene File Setting Shutter Speed of a Scene FileGetting ALC priority of Scene File Getting Shutter Speed of a Scene FilePage Setting Back Light Compensation of a Scene File Setting Clvi of a Scene FileGetting Back Light Compensation of a Scene File Getting Clvi of a Scene FileSetting Compression Format Getting Resolution Frame SizeJVC API for Encode Getting Compression FormatSetting Resolution Frame Size Getting Rate Control SettingSetting Rate Control Setting H.264 or MPEG-4 bitrate Getting Jpeg File Size SettingSetting Jpeg File Size Getting H.264 or MPEG-4 I-Frame Interval SettingSetting H.264 or MPEG-4 I-Frame Interval Getting Frame Rate SettingSetting Frame Rate Setting Monitor Out StatusGetting Audio Duplex Mode Setting Audio Duplex ModeSetting Mike Gain JVC API for Audio VN-H57/157WP/257/257VPJVC API for Alarm Getting Mike Power Supply settingSetting Mike Power Supply Getting On/Off of Alarm ActionGetting Alarm Action Format /api/param?application.eventNumber.actionApi/param?application.event1.action Example of Response Example of Response application.event1.action=&200 OKReturned. Segments are indicated by Setting Alarm Action Setting ExampleFormat /api/param?application.eventNumber.action=Data To add JPEG, specify objectNumber instead of none Getting Alarm Filter Setting Setting Alarm FilterGetting Alarm Filter Time Setting Alarm Filter TimeGetting Alarm Filter Type Setting Alarm Filter TypeGetting Alarm Trigger Setting Alarm TriggerFormat /api/param?application.eventNumber.trigger Format /api/param?application.eventNumber.trigger=dataJVC API for Alarm Environment Setting Example /api/param?application.event1.trigger=v1Setting Example /api/param?application.event6.trigger=i1500 Getting Smtp Server Address Setting Setting Smtp Server AddressGetting Smtp Server Port Number Setting Setting Smtp Server Port NumberSetting Sender Mail Address Getting POP before Smtp SettingSetting POP before Smtp Getting POP Server Address SettingSetting POP Server Address Getting POP Server Port Number SettingSetting POP Server Port Number Getting POP Server User Name SettingSetting POP Server Password Getting FTP Server Address SettingSetting FTP Server Address Example of Response application.pop.user&200 OKGetting FTP Server Path Setting Setting FTP Server PathGetting FTP Server User Name Setting Setting FTP Server User NameSetting FTP Server Password Setting File Naming of Periodic FTPApi/param?application.ftp.password=%00 Getting File Naming of Periodic FTPSetting User Define Name of File Naming Getting User Define Name of File NamingGetting Parameters of Pre/Post Recording for FTP Setting Parameters of Pre/Post Recording for FTP JVC API for SD Card RecordGetting SD Card Status Setting SD Card to Use/Disable Setting SD Card Constant Recording On/OffGetting Status of SD Card formatting Formatting SD CardSetting Encoder No. for SD Card Recording Getting SD Card CapacityGetting SD Card Recording Status Getting Encoder No. for SD Card RecordingGetting Auto Return Mode Setting Auto Return ModeJVC API for Digital PTZ Getting Timeout of Auto Return Setting Timeout of Auto ReturnSetting Auto Return Status Getting Speed of Going to Preset PositionSetting Speed of Going to Preset Position Setting Direction of Pan OperationGetting Pan Position Moving to Specified Pan PositionSetting Speed of Pan Operation Getting Pan Operation StatusGetting Tilt Position Moving to Specified Tilt PositionSetting Direction of Tilt Operation Setting Speed of Tilt OperationGetting Tilt Operation Status Getting Zoom PositionSetting Direction of Zoom Operation Setting Speed of Zoom OperationZoom Operation Getting Zoom Operation StatusGetting Current Preset Position Getting Status of Specified Preset PositionRegister Current Position as Preset Position Initialize Preset PositionJVC API for Auto Patrol Getting Preset Postion Number of Auto Patrol Setting Preset Postion Number of Auto PatrolSetting Duarion of Auto Patrol Getting Duration of Auto PatrolSetting Speed of Auto Patrol Saving Preset Position Number/Duarion of Auto PatrolJVC API for Privacy Masking Getting Speed of Auto PatrolSetting Privacy Masking to On/Off Setting Privacy Masking ColorGetting Privacy Masking Color Getting Privacy Masking AreaSetting Motion Detect to On/Off Setting Motion Detect SensitivityGetting Motion Detect Sensitivity Setting Motion Detect Mask JVC API for Tampering DetectGetting Motion Detect Mask Setting Tampering Detect to On/Off Setting Tampering Detect SensitivityGetting Tampering Detect On/Off Status Getting Tampering Detect SensitivityEnabling Network Setting Changes Getting Dhcp SettingSetting Dhcp Allowed user adminSetting IP Address Setting Subnet MaskGetting Default Gateway Getting IP AddressSetting Default Gateway Setting Host NameSetting DNS Server Status to On/Off, or Validate Changes Getting Host NameSetting DNS Server IP Address Setting IPv6 statusGetting DNS Server IP Address Getting IPv6 statusSetting TOS Value of Stream Getting Global Address of IPv6Getting MAC Address Getting TOS Value of StreamSetting Unicast TTL Setting Multicast TTLGetting Unicast TTL Value Getting Multicast TTL ValueSetting MTU Value Getting Network Negotiation SettingSetting Network Negotiation JVC API for ProtocolSetting Port Number of Http Setting Status of AMX Discovery ProtocolSetting Status of Psia Protocol Getting Status of AMX Discovery ProtocolSetting Status of Onvif Protocol Setting Status of Multicast Streaming, or Save ChangesJVC API for Multicast Streaming Getting Status of Onvif ProtocolSetting Multicast Address Setting Multicast Port NumberGetting Multicast Address Getting Multicast Port NumberSetting Frame Rate of Jpeg Multicast Getting Status of Audio Multicast StreamingGetting Audio Multicast Address JVC API for Access Restrictions Setting Audio Multicast AddressSetting Audio Multicast Port Number Getting Deny/Allow Setting of Client RestrictionsSetting Client Restriction to Deny/Allow Getting IP Address Setting of Restricted ClientSetting IP Address of Restricted Client Format /api/param?network.accesscontrolstreamout.hostNumberSetting On/Off of Sntp Client, or Validate Changes Setting NTP Server AddressJVC API for Time Getting On/Off of Sntp ClientGetting Access Interval to NTP Server Setting Access Interval to NTP ServerGetting Access Interval Unit of NTP Setting Access Interval Unit of SntpSetting Time Getting TimezoneJVC API for Password Setting TimezoneSetting Password of admin Format /api/param?system.password.adminnum=data2JVC API for Maintenance Setting Password of operatorSetting Password of user Delete AcountJVC API for LED Setting Getting LED blinking mode Setting LED blinking modeJVC API for Getting Status Getting Sending StatusAlarm input 1ch make Getting LogGetting Model Name Format /api/param?system.logGetting Alarm Input Status VN-H57/157/257 Getting Mode of FTP ServerJVC API for Others Getting Firmware RevisionsSetting Mode of FTP Server Setting Control Port Number of FTP ServerSetting Port Number of Rtsp Server Getting Control Port Number of FTP ServerExample /api/param?network.rtsp.port=554 Camera Response When API is successfully received Sending Audio to the Camera VN-H57/157WP/257/257VPProcedures CameraGetting SD Card data from the Camera via RTSP/RTP Playback controlExample of message sequence Exporting H.264 data from SD Card to the PC Getting Total Number of Files and File Size1fCRLF Exporting SD Card Data as a File List of Protocols and Port Numbers Used Customizing Built-in ViewerList of ActiveX Protocol / Port Number UseHow to download ActiveX controls Properties of ActiveX102 How to use ActiveX Control by Html Method of ActiveX ControlDirection Number of n Html Sample Sample code105 106 107 FAQ Psia