<p>Top left.</p>

<p>Pixels in a raw video stream are stored left to right, top to bottom. And all filters work on uncompressed frames, so that's the easiest way to setup the co-ordinate system as well.</p>

CC BY-SA 3.0
2016-08-03T19:44:49.233Z
2016-08-03T19:44:49.233Z
Gyan
<p>This is a pretty simple question yet i couldn't find the answer to it anywhere. 
How does ffmpeg's coordinate system work? Meaning - for all operations such as <code>crop</code> and <code>overlay</code>, is the (0,0) point at the bottom left or top left?</p>

<p>Thanks!</p>

<ffmpeg>
ffmpeg - coordinate system
YaronGh
# ffmpeg - coordinate system

(Asked by: username_0 on 2016-08-03)

This is a pretty simple question yet i couldn't find the answer to it anywhere.
How does ffmpeg's coordinate system work? Meaning - for all operations such as `crop` and `overlay`, is the (0,0) point at the bottom left or top left?

Thanks!

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_1 on 2016-08-03. Score: 4 | Accepted answer

Top left.

Pixels in a raw video stream are stored left to right, top to bottom. And all filters work on uncompressed frames, so that's the easiest way to setup the co-ordinate system as well.


---

