> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/screen-based-eye-trackers/smart-eye-pro/smart-eye-pro-how-to-capture-and-sync-video-streams.md).

# Smart Eye Pro: How to capture and sync video streams

Capture screen video with the iMotions Capture Agent and frame grabbers, and import it as time-synced replays of Smart Eye Pro world model screens.

*This article will explain how to use the video capture and sync feature for the Smart Eye Pro. This will allow you to view replays of captured screens directly as well as superimposed on the SEP world model view within iMotions. Note that this approach can be used in tandem with the Scene Camera view as well.*

## Prerequisites:

* You have access to a video source or camera feed to capture (in the example below we are splitting and converting the HDMI signals from a second computer with two passthrough frame grabbers)
* You have your Smart Eye Pro system already configured with screen objects set as your screens to be captured ([see the article "Configuring the Smart Eye Pro System" here](https://help.imotions.com/lab/sensor-setup/screen-based-eye-trackers/smart-eye-pro/smart-eye-pro-configurations-in-imotions-multiple-screens.md))
* You are using iMotions 9.3 or later

  ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a478b267045747a0241c28a2967e269c5a75daaa%2F0011edbcfd_image-1666191706829.webp?alt=media)

For **each** desired video screen to be recorded the setup will require:

* Access to the video source. In the example above the source is the 2 HDMI outputs from the computer pushing the displays.
* A frame grabber to convert the video feed into a camera feed for recording. (Epiphan, Elgato) \*Be sure that the frame grabber is compatible with the desired resolution and frame rate of the video. Also, verify that the aspect ratios of the input and output feeds are the same. Please also note that frame grabbers are sometimes referred to as video capture cards.
* Unless your frame grabber supports video out (passthrough), you may also require a video splitter.
* Depending on your use case demands you might need a second PC to do the video capture.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-af40838aa695ce2e68c8f74468db42e1cf553d8a%2F50bf1b1ef0_image-1666191625407.webp?alt=media)

In this process, you will capture the video from the screens using a program called iMotions Capture Agent. Once set up, iMotions Capture Agent program will record a time-synced video that can be merged with the main iMotions study for review and analysis. You can find the program with your file explorer at: C:\Program Files\iMotions\Lab\_XG\iMotionsCaptureAgent

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-d219464b4f1ac9e628cebf1cff2d084e94ad3cff%2Fe6381b13ce_image-1666191732735.webp?alt=media)

## Setting up your first feed for capture using the capture agent

1. First, make sure iMotions is open and under global settings, in the API tab, you have enabled Remote control and event Forwarding.

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c0e95aac0baab453f1af3626fbbad5c0ecb17d4d%2F8afdfcd8b1_image-1666193076113.webp?alt=media)
2. At this point, you need to have a study made in iMotions. Create your study with the Smart Eye Pro connected, and have that study selected in the library before continuing. If you have not configured your study before to run Smart Eye Pro in iMotions please follow the directions in this article: [Configuring the Smart Eye Pro System](https://help.imotions.com/lab/sensor-setup/screen-based-eye-trackers/smart-eye-pro/smart-eye-pro-configurations-in-imotions-multiple-screens.md)
3. With iMotions open go to the Capture agent. (A shortcut on the desktop is useful). Click on the connections icon in the left toolbar. If you are running the Capture agent on the same computer as iMotions you can leave the IP address as the local host. If you have copied the Capture agent to a secondary computer you will need to point the capture agent at the IP address of the iMotions PC.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-e98bdfde3266c51ef5d6c82e8f9fdcceac7ddba4%2F77d89baffe_image-1666192432487.webp?alt=media)

Warning: Video Capture is very intensive on computer hardware. Depending on the desired number of captured screens, resolution, frame rate, and the computer hardware you are using, you may need to use a second computer to do the video capture. This can improve stability, and allow for smoother capture and more consistent data.

1. Once you have configured the address press the key to Connect to iMotions, and the screen will show it has connected to iMotions if successful. (note Firewalls are often an issue here, try turning them off or adjusting permissions if you are having trouble).
2. Next, go to Capture settings. By selecting the study in iMotions earlier the Capture Agent will import any compatible world model screen objects into the pull-down menu labeled "Smart Eye Screen".
3. Select the Object you want to record. In the next pull-down select the video source and format. *(note: if you do not see the SEP world model screen objects you might be in the wrong study. Close the capture agent and select the correct study in iMotions, and restart the capture agent again).*

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0a35db17b231d3273a73b642e59907af775b1133%2Fc74bb0f3af_image-1666191819246.webp?alt=media)
4. The final icon allows you to configure the save folder. This will be where you retrieve the video file to sync into iMotions after. At this point, the capture agent should indicate it is ready to record; you can leave and go back to iMotions. Make sure not to close the window (minimize or just leave it in the background). The Capture agent will wait until it detects iMotions is recording and will automatically create the files from here.

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5e6600d403cbaefc093c783a13ed1651a8c0f755%2F4d9b7cea6c_image-1666194196258.webp?alt=media)

In iMotions, start your recording by adding a respondent and selecting start recording. This will take you through the calibration points you defined in the SEP world model file, then the calibration results and then start the recording session.

When you are finished, at the end of the session press **end recording.**

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-980fa878bf894916b3b614d4e57f1e8e98906a30%2F5e8171883c_image-1666194471918.webp?alt=media)

## Importing the videos into your iMotions study

1. Select the Respondent you wish to import for in the iMotions study and a number of options will appear in the interface. Select import external recordings.

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-e86dd73a2094c0cf699c29958e194c8bdc85eb22%2F33b3f7acab_image-1666192012141.webp?alt=media)
2. In the screen that appears, the World model screen object will appear as an item. Select click to add the file name and browse to where videos are stored from the Capture agent (default location: C:\Users\\*YourUserName*\Documents\iMotions\ExtCapture)

   ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6d2f015ae6712605e7a0dcbdd087fd67154661e4%2F749960e588_image-1666192026032.webp?alt=media)
3. Once imported you can now see the videos as part of the replay (note this example is 2 feeds)

{% embed url="<https://files.imotions.com/hc_articles/videos/2022-09-28-09-38-27.mp4>" %}

## Adding more Screens to the study

To set up more than one screen you will need to repeat the process for each screen including hardware, and frame grabber. For the best experience it is important to try to use the same hardware across all the setups including frame grabbers, cables, adapters, and video splitters. On the video capture computer, you can open multiple instances of the Capture agent and configure each to a different World model screen object. Note the warning before about computer resources. You can quickly run into bottlenecks that degrade the quality of video or data. Consider tools such as PCIe frame grabbers and higher-end speed hardware.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c8287cd94373e5f35bbf0fc336caaa2535c742a0%2Ff2a7d8a7b7_image-1666199428406.webp?alt=media)

## Best Practice recommendations and troubleshooting

* Use the same hardware across multiple capture setups such as frame grabbers, active cables, and powered video splitters. At iMotions, we have had the most stable experience with the Epiphan DVI2USB and the Elgato 4K60.
* USB is often a shared data lane across all the ports. If you are using multiple high-speed, high-resolution USB frame grabbers you may want to distribute the load across different USB controllers or bypass USB with an internal PCIe card. Please consult your PC's specifications for information about your USB ports.
* Beware of budget video adapters; do not risk 100K of hardware for a cheap video adapter.
* Long video cables (HDMI, DP) have a higher signal failure rate, so we recommend the use of active cables.
* Use direct network connections between computers if possible, signal lag through network switches or hubs could cause stability issues.
* If you cannot access a video feed in hardware you can consider using a camera oriented on the screen object.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/screen-based-eye-trackers/smart-eye-pro/smart-eye-pro-how-to-capture-and-sync-video-streams.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
