<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>

CC BY-SA 4.0
2023-06-29T16:42:23.120Z
"cut out the middle bit" you mean cropping? Or edit in time?
soundflix
CC BY-SA 4.0
2023-06-29T18:48:46.427Z
Cropping, I've edited the question with what looks like the right approach.
Vita Vita
CC BY-SA 4.0
2023-06-29T19:10:05.393Z
And did you have success with this command?
soundflix
CC BY-SA 4.0
2023-06-29T23:33:29.200Z
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.
Vita Vita
<ffmpeg><youtube><short>
Command line approach to taking a 16:9 video and creating a 1080x1920 YouTube short?
Vita Vita
# 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

