## Creating MXU Files for Imports

You can conveniently add large numbers of cameras, camera groups, devices and recordings/clips using a list that you manually generate in MxMC as an *.mxu file. There are several format specifications that need to be followed when generating an *.mxu file.

### Format for Simple Imports

An *.mxu file needs to use the following format for a simple import of cameras:

- Unformatted UTF-8 text
- One or more camera lines with the following structure:
  Name<TAB>IP<TAB>Username<TAB>Password<CR LF/LF>
- Elements in a camera line need to use TABs as separators.
- Line breaks are either CR LF (Windows) or LF (UNIX).
- Comment lines are preceded by a //.
- Camera names need to be unique and cameras using the same name will not be added more than once.

Example:

          Main Entrance   10.6.37.25   admin   meinsm
          Side Entrance   10.6.15.206  admin   meinsm
          Entrance Gate   10.6.23.132  admin   meinsm

### Format for Advanced Imports

#### Expanded Format

The file needs to use the following format for the advanced import of cameras, groups, clips and settings for graphics and grid view:

- The first line must contain the string #EXTMXU
- Any additional commands must start with #EXT. Parameters use “:” as separators.
  Example:#EXTGROUP:Doorstations

#### Commands for advanced imports

#EXTMXU | Markers for beginning of file
#EXTGROUP:name:f:r:icon:map:info | Group “name” is created and all further cameras will be added to this group.
f: Large focus window (0=0x, 1=1x, 2=2x ...)
r: Tile ratio (0=4:3, 1=HD, 2=8:3)
icon: If numeric, index of the internal group icons; otherwise, file name corresponding to the *.mxu file.
map: File name of the background image
info: File name of the information page
#EXTGROUP: | All further cameras will not be added to a group if no name is specified (unless “All cameras”).
#EXTCLIP:clipMXG | Camera demo clip is added. Clips need to be stored in the same directory as the *.mxu file.
#EXTMXPEG:name<TAB>clipMXG | MxPEG clip with “name” is added. clipMXG is the absolute path of the clip file to be imported.
#EXTCURRENTCAMERA:name | Select camera.
#EXTCURRENTGROUP:name | Select group.
#EXTSUBGROUPS:name | The following groups (each with the name in a line) are added to the group “name” as a subgroup.
#EXTMXFSS:name<TAB>folder_path | MxFileServer recording with “name” is added. folder_path is the absolute path of the recording.
#EXTMXFFS:name<TAB>folder_path | MxFFS recording with “name” is added. folder_path is the absolute path of the recording.
#EXTTHINCLIENT:name<TAB> serNo<TAB>url<TAB>username <TAB>password<TAB>duration <TAB>resolution | MxThinClient is added. The parameters use TAB as separators.
#EXTINFO:Comment | Comment line.
#EXTEND | End of file, all further lines are ignored.

Example:

          #EXTMXU
          #EXTGROUP:Doorstations:2:2:2
                Main Entrance           10.6.37.25        admin   meinsm
                Side Entrance           10.6.15.206       admin   meinsm

          #EXTGROUP:Indoor:2:2:3
                Building East           10.3.31.251       admin   meinsm
                Building West           10.7.25.186       admin   meinsm
                Staircase               10.6.115.57       admin   meinsm
                Canteen                 10.12.32.65       admin   meinsm

          #EXTGROUP:Outdoor:2:2:4
                Parking Visitors        10.5.46.39        admin   meinsm
                Parking Employees       10.10.231.107     admin   meinsm

          #EXTGROUP:Dual Cams:2:2:10
                Checkout1               10.10.106.26      admin   meinsm
                Checkout2               10.10.152.225     admin   meinsm
                Checkout3               10.13.242.195     admin   meinsm

          #EXTGROUP:Faststreams:2:0:11
                Ground Floor            10.2.2.169        admin   meinsm
                First Floor             10.2.104.130      admin   meinsm
                Second Floor            10.3.11.51        admin   meinsm
                Elevator                10.3.209.198      admin   meinsm

          #EXTGROUP:Clips:2:2:groupIcon.png:groupMap.jpg
          #EXTCLIP:FiremanMXG
          #EXTCLIP:PoleMXG

          #EXTCURRENTCAMERA:Main Entrance
          #EXTCURRENTGROUP:Doorstations