<p>This will change the resolution of the videos without cropping them:</p>
<pre><code>md Jukebox_Converted-90_30fps_Audio_HD
cd Files_To_Be_Converted
for %%f in (*) do ..\ffmpeg -i &quot;%%f&quot; -vf &quot;transpose=cclock,scale=1080:608&quot; -pix_fmt yuv420p -r 30 -c:a copy &quot;..\Jukebox_Converted-90_30fps_Audio_HD\%%f&quot;
pause
</code></pre>
<p>Things I fixed about your command:</p>
<ul>
<li>Arbitrary Cropping</li>
<li>Use of deprecated numeric value on transpose</li>
<li>Wrong order of filters</li>
</ul>

CC BY-SA 4.0
2023-06-15T02:03:03.737Z
2023-06-19T21:51:20.943Z
2023-06-19T21:51:20.943Z
marbens
<p>I use a programm that needs .mp4 video files in the resolution 1080x608 px (width x height).</p>
<p>My original videos have a smaller resolution - mostly 640x480 px.</p>
<p>I have to rotate my original videos 90 degree (CounterClockwise) and after the rotation resize to the resolution 1080x608 px. It should used the centered area of the video.</p>
<p>What is the correct command for ffmpeg?</p>
<p>For larger videos I use the following command:</p>
<pre><code>md Jukebox_Converted-90_30fps_Audio_HD
cd Files_To_Be_Converted
for %%f in (*) do ..\ffmpeg -i &quot;%%f&quot; -vf &quot;crop=608:1080:0:0,transpose=2&quot; -pix_fmt yuv420p -r 30 -c:a copy &quot;..\Jukebox_Converted-90_30fps_Audio_HD\%%f&quot;
pause
</code></pre>
<p>Thanks &amp; Regards</p>

<ffmpeg><video>
How can I rotate and resize a video with ffmpeg?
dabri
# How can I rotate and resize a video with ffmpeg?

(Asked by: username_0 on 2023-05-28)

I use a programm that needs .mp4 video files in the resolution 1080x608 px (width x height).
My original videos have a smaller resolution - mostly 640x480 px.
I have to rotate my original videos 90 degree (CounterClockwise) and after the rotation resize to the resolution 1080x608 px. It should used the centered area of the video.
What is the correct command for ffmpeg?
For larger videos I use the following command:
md Jukebox_Converted-90_30fps_Audio_HD
cd Files_To_Be_Converted
for %%f in (*) do ..\ffmpeg -i "%%f" -vf "crop=608:1080:0:0,transpose=2" -pix_fmt yuv420p -r 30 -c:a copy "..\Jukebox_Converted-90_30fps_Audio_HD\%%f"
pause

Thanks & Regards

**Tags:** ffmpeg, video


---

## 1 answers

### Answer by username_1 on 2023-06-15. Score: 0

This will change the resolution of the videos without cropping them:
md Jukebox_Converted-90_30fps_Audio_HD
cd Files_To_Be_Converted
for %%f in (*) do ..\ffmpeg -i "%%f" -vf "transpose=cclock,scale=1080:608" -pix_fmt yuv420p -r 30 -c:a copy "..\Jukebox_Converted-90_30fps_Audio_HD\%%f"
pause

Things I fixed about your command:

Arbitrary Cropping
Use of deprecated numeric value on transpose
Wrong order of filters


---

