2015년 5월 27일 수요일

FLAC 변환 - flac

flac - Free Lossless Audio Codec

Usage: 
flac [OPTIONS] [infile.wav | infile.aiff | infile.raw | infile.flac | infile.ogg] ...

flac [-d | --decode | -t | --test | -a | --analyze] [OPTIONS] [infile.flac | infile.ogg] ...


1. 옵션

-f, --force
        Force overwriting of output files

-V, --verify
        Verify (원본과 비교)

--force-raw-format
        input (when encoding)  is raw (확장자 무시)
        output (when decoding) is raw (확장자 무시)

--endian={big|little}
        endian (byte order)

--channels=#
        number of channels.

--sample-rate=#
        sample rate (in Hz)

--sign={signed|unsigned}
        Set the sign (default: signed)

--bps=#
        Set bits

-0 ~ -8, --compression-level-0 ~ --compression-level-8
        Fastest compression ~ highest compression (default is -5)

-T TITLE=title
        audio/song title

-T ARTIST=artist
        audio/song artist

-T ALBUM=album
        audio/song album

-T DATE=year
        audio/song year

-T TRACKNUMBER=trackno
        audio/song trackno

-T GENRE=genre
        audio/song genre

-o filename, --output-name=filename
        output file name

-d, --decode
        Decode

-t, --test
        Test flac file

-a, --analyze
        Analyze flac file


2. 예제

(1) encoding
flac -f -V --force-raw-format --endian=little --channels=2 --sample-rate=44100 --sign=signed --bps=16 -8 -T TITLE=title -T ARTIST=artist -T ALBUM=album -T DATE=year -T TRACKNUMBER=trackno -T GENRE=genre file -o trackno - tfile.flac

(2) decoding
flac -d -f --force-raw-format --endian=little --sign=signed filename.flac -o file


3. 스크립트

flac.exe - encoding
flacd.exe - decoding

0 개의 댓글:

댓글 쓰기