> 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/import-and-post-processing/facial-expression-analysis-importing-and-post-processing-videos.md).

# Facial Expression Analysis: Importing and Post Processing Videos

Import face videos into an iMotions Lab study and run Affdex post-processing to get facial expression data for Respondent Camera and Face Recording videos.

*The following article will describe how to post-process videos that have been recorded or imported into an iMotions study.*

Overview of FEA Post Processing

Respondent Camera Recordings and Face Recordings can be analyzed for facial expressions data using Affectiva AFFDEX for facial expression analysis (FEA). Post Processing is required to analyze any video frames that were not analyzed during data collection (50% frame analysis by default).

Requirements

* iMotions software with Facial Expression Analysis.
* iMotions study containing Respondent Camera (enabled as a study sensor) or Face Recording (set up as a study stimulus).
* Study respondent(s) with video recording with the face(s) to-be-analyzed.
  * Videos can be imported as respondents to studies with a Face Recording stimulus (described below).

Once face videos are available in your iMotions study, you can run Post Processing on your study or individual respondents.

{% embed url="<https://files.imotions.com/hc_articles/videos/jessw-post-import-stitched-clip.mp4>" %}

## Importing Videos into an iMotions Study

You can batch-import videos (or a single video) into an iMotions study from an ‘**import folder’**, instead of importing individual files. Once you have compatible video files in this folder, you can import the folder to create respondents in the ‘destination study’ and proceed with post-processing of those videos. Respondents will be created based on the video file name(s).

Note: The import folder should contain only the video files to-be-imported, i.e. no other files or folder.

### 1) Prepare Video Files and Import Folder

Video files must be located in a designated folder (i.e. containing no other file). This folder must contain at least one video file

To facilitate analysis, confirm that video file names correspond with the respondent names that you want for your iMotions study.

**iMotions-Compatible File Formats:** WMV and MP4 video files are supported in iMotions.

* WMV is a ‘standardized’ file type, while MP4 files allow additional encoding options.
* Other video files types are not supported (e.g. MOV, MKV, WebM).
* If your videos are in a different format, they will need to be converted
  * External links to video conversion software: [Any Video Converter](https://www.any-video-converter.com/), [VLC Media Player](https://www.videolan.org/vlc/index.html), [Handbrake](https://handbrake.fr/)

### 2) Create Study for Face Recordings

When your Import Folder is prepared, you can create a study in iMotions and select your import folder in the New Study workflow.

{% embed url="<https://files.imotions.com/hc_articles/videos/import-face-videos-new-study.mp4>" %}

### 3) Import into Existing Study

You can import videos into existing studies with Face Recordings, which will create new respondents in the study.

{% embed url="<https://files.imotions.com/hc_articles/videos/import-face-videos-existing-study.mp4>" %}

## Running Post-Processing

Once you have a study with Face Recordings, you can post-process the recordings and obtain data/metrics from Facial Expression Analysis.

Processing times will vary with the video durations, number of respondents, and computer hardware. As a general rule, the time it takes to post-process a video is roughly the duration of the videos.

Once Post Processing is complete, you will have access to FEA data in your Respondent Replays.

#### How To Start Post Processing Face Videos

1. **Right-click on the study** in the Library and **select Post Processing**
2. **Select** Affdex to open the Post Processing window.
3. **Select Respondents and/or Stimuli** from the study for post processing. (Note: Stimulus selection is available in iMotions 10.1.18 or newer).
4. Click Process to initiate post processing and open the Background Jobs window.
   1. You can monitor post-processing in the **Background Jobs** window. The **Job Queue**, **Completed** and **Job Errors** tabs group jobs by job type and study, and groups of more than 10 jobs start collapsed. Running jobs show their progress and an estimate of the time left.
   2. You can keep the **Background Jobs** window open while you work in iMotions, or close it. Queued and running jobs continue in the background.
   3. You can return to the **Background Jobs** window by clicking on the button at the bottom-right of the main iMotions window. While the Analysis window is open, bring **Background Jobs** to the front from the Windows taskbar instead.
   4. To cancel jobs, click **Cancel batch** on a group in the **Job Queue** tab, or select jobs and click **Cancel Selected**. Running jobs are stopped, and what they have processed so far is discarded. **Remove** on a group in the **Completed** or **Job Errors** tab clears that group from the list.
   5. Background jobs do not run during a recording or a study preview. Running jobs stop and show **Suspended during the recording**, and start again from the beginning 2 minutes after the recording ends, or at once when you queue new jobs.
5. When post-processing is complete, Respondents will update automatically. Quality Metrics will appear in the respondent panel, indicating the **percentage of frames successfully detected/analyzed**, i.e. providing FEA data (not an indicator of accuracy or quality of the analysis).

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

### AFFDEX Post-Processing

1. **Right-click on the study** in the Library and **select Post-Processing**
2. **Select Affdex**
3. Select Respondents in the window/list that appears.
4. Click OK to begin Post Processing.
5. If needed, you can check ‘Ignore Previous Affdex data’ to reprocess videos with current iMotions settings and/or versions of Affdex.


---

# 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/import-and-post-processing/facial-expression-analysis-importing-and-post-processing-videos.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.
