# AI : Faceswap : File - FSA
**F**ace**S**wap **A**lignments
> [!NOTE] Default Filenames
> video.mp4
> video_alignments.fsa
> video_alignments_20250308_124553.fsa (backup made by GUI at 12:45:53 on 2025-03-08)
> [!NOTE] Python
> ```python
> contents = pickle.loads( zlib.decompress( path.read_bytes() ) # read
> path.write_bytes( zlib.compress( pickle.dumps( contents ) ) ) # write
> ```
## Format
```
__meta__ :
version : 2.4
__data__ :
test_000001.mp4 :
faces : [
x : 591
w : 351
y : 228
h : 336
landmarks_xy : array( [ Nx2 floats, dtype = float32 ) )
mask :
components :
mask : bytes
affine_matrix : array( 2x3 floats )
interpolator : 2
stored_size : 128
stored_centering: "face"
extended :
mask : bytes
affine_matrix : array( 2x3 floats )
interpolator : 2
stored_size : 128
stored_centering: "face"
identity : {}
-or-
identity : {} -or- { vggface2: [ ~400x float ] }
thumb : array( 7, dtype = uint8 )
]
video_meta : {}
...
```