Skip to content

EmpeRoar/video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

VIDEO CONVERTER

install this first, this is installed in windows https://github.com/BtbN/FFmpeg-Builds/releases

$dirPath = "C:\DELETEABLE\video-converter\to-covert" # replace with your directory path
$outputDir = "C:\DELETEABLE\video-converter\converted" # replace with your output directory path
Get-ChildItem -Path $dirPath -Filter *.mov | ForEach-Object {
    $baseName = ($_ | Get-Item).BaseName
    & ffmpeg -i "$dirPath\\$($_.Name)" -vcodec h264 -acodec aac "$outputDir\\$baseName.mp4"
}
$dirPath = "C:\DELETEABLE\video-converter\to-covert" # replace with your directory path
$outputDir = "C:\DELETEABLE\video-converter\converted" # replace with your output directory path
Get-ChildItem -Path $dirPath -Filter *.mov | ForEach-Object {
    $baseName = ($_ | Get-Item).BaseName
    & ffmpeg -i "$dirPath\\$($_.Name)" -vcodec h264 -b:v 10M -r 30 -vf scale=-1:1080 -acodec aac "$outputDir\\$baseName.mp4"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published