Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1142271
  • 博文数量: 139
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 1712
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-13 23:10
个人简介

每天进步一点点。

文章分类

全部博文(139)

文章存档

2015年(3)

2014年(11)

2013年(25)

2011年(1)

2009年(3)

2008年(29)

2007年(45)

2006年(22)

分类: Windows平台

2014-06-29 00:49:45

faad2解码器是一个AAC解码器
它有如下特点:

源代码下载地址:


二进制下载地址:

在命令行输入 faad.exe -h,可以得到如下帮助信息

Usage:
faad.exe [options] infile.aac
Options:
 -h    Shows this help screen.
 -i    Shows info about the input file.
 -a X  Write MPEG-4 AAC ADTS output file.
 -t    Assume old ADTS format.
 -o X  Set output filename.
 -f X  Set output format. Valid values for X are:
        1:  Microsoft WAV format (default).
        2:  RAW PCM data.
 -b X  Set output sample format. Valid values for X are:
        1:  16 bit PCM data (default).
        2:  24 bit PCM data.
        3:  32 bit PCM data.
        4:  32 bit floating point data.
        5:  64 bit floating point data.
 -s X  Force the samplerate to X (for RAW files).
 -l X  Set object type. Supported object types:
        1:  Main object type.
        2:  LC (Low Complexity) object type.
        4:  LTP (Long Term Prediction) object type.
        23: LD (Low Delay) object type.
 -d    Down matrix 5.1 to 2 channels
 -w    Write output to stdio instead of a file.
 -g    Disable gapless decoding.
 -q    Quiet - suppresses status messages.
Example:
       faad.exe infile.aac
       faad.exe infile.mp4
       faad.exe -o outfile.wav infile.aac
       faad.exe -w infile.aac > outfile.wav
       faad.exe -a outfile.aac infile.aac

从中可以看出其命令格式为:
faad.exe 参数, 输入文件
参数如下;
-h 显示帮助信息
-i 显示输入文件的信息
-a X 讲MPEG-4 AAC ADTS输出文件写入
-t 假设为老的ADTS格式
-o X 设置输出文件名称
-f X 设置输出文件格式,合法的值为1和2,默认为1,输出wav格式,2表示纯PCM
-b X 设置输出的样点格式。默认为1,表示16bit 2-5分别表示24bit,32bit,32bit浮点,64bit浮点。
-s X 强制采样率为X,仅仅为RAW文件提供
-l  X 设置输出对象类型。1 为Main,2为LC,4为LTP,23为LD
-d 把5.1转换为2声道
-w 输出到stdout而不是文件
-g  禁止gapless解码
-q 安静模式,不输出状态信息

使用实例:
 faad.exe infile.aac
       faad.exe infile.mp4
       faad.exe -o outfile.wav infile.aac
       faad.exe -w infile.aac > outfile.wav
       faad.exe -a outfile.aac infile.aac

阅读(3795) | 评论(0) | 转发(0) |
0

上一篇:FAAC的参数

下一篇:libsndfile API使用说明

给主人留下些什么吧!~~