Skip to content

Instantly share code, notes, and snippets.

View allmeta's full-sized avatar
🎓

allmeta

🎓
View GitHub Profile
@allmeta
allmeta / flac_to_aiff.bat
Created November 5, 2022 15:34
flac to aiff
for /f "delims=" %i in ('dir /b/s *.flac') do ffmpeg -i "%i" -map_metadata 0 -write_id3v2 1 -c:v copy "%~dpni.aiff" -n
@allmeta
allmeta / metadata.ps1
Created November 5, 2022 15:33
add metadata from lightaudio tracks
# add metadata from lightaudio tracks
$items = ls *lightaudio*
foreach ($i in $items) {
$s=($i.name -split "\(www.lightaudio.ru\)")[0] -split " — "
$title=$s[1]
$artist=$s[0]
ffmpeg -i "$i" -metadata title=$title -metadata artist=$artist -c copy "out$($i.extension)"
mv -Force "out$($i.extension)" $i
}