<p>I was able to find the answer:</p>
<pre><code>ffmpeg.exe -ss 00:00:30 -t 00:00:10 -i video.mp4 -i audio.wav -c:a copy -map 0:0 -map 1:0  -vf &quot;crop=405:720,subtitles=subtitle.srt&quot;  output.mp4
</code></pre>

CC BY-SA 4.0
2023-03-17T11:14:20.913Z
2023-03-18T21:50:19.207Z
2023-03-18T21:50:19.207Z
constantlyFlagged
<p>Currently I have the following command,</p>
<p>which cuts the video, adds audio and burns subtitle into the video.</p>
<pre><code>-ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy  -acodec copy -map 0:0 -map 1:0 -vf subtitles=subtitle.srt
</code></pre>
<p>but I need to crop the video before the subtitle is added. I know it is possible to crop video using the command:</p>
<pre><code>-vf crop=405:720
</code></pre>
<p>or using</p>
<pre><code>-filter:v crop=405:720
</code></pre>
<p>but I am unable to use it in conjunction with the above statement. What would be the best approch to get the desribed outcome?</p>

CC BY-SA 4.0
2023-03-17T10:21:29.573Z
crop uses 4 variables crop=405:720:0:0 where 0:0 is the x,y coordinates of the 405:720 crop
also ... I doubt it you can codec copy, because there is a change in size of the frames, therefore you need to reencode
Komental
<ffmpeg><video><command-line><ffprobe><ffplay>
How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg
constantlyFlagged
# How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg

(Asked by: username_0 on 2023-03-15)

Currently I have the following command,
which cuts the video, adds audio and burns subtitle into the video.
-ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy  -acodec copy -map 0:0 -map 1:0 -vf subtitles=subtitle.srt

but I need to crop the video before the subtitle is added. I know it is possible to crop video using the command:
-vf crop=405:720

or using
-filter:v crop=405:720

but I am unable to use it in conjunction with the above statement. What would be the best approch to get the desribed outcome?

**Tags:** ffmpeg, video, command-line, ffprobe, ffplay

> **Comments:**
> **username_1**: crop uses 4 variables crop=405:720:0:0 where 0:0 is the x,y coordinates of the 405:720 crop also ... I doubt it you can codec copy, because there is a change in size of the frames, therefore you need to reencode  

---

## 1 answers

### Answer by username_0 on 2023-03-17. Score: 0

I was able to find the answer:
ffmpeg.exe -ss 00:00:30 -t 00:00:10 -i video.mp4 -i audio.wav -c:a copy -map 0:0 -map 1:0  -vf "crop=405:720,subtitles=subtitle.srt"  output.mp4


---

