폴더에 있는 파일 변환하기 ffmpeg (ogg->mp3)

2020. 12. 2. 15:32Windows/power-shell-basic

728x90
SMALL

- 개요

Windows Power Shell에서 ffmpeg을 이용해서 ogg를 mp3로 변환하는 스크립트

 

 

- 스크립트

$files = Get-ChildItem -Path -Filter *.ogg -Recurse
foreach ($f in $files) {
""
$f.fullname
& "\ffmpeg.exe" -i "$($f.Fullname)" "$($f.Directory)$($f.baseName).mp3"
}

 

728x90
LIST

'Windows > power-shell-basic' 카테고리의 다른 글

powershell command (cp, list, rename, find, count)  (0) 2020.11.06