Convert Any Video File to MP4: GPU vs CPU Using FFmpeg with Batch Script | Bulk Convert Videos
Автор: Learn with Sokorn
Загружено: 2025-05-10
Просмотров: 279
Описание:
Video 2
🚀 What You'll Learn:
How to bulk convert videos in one folder
Use GPU instead of CPU for faster conversion
Reduce file size with optimized settings
FFmpeg batch scripting for automation
🛠 Tools Used:
FFmpeg (free, open-source)
NVIDIA GPU with NVENC
How to Install FFmpeg: • How to Install FFmpeg on Windows 10/11 | C...
=====================================================
Script
(@echo off
setlocal enabledelayedexpansion
echo Creating 'Converted' folder...
if not exist "Converted" mkdir "Converted"
echo Converting all video files to MP4...
rem List of common video file extensions
set "extList=avi mov mkv flv wmv webm m4v mpg mpeg ts 3gp"
for %%E in (%extList%) do (
for %%F in (*.%%E) do (
echo Converting "%%F"...
ffmpeg -hwaccel cuda -i "%%F" -c:v h264_nvenc -preset fast -cq 23 -c:a aac -b:a 128k "Converted\%%~nF.mp4"
)
)
echo All files converted and saved to 'Converted' folder.
pause)
=====================================================
Open Notepad and save as .bat file
📌 Like, share, and subscribe if this helped you!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: