CMSV6Help Center
/
839 DOCS · 211 VIDEOSWebsite中文

API segmented download of video files in MP4 format

Author daiweiqiangUpdated 2026-08-06 09:09:23Doc ID 2693131 words · 1 min read

1. Function Description

Call API interface to implement segmented downloading of video files in MP4 format

2. Operating instructions

2.1 Set the storage server to save MP4 format files

Document reference: #2198

2.2 API to obtain session number

https://v7.cmsv8.com/StandardApiAction_login.action?account=cmsv6&password=cmsv6

2.3 query the terminal video file

https://v7.cmsv8.com/StandardApiAction_getVideoFileInfo.action?DevIDNO=990108&LOC=1&CHN=0&YEAR=2023&MON=06&DAY=19&RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&jsession=d2063cefa2b34538b3b5ebf19dd1edc2

2.4 Add a segmented download task

With the downtaskurl returned in step 3, complete the jsession session number and lab label, dtp = 2 and execute, returning result:0, as shown in the following example:
https://v7.cmsv8.com/StandardApiAction_addDownloadTask.action?jsession=d2063cefa2b34538b3b5ebf19dd1edc2&did=990108&fbtm=2023-06-19 00:25:55&fetm=2023-06-19 00:37:21&sbtm=2023-06-19 00:25:55&setm=2023-06-19 00:37:21&lab=&fph=/var/disk0/rec_file/rec1488.cv1&vtp=0&len=536863475&chn=0&dtp=2

2.5 Download MP4 file to local

Wait for the file download to complete, search for the storage server video, LOC = 2
https://v7.cmsv8.com/StandardApiAction_getVideoFileInfo.action?DevIDNO=990108&LOC=2&CHN=0&YEAR=2023&MON=06&DAY=19&RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&jsession=d2063cefa2b34538b3b5ebf19dd1edc2

Use the returned URL with MP4 format to download to the local, customize SAVENAME =20230619.mp4, and start downloading MP4 files after execution
https://v7.cmsv8.com:16611/3/5?DownType=3&jsession=&DevIDNO=990108&FILELOC=2&FLENGTH=269750640&FOFFSET=0&MTYPE=1&FPATH=C:/gStorage/RECORD_FILE/990108/2023-06-19/990108_0-230619-042536-043702-20010100.mp4&SAVENAME=20230619.mp4