Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-17T11:14:20.913Z
Answers.LastActivityDate: 2023-03-18T21:50:19.207Z
Answers.LastEditDate: 2023-03-18T21:50:19.207Z
Answers.UserDisplayName: constantlyFlagged
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-17T10:21:29.573Z
Comments.Text: 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
Comments.UserDisplayName: Komental
Tags: <ffmpeg><video><command-line><ffprobe><ffplay>
Title: How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg
UserDisplayName: constantlyFlagged
ThreadText: # 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
  
  ```
  
  
  ---
  
  