user22009: I have 2 videos of the same resolution, but I need to crop one of them and then merging them side by side, so that general height would be equal of height of non cropped video. I.e. they should look the same size after merge. Just cropped video should look like it zoomed in.
I tried to do that, but uncropped video being cropped during merge.
I cropped like that:
ffmpeg -i L.MOV -filter:v "crop=in_w-28:in_h-28" -c:a copy LC.MOV

Then merge which crops right video:
ffmpeg -i LC.MOV -i R.MOV -filter_complex '[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LCR.MOV

Here I drew what I need:

And here what I'm getting:


user1871: Use
ffmpeg -i L.MOV -i R.MOV -filter_complex '[0:v]crop=in_w-28:in_h-28,scale=640:480,setsar=1,pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LR.MOV

Since you want a zoomed-in effect, after cropping, you should rescale it back to 640x480. Your crop dimensions are disproportionate to the input dimensions so I have reset SAR to 1. You can skip this if you apply crop=in_w-28:in_h-21.

To apply the crop to the right video, use
ffmpeg -i L.MOV -i R.MOV -filter_complex '[1:v]crop=in_w-28:in_h-21,scale=640:480[int];[0:v]pad=iw*2:ih[left];[left][int]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LR.MOV


22009: <p>I have 2 videos of the same resolution, but I need to crop one of them and then merging them side by side, so that general height would be equal of height of non cropped video. I.e. they should look the same size after merge. Just cropped video should look like it zoomed in.</p>

<p>I tried to do that, but <strong><em>uncropped video being cropped during merge</em></strong>.<br>
I <strong>cropped</strong> like that:</p>

<pre><code>ffmpeg -i L.MOV -filter:v "crop=in_w-28:in_h-28" -c:a copy LC.MOV
</code></pre>

<p>Then <strong>merge</strong> which crops right video:</p>

<pre><code>ffmpeg -i LC.MOV -i R.MOV -filter_complex '[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LCR.MOV
</code></pre>

<p>Here I drew what I need:
<a href="https://i.stack.imgur.com/k2Q7U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k2Q7U.png" alt="enter image description here"></a></p>

<p>And here what I'm getting:
<a href="https://i.stack.imgur.com/WVW0r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WVW0r.png" alt="enter image description here"></a></p>
 1871: <p>Use</p>

<pre><code>ffmpeg -i L.MOV -i R.MOV -filter_complex '[0:v]crop=in_w-28:in_h-28,scale=640:480,setsar=1,pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LR.MOV
</code></pre>

<p>Since you want a zoomed-in effect, after cropping, you should rescale it back to 640x480. Your crop dimensions are disproportionate to the input dimensions so I have reset SAR to 1. You can skip this if you apply <code>crop=in_w-28:in_h-21</code>.</p>

<hr>

<p>To apply the crop to the right video, use</p>

<pre><code>ffmpeg -i L.MOV -i R.MOV -filter_complex '[1:v]crop=in_w-28:in_h-21,scale=640:480[int];[0:v]pad=iw*2:ih[left];[left][int]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast LR.MOV
</code></pre>
