1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-19 05:12:47 +00:00
dotfiles/bin/optiflac

11 lines
305 B
Plaintext
Raw Normal View History

2020-10-13 20:14:57 +00:00
#!/bin/sh
2020-08-04 03:17:43 +00:00
mkdir out
2022-05-13 00:33:05 +00:00
fd -e flac -d1 -x ffmpeg -i {} -c:v copy -c:a flac -compression_level 12\
-af aresample=resampler=soxr:precision=32:dither_method=triangular\
-sample_fmt s16 "$@" out/{}
( cd out && comparedir .. )
fd -e flac -d1 -x flac -f8 {} -o out/{}
2022-05-13 00:33:05 +00:00
( cd out && comparedir .. )
2020-08-04 03:17:43 +00:00
rm -r out