Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-03T11:23:51.520Z
Answers.Text: 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
Answers.UserDisplayName: Gallo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-03T11:41:50.940Z
Answers.Text: 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
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-03T10:31:02.000Z
Answers.LastActivityDate: 2016-09-03T10:31:02.000Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Tags: <ffmpeg>
Title: extract parts of images from a video and save it to a file
UserDisplayName: Gallo
ThreadText: # 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  
  
  ---
  
  