iPhone参考库中的afconvert

iPhone参考库中的afconvert,iphone,file-format,dataformat,afconvert,Iphone,File Format,Dataformat,Afconvert,你能给我一些关于在iPhone中使用afconvert转换文件格式的信息吗? 或者让我知道一些关于afconvert的基本信息的链接。我想知道使用的命令-do-f、-d、-c等在中代表什么: afconvert-f aac-d mp3[输入][输出] 在上面的命令中,我在哪里提到源数据格式、文件格式和目标数据格式、文件格式?afconvert-h 在终端提示下,在10.6.6中产生: afconvert [option...] input_file [output_file] Optio

你能给我一些关于在iPhone中使用afconvert转换文件格式的信息吗? 或者让我知道一些关于afconvert的基本信息的链接。我想知道使用的命令-do-f、-d、-c等在中代表什么:

afconvert-f aac-d mp3[输入][输出]

在上面的命令中,我在哪里提到源数据格式、文件格式和目标数据格式、文件格式?

afconvert-h

在终端提示下,在10.6.6中产生:

afconvert [option...] input_file [output_file]
    Options may appear before or after the direct arguments. If output_file
    is not specified, a name is generated programmatically and the file
    is written into the same directory as input_file.
afconvert input_file [-o output_file [option...]]...
    Output file options apply to the previous output_file. Other options
    may appear anywhere.

General options:
    { -d | --data } data_format[@sample_rate][/format_flags][#frames_per_packet]
        [-][BE|LE]{F|[U]I}{8|16|24|32|64}          (PCM)
            e.g.   BEI16   F32@44100
        or a data format appropriate to file format (see -hf)
        format_flags: hex digits, e.g. '80'
        Frames per packet can be specified for some encoders, e.g.: samr#12
        A format of "0" specifies the same format as the source file,
            with packets copied exactly.
    { -c | --channels } number_of_channels
        add/remove channels without regard to order
    { -l | --channellayout } layout_tag
        layout_tag: name of a constant from CoreAudioTypes.h
          (prefix "kAudioChannelLayoutTag_" may be omitted)
        if specified once, applies to output file; if twice, the first
          applies to the input file, the second to the output file
    { -b | --bitrate } total_bit_rate_bps
         e.g. 256000 will give you roughly:
             for stereo source: 128000 bits per channel
             for 5.1 source: 51000 bits per channel
                 (the .1 channel consumes few bits and can be discounted in the total bit rate calculation)
    { -q | --quality } codec_quality
        codec_quality: 0-127
    { -r | --src-quality } src_quality
        src_quality (sample rate converter quality): 0-127 (default is 127)
    { --src-complexity } src_complexity
        src_complexity (sample rate converter complexity): line, norm, bats
    { -s | --strategy } strategy
        bitrate allocation strategy for encoding an audio track
        0 for CBR, 1 for ABR, 2 for VBR_constrained, 3 for VBR
    --prime-method method
        decode priming method (see AudioConverter.h)
    --no-filler
        don't page-align audio data in the output file
    --soundcheck-generate
        analyze audio, add SoundCheck data to the output file
    { -u | --userproperty } property value
        set an arbitrary AudioConverter property to a given value
        property is a four-character code; value is signed 32-bit integer.
        A maximum of 8 properties may be set.
        e.g. '-u vbrq <sound_quality>' sets the sound quality level
             (<sound_quality>: 0-127)

Input file options:
    --read-track track_index
        For input files containing multiple tracks, the index (0..n-1)
        of the track to read and convert.
    --offset number_of_frames
        the starting offset in the input file in frames. (The first frame is
        frame zero.)
    --soundcheck-read
         read SoundCheck data from source file and set it on any destination
         file(s) of appropriate filetype (.m4a, .caf).

Output file options:
    -o filename
        specify an (additional) output file.
    { -f | --file } file_format
        use -hf for a complete list of supported file/data formats

Other options:
    { -v | --verbose }
        print progress verbosely
    { -t | --tag }
        If encoding to CAF, store the source file's format and name in a user
        chunk. If decoding from CAF, use the destination format and filename
        found in a user chunk.
    { --leaks }
        run leaks at the end of the conversion
    { --profile }
        collect and print performance information

Help options:
    { -hf | --help-formats }
        print a list of supported file/data formats
    { -h | --help }
        print this help
afconvert[选项…]输入文件[输出文件]
选项可能出现在直接参数之前或之后。If输出文件
如果未指定,则以编程方式生成名称,并且
写入与输入文件相同的目录。
afconvert输入\ U文件[-o输出\ U文件[选项…]]。。。
输出文件选项适用于上一个输出文件。其他选择
可能出现在任何地方。
一般选择:
{-d |--data}data_格式[@sample_rate][/format_flags][#每个数据包的帧数]
[-][BE | LE]{F |[U]I}{8 | 16 | 24 | 32 | 64}(PCM)
e、 g.BEI16F32@44100
或适合于文件格式的数据格式(参见-hf)
格式标志:十六进制数字,例如“80”
可以为某些编码器指定每个数据包的帧,例如:samr#12
“0”格式指定与源文件相同的格式,
数据包被精确复制。
{-c |--channels}通道数
添加/删除频道,不考虑订单
{-l |--channellayout}layout_标记
layout_标记:CoreAudioTypes.h中常量的名称
(可省略前缀“kAudioChannelLayoutTag_”)
如果指定一次,则应用于输出文件;如果两次,第一次
应用于输入文件,第二个应用于输出文件
{-b |--bitrate}总比特率
e、 g.256000将大致为您提供:
立体声源:每通道128000位
对于5.1源:每个通道51000位
(1信道消耗少量比特,可在总比特率计算中贴现)
{-q}--质量}编解码器质量
编解码器质量:0-127
{-r |--src-quality}src-u-quality
src_质量(采样率转换器质量):0-127(默认值为127)
{--src复杂性}src_复杂性
src_复杂度(采样率转换器复杂度):行、范数、bats
{-s}--策略}策略
用于音频轨道编码的比特率分配策略
0表示CBR,1表示ABR,2表示VBR_约束,3表示VBR
--素数法
解码启动方法(参见AudioConverter.h)
--无填料
在输出文件中不分页对齐音频数据
--声音检查生成
分析音频,将SoundCheck数据添加到输出文件
{-u |--userproperty}属性值
将任意AudioConverter属性设置为给定值
属性是一个四字符代码;值是有符号32位整数。
最多可设置8个属性。
e、 g.“-u vbrq”设置音质级别
(: 0-127)
输入文件选项:
--读取磁道索引
对于包含多个曲目的输入文件,索引(0..n-1)
要读取和转换的曲目的名称。
--帧的偏移数
输入文件中以帧为单位的起始偏移量。(第一帧是
第零帧。)
--声音检查读取
从源文件读取声音检查数据,并将其设置在任何目标上
适当文件类型(.m4a、.caf)的文件。
输出文件选项:
-o文件名
指定一个(附加)输出文件。
{-f |--file}file_格式
使用-hf可获得支持的文件/数据格式的完整列表
其他选择:
{-v |--verbose}
详细打印进度
{-t |--tag}
如果编码为CAF,则将源文件的格式和名称存储在用户中
大块如果从CAF解码,请使用目标格式和文件名
在用户块中找到。
{--leaks}
在转换结束时运行泄漏
{--profile}
收集和打印性能信息
帮助选项:
{-hf |--help格式}
打印支持的文件/数据格式列表
{-h}--help}
打印此帮助
afconvert-h

在终端提示下,在10.6.6中产生:

afconvert [option...] input_file [output_file]
    Options may appear before or after the direct arguments. If output_file
    is not specified, a name is generated programmatically and the file
    is written into the same directory as input_file.
afconvert input_file [-o output_file [option...]]...
    Output file options apply to the previous output_file. Other options
    may appear anywhere.

General options:
    { -d | --data } data_format[@sample_rate][/format_flags][#frames_per_packet]
        [-][BE|LE]{F|[U]I}{8|16|24|32|64}          (PCM)
            e.g.   BEI16   F32@44100
        or a data format appropriate to file format (see -hf)
        format_flags: hex digits, e.g. '80'
        Frames per packet can be specified for some encoders, e.g.: samr#12
        A format of "0" specifies the same format as the source file,
            with packets copied exactly.
    { -c | --channels } number_of_channels
        add/remove channels without regard to order
    { -l | --channellayout } layout_tag
        layout_tag: name of a constant from CoreAudioTypes.h
          (prefix "kAudioChannelLayoutTag_" may be omitted)
        if specified once, applies to output file; if twice, the first
          applies to the input file, the second to the output file
    { -b | --bitrate } total_bit_rate_bps
         e.g. 256000 will give you roughly:
             for stereo source: 128000 bits per channel
             for 5.1 source: 51000 bits per channel
                 (the .1 channel consumes few bits and can be discounted in the total bit rate calculation)
    { -q | --quality } codec_quality
        codec_quality: 0-127
    { -r | --src-quality } src_quality
        src_quality (sample rate converter quality): 0-127 (default is 127)
    { --src-complexity } src_complexity
        src_complexity (sample rate converter complexity): line, norm, bats
    { -s | --strategy } strategy
        bitrate allocation strategy for encoding an audio track
        0 for CBR, 1 for ABR, 2 for VBR_constrained, 3 for VBR
    --prime-method method
        decode priming method (see AudioConverter.h)
    --no-filler
        don't page-align audio data in the output file
    --soundcheck-generate
        analyze audio, add SoundCheck data to the output file
    { -u | --userproperty } property value
        set an arbitrary AudioConverter property to a given value
        property is a four-character code; value is signed 32-bit integer.
        A maximum of 8 properties may be set.
        e.g. '-u vbrq <sound_quality>' sets the sound quality level
             (<sound_quality>: 0-127)

Input file options:
    --read-track track_index
        For input files containing multiple tracks, the index (0..n-1)
        of the track to read and convert.
    --offset number_of_frames
        the starting offset in the input file in frames. (The first frame is
        frame zero.)
    --soundcheck-read
         read SoundCheck data from source file and set it on any destination
         file(s) of appropriate filetype (.m4a, .caf).

Output file options:
    -o filename
        specify an (additional) output file.
    { -f | --file } file_format
        use -hf for a complete list of supported file/data formats

Other options:
    { -v | --verbose }
        print progress verbosely
    { -t | --tag }
        If encoding to CAF, store the source file's format and name in a user
        chunk. If decoding from CAF, use the destination format and filename
        found in a user chunk.
    { --leaks }
        run leaks at the end of the conversion
    { --profile }
        collect and print performance information

Help options:
    { -hf | --help-formats }
        print a list of supported file/data formats
    { -h | --help }
        print this help
afconvert[选项…]输入文件[输出文件]
选项可能出现在直接参数之前或之后。If输出文件
如果未指定,则以编程方式生成名称,并且
写入与输入文件相同的目录。
afconvert输入\ U文件[-o输出\ U文件[选项…]]。。。
输出文件选项适用于上一个输出文件。其他选择
可能出现在任何地方。
一般选择:
{-d |--data}data_格式[@sample_rate][/format_flags][#每个数据包的帧数]
[-][BE | LE]{F |[U]I}{8 | 16 | 24 | 32 | 64}(PCM)
e、 g.BEI16F32@44100
或适合于文件格式的数据格式(参见-hf)
格式标志:十六进制数字,例如“80”
可以为某些编码器指定每个数据包的帧,例如:samr#12
“0”格式指定与源文件相同的格式,
数据包被精确复制。
{-c |--channels}通道数
添加/删除频道,不考虑订单
{-l |--channellayout}layout_标记
layout_标记:CoreAudioTypes.h中常量的名称
(可省略前缀“kAudioChannelLayoutTag_”)
如果指定一次,则应用于输出文件;如果两次,第一次
应用于输入文件,第二个应用于输出文件
{-b |--bitrate}总比特率
e、 g.256000将大致为您提供:
立体声源:每通道128000位
对于5.1源:每个通道51000位
(1信道消耗少量比特,可在总比特率计算中贴现)
{-q |--qualit