Skip to main content

Manual upload of X2 videos if json files are broken.

Issue: X2 isn’t uploading videos so we need to upload them manually.

Cause: json file is broken because the category isn’t set to less than 18 characters.

Example of corrupted files
123456AA.MP$
123456AA.json

Resolution:

1. Move the files out of the /incoming folder. /fbdata/##/temp/ works, you will need to create that folder.

2. Open the json file and edit the following –

(info) Set the “fileName”: which is at the first line. Rename it as the file should have the name format, which is “1@DateTimeSerialnumber.mp4” (“sn” is the Serial number in json file).
eg. “1@20220429020706_22030482.mp4”,

(ii) Edit “name” – It should be the same as it is in the “category” when we search for a video.
eg. “May be needed for court”,

(iii) Edit “”startTime” – It should be like “2022-04-29T02:07:06Z”, (it would be the same as file name. eg. 020706AA.MP4, which means 02:07:06).

4. Also, check for other entries if they are broken and fix them accordingly.

5. You need to make an x2t file. (You likely can get it from an /incoming/ folder).

6. Save the x2t file with the same name as the mp4 and json file.
eg. 1@20220429020706_22030482.x2t

7. Edit the following in x2t file –

(info) File name – it should be like – 1@20220429020706_22030482.mp4

(ii) Serial number – it should be like – 0022030482

8. Paste all 3 files (mp4, json, & x2t) to /incoming/ folder.

9. Check DvrDownloader logs to see if the video file is downloading.