Body: <p>Is there a way of using ffmpeg or similar, taking a 1920x1080 video, cut out the middle bit for creating a 1080x1920 YouTube short and then getting it to upscale the middle bit?</p>
  <p>EDIT: I think this is it:
  ffmpeg.exe -i input.mp4 -filter:v &quot;crop=1080:1080:420:0,scale=1920:1920:flags=lanczos:param0=3,crop=1080:1920&quot; -acodec copy output.mp4</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-29T16:42:23.120Z
Comments.Text: "cut out the middle bit" you mean cropping? Or edit in time?
Comments.UserDisplayName: soundflix
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-29T18:48:46.427Z
Comments.Text: Cropping, I've edited the question with what looks like the right approach.
Comments.UserDisplayName: Vita Vita
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-29T19:10:05.393Z
Comments.Text: And did you have success with this command?
Comments.UserDisplayName: soundflix
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-29T23:33:29.200Z
Comments.Text: Yeah, I've adopted an approach of converting the whole video with the command above first and then selecting out the 59 seconds I want with a follow up command.  That does the trick.  YouTube is now recognising the videos as shorts.
Comments.UserDisplayName: Vita Vita
Tags: <ffmpeg><youtube><short>
Title: Command line approach to taking a 16:9 video and creating a 1080x1920 YouTube short?
UserDisplayName: Vita Vita
ThreadText: # Command line approach to taking a 16:9 video and creating a 1080x1920 YouTube short?
  
  (Asked by: username_0 on 2023-06-29)
  
  Is there a way of using ffmpeg or similar, taking a 1920x1080 video, cut out the middle bit for creating a 1080x1920 YouTube short and then getting it to upscale the middle bit?
  
  EDIT: I think this is it:
  ffmpeg.exe -i input.mp4 -filter:v "crop=1080:1080:420:0,scale=1920:1920:flags=lanczos:param0=3,crop=1080:1920" -acodec copy output.mp4
  
  **Tags:** ffmpeg, youtube, short
  
  > **Comments:**
  > **username_1**: "cut out the middle bit" you mean cropping? Or edit in time?  
  > **username_0**: Cropping, I've edited the question with what looks like the right approach.  
  > **username_1**: And did you have success with this command?  
  > **username_0**: Yeah, I've adopted an approach of converting the whole video with the command above first and then selecting out the 59 seconds I want with a follow up command.  That does the trick.  YouTube is now recognising the videos as shorts.  
  
  ---
  
  ## 0 answers
  
  