2015년 5월 27일 수요일

MP3 인코딩 - lame

lame - create mp3 audio files

Usage: lame [options] <infile> <outfile>


1. 옵션

-r
        raw file

--bitwidth n
        Input bit width per sample
        n = 8, 16, 24, 32 (default 16)

--little-endian
        little-endian (only for raw)

--noreplaygain
        Disable ReplayGain analysis

-s sfreq
        sfreq = 8/11.025/12/16/22.05/24/32/44.1/48  (only for raw)

-q qual
        0 <= qual <= 9

        -q 0: slowest & best
        -q 2: recommended (-h)
        -q 5: default
        -q 7: Very fast (-f)
        -q 9: Poor quality

-b n
        CBR bitrate
        n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320

--cbr
        Use CBR

--id3v2-only
        only version 2 tag

--id3v2-utf16
        unicode text encoding

--tt title
        audio/song title

--ta artist
        audio/song artist

--tl album
        audio/song album

--ty year
        audio/song year

--tn track[/total]
        audio/song track and total number

--tg genre
        audio/song genre


2. 예제

lame -r --bitwidth 16 --little-endian --noreplaygain -s 44.1 -q 0 -b 320 --cbr --id3v2-only --id3v2-utf16 --tt title --ta artist --tl album --ty year --tn trackno --tg genre file.raw trackno - tfile.mp3


3. 스크립트

0 개의 댓글:

댓글 쓰기