<p>Sure. Command template is</p>

<pre><code>ffmpeg -i video.mov -filter_complex "[0]crop=500:200:0:0[l];[0]crop=500:200:1000:0[r]; \
                                     [l][r]hstack" final.mov
</code></pre>

CC BY-SA 3.0
2016-09-03T11:23:51.520Z
Very nice @Mulvya ! I am very new to ffmpeg.
This is just perfect.
What a useful tool ffmpeg is ! Can you explain some details though ? - what are those [] tags ?
- and what "hstack" stands for ? thanks a lot
Gallo
CC BY-SA 3.0
2016-09-03T11:41:50.940Z
hstack is a filter which stacks videos (of same height) horizontally. The brackets with a string are pads - read about them at https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1
Gyan
CC BY-SA 3.0
2016-09-03T10:31:02.000Z
2016-09-03T10:31:02.000Z
Gyan
<p>I have a video of 2000 x 200 pixels in resolution
I need to grab two parts inside that video (cut into the image, not trimming).</p>

<p>I need to grab a piece of 500 x 200 pixels from coordinates (0,0) and another 500 x 200 pixels from coordinates (1000,0), then merge them side by side into a new 1000 x pixels video file.</p>

<p><a href="https://i.sstatic.net/e0ni4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e0ni4.png" alt="enter image description here"></a></p>

<p>is that possible ?</p>

<ffmpeg>
extract parts of images from a video and save it to a file
Gallo
# extract parts of images from a video and save it to a file

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

I have a video of 2000 x 200 pixels in resolution
I need to grab two parts inside that video (cut into the image, not trimming).

I need to grab a piece of 500 x 200 pixels from coordinates (0,0) and another 500 x 200 pixels from coordinates (1000,0), then merge them side by side into a new 1000 x pixels video file.

[![enter image description here](https://i.sstatic.net/e0ni4.png)](https://i.sstatic.net/e0ni4.png)

is that possible ?

**Tags:** ffmpeg


---

## 1 answers

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

Sure. Command template is
ffmpeg -i video.mov -filter_complex "[0]crop=500:200:0:0[l];[0]crop=500:200:1000:0[r]; \
                                     [l][r]hstack" final.mov

> **Comments:**
> **username_0**: Very nice @Mulvya ! I am very new to ffmpeg. This is just perfect. What a useful tool ffmpeg is ! Can you explain some details though ? - what are those [] tags ? - and what "hstack" stands for ? thanks a lot  
> **username_1**: hstack is a filter which stacks videos (of same height) horizontally. The brackets with a string are pads - read about them at https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1  

---

