想要(Want)在Windows 10中批量旋转视频?本教程将指导您在 Windows 10 PC上一次旋转多个视频文件。(rotate multiple video files at once)为此,我将使用两种不同的方法。让我们看看这些方法是什么!
如何在Windows 10中批量旋转(Windows 10)视频(Videos)
以下是在 Windows 10 PC 上批量旋转视频的两种方法:
- 使用GUI 免费软件 – XMedia Recode(GUI Freeware – XMedia Recode)
- 使用命令行界面 – FFmpeg(Interface – FFmpeg)
让我们以详尽的方式讨论这些方法。
1] 使用XMedia Recode批量(Batch)旋转视频
您可以使用基于 GUI 的软件一次旋转多个视频。在这里,我将使用这个名为XMedia Recode的免费软件。它是适用于Windows 10的免费视频转换器和编辑器软件。您可以使用此免费软件批量处理多个视频。
该软件为您提供了一个旋转(Rotate)功能,可以一次更改多个视频的方向。除此之外,您还可以在其中找到其他编辑功能,包括裁剪、剪辑速度、框模糊、添加字幕、添加文本、棕褐色、绘画效果、调整大小(crop, clip speed, box blur, add subtitles, add text, sepia, painting effect, resize,)等。让我们看看通过这个软件批量旋转视频的过程。
首先,单击“打开文件( Open File)”按钮以一次导入要旋转的多个视频。接下来,选择所有这些并转到“Filters/Preview”选项卡,然后单击“添加过滤器(Add Filter)”按钮,如下面的屏幕截图所示。
现在,从弹出窗口中选择旋转过滤器,然后按( Rotate)添加( Add)按钮。
之后,设置旋转参数,包括旋转角度(rotation angle)和填充颜色(fill color)。在调整旋转角度的同时,您还可以选择视频并预览其旋转版本,以查看最终视频的外观。
转到格式(Formats)选项卡并为旋转视频选择所需的输出格式。它支持多种输出视频格式,包括MP4、3GP(MP4)、MKV、AVI、ASF、MTS、FLV等。您还可以在此选项卡中设置输出位置和其他配置。
最后,单击添加到队列(Add to Queue)选项,然后按编码( Encode)按钮开始批量旋转视频。
它将在几秒钟或几分钟内处理和保存输出视频,具体取决于视频的大小。
你可以从它的官方网站下载它:xmedia-recode.de。
2] 使用命令行和FFmpeg批量旋转视频(Batch)
要在Windows 10(Windows 10)中使用命令行界面批量旋转视频,我将使用名为FFmpeg的第三方软件。它是一款多功能视频实用软件,可让您处理多媒体文件,例如播放audio/ video, convert video from one format to another, stream online videos, resize videos,等。它是一个基于命令的软件,您可以通过命令提示符进行操作。使用它,您还可以批量旋转视频。让我们看看如何!
阅读:(Read:)如何使用命令行调整视频大小。(resize a video using Command-line.)
您首先需要创建一个批处理文件以使用FFmpeg对多个视频执行批处理旋转。只需(Simply)按照以下提到的步骤,通过FFmpeg的(FFmpeg)命令提示符(Command Prompt)轻松旋转多个视频:
首先,从 ffmpeg.org下载FFmpeg软件并解压下载的(FFmpeg)ZIP文件夹。
之后,打开记事本(Notepad)应用程序或您使用的任何文本编辑器并输入具有以下语法的命令:
ffmpeg -i [input video file] -vf "transpose=[value]" [output video file]
在上述命令中,您需要输入和输出视频文件及其各自的文件夹路径。而“转置(transpose)”命令用于旋转视频。如果要将视频逆时针旋转 90 度并垂直翻转,请保留值“ 0 ”。旋转视频的其他值是“ 1 ” = 90 度顺时针,“ 2 ” = 90 度逆时针(Counterclockwise),“ 3 ” = 90 顺时针和垂直翻转。
如果要将视频顺时针旋转 180 度,则需要输入以下命令:
ffmpeg -i [input video file] -vf "transpose=2,transpose=2" [output video file]
最终旋转命令的外观示例如下:
ffmpeg -i C:\twc-video.avi -vf "transpose=1" C:\twc-video_1.avi
在新行中重复多个视频的命令,如下面的屏幕截图所示。您可以为每个输入视频保留不同的“转置”值,以将它们旋转到不同的角度。
现在,转到记事本中的“(Notepad)File > Save As”选项,并使用.bat文件扩展名保存文本文件。执行此操作时,选择保存类型(Save as type)为所有文件(All Files )并在文件名后手动添加.bat扩展名。
接下来,您必须将创建的批处理文件复制并粘贴到FFmpeg文件夹中,紧挨着FFmpeg.exe应用程序文件(位于bin子文件夹中)。
最后,双击批处理文件,它将开始在命令提示符(Command Prompt)中旋转您的视频。完成后,检查输出文件;它们将按照命令中的说明进行旋转。
我已经提到了在 Windows 10 PC 上一起旋转一批视频的两种不同方法。您可以根据自己的喜好尝试其中的任何一个,并批量修改视频的方向。
How to batch rotate Videos using GUI and Command-line in Windows 10
Want to rotate videos in a batch in Windows 10? This tutorial will guide you tо rotate multiple video files at once on your Windows 10 PC. For that, I will be using two different methods. Let’s check out what are these methods!
How to batch rotate Videos in Windows 10
Here are the two methods to bulk rotate videos on your Windows 10 PC:
- Using a GUI Freeware – XMedia Recode
- Using Command-Line Interface – FFmpeg
Let’s discuss these methods in an elaborative way.
1] Batch rotate videos using XMedia Recode
You can use a GUI-based software to rotate multiple videos at once. Here, I am going to use this free software called XMedia Recode. It is a free video converter and editor software for Windows 10. You can batch process multiple videos using this freeware.
This software provides you a Rotate function to change the orientation of multiple videos at once. Apart from that, you can also find other editing features in it including crop, clip speed, box blur, add subtitles, add text, sepia, painting effect, resize, etc. Let’s check out the process of bulk rotating videos through this software.
Firstly, click on the Open File button to import multiple videos that you want to rotate at once. Next, select all of them and go to the Filters/Preview tab and then click on the Add Filter button as depicted in the below screenshot.
Now, select the Rotate filter from the pop-up window and press the Add button.
After that, set up rotation parameters including rotation angle and fill color. While adjusting the rotation angle, you can also select a video and preview its rotated version to have a look at how the final video will look like.
Go to the Formats tab and select the desired output format for rotated videos. It supports a lot of output video formats including MP4, 3GP, MKV, AVI, ASF, MTS, FLV, etc. You can also set up output location and other configurations in this tab.
Finally, click on the Add to Queue option and then press Encode button to start batch rotating videos.
It will process and save output videos in a few seconds or minutes, depending upon the size of the videos.
You can download it from its official website here: xmedia-recode.de.
2] Batch rotate videos using command line with FFmpeg
To bulk rotate videos using the command-line interface in Windows 10, I will be using a third-party software called FFmpeg. It is a multi-purpose video utility software that lets you process multimedia files, like play audio/ video, convert video from one format to another, stream online videos, resize videos, and more. It is a command-based software that you can operate through your command prompt. Using it, you can also rotate videos in bulk. Let’s check out how!
Read: How to resize a video using Command-line.
You first need to create a batch file to perform batch rotation on multiple videos using FFmpeg. Simply follow the below mentioned steps to easily rotate multiple videos through Command Prompt with FFmpeg:
Firstly, download FFmpeg software from ffmpeg.org and extract the downloaded ZIP folder.
After that, open the Notepad application or any text editor that you use and enter a command with the following syntax:
ffmpeg -i [input video file] -vf "transpose=[value]" [output video file]
In the above command, you need to enter input and output video files with their respective folder path. And “transpose” command is used to rotate videos. Keep the value “0” if you want to rotate your video 90 degrees counterclockwise and flip vertically. Other values to rotate videos are “1” = 90 degrees Clockwise, “2” = 90 degrees Counterclockwise, and “3” = 90 Clockwise and Vertical Flip.
In case you want to rotate a video by 180 degrees clockwise, you need to enter the below command:
ffmpeg -i [input video file] -vf "transpose=2,transpose=2" [output video file]
An example of how your final rotate command will look like is:
ffmpeg -i C:\twc-video.avi -vf "transpose=1" C:\twc-video_1.avi
Repeat the commands for multiple videos in new lines as shown in the below screenshot. You can keep different “transpose” values for each of the input videos to rotate them to different angles.
Now, go to the File > Save As option in Notepad and save the text file with the .bat file extension. While doing so, select Save as type to All Files and manually add .bat extension after the filename.
Next, you have to copy and paste the created batch file in the FFmpeg folder, next to the FFmpeg.exe application file (found in bin subfolder).
Finally, double-click on the batch file and it will start rotating your videos in Command Prompt. When done, check the output files; they will be rotated as mentioned in commands.
I have mentioned two different ways to rotate a batch of videos together on your Windows 10 PC. You can try any of them as per your preference and modify the orientation of your videos in bulk.