• 管理员
    了解作者
  • C/C++
    开发工具
  • 573KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 3012
    下载次数
  • 2001-05-07 14:22
    上传日期
MPEG-2和MP3编解码
mpeg.zip
  • DOC
  • readme.jmz.02.txt
    1.9KB
  • readme.jmz.01.txt
    8.7KB
  • readme.sr.01.txt
    1.6KB
  • readme.rb.01.txt
    1.3KB
  • README.1ST
    5.2KB
  • readme.sn.01.txt
    1.3KB
  • readme.jmz.04.txt
    2KB
  • readme.ss.01.txt
    8.8KB
  • readme.sr.02.txt
    1.9KB
  • readme.jmz.03.txt
    4KB
  • readme.dp.01.txt
    11.2KB
  • readme.mc.01.txt
    1.5KB
  • LSF
  • ENCODER
  • TABLES
  • HUFFCODE
    33.7KB
  • ALLOC_4
    2.8KB
  • PSY_DATA
    54.6KB
  • 2TH5
    3.7KB
  • 1CB5
    156B
  • 1CB4
    158B
  • ENWINDOW
    10.6KB
  • ALLOC_0
    4.4KB
  • 1TH6
    3.1KB
  • 1TH1
    2KB
  • 2CB0
    187B
  • ALLOC_2
    1.1KB
  • HUFFDEC
    18.8KB
  • 1TH2
    2.1KB
  • 2CB5
    169B
  • ABSTHR_0
    5.7KB
  • 2CB1
    185B
  • 1CB0
    166B
  • 1CB1
    172B
  • 2CB6
    156B
  • ALLOC_3
    1.6KB
  • 1CB2
    162B
  • 1TH5
    3.1KB
  • 2CB2
    175B
  • 1TH4
    3.1KB
  • ABSTHR_1
    6.5KB
  • 2TH1
    2.4KB
  • 2TH0
    2.5KB
  • 2TH4
    3.7KB
  • ABSTHR_2
    6.6KB
  • DEWINDOW
    10.6KB
  • ALLOC_1
    4.6KB
  • 1TH0
    2KB
  • 2TH2
    2.5KB
  • 2TH6
    3.7KB
  • 1CB6
    145B
  • 2CB4
    169B
  • ieeefloat.c
    28.3KB
  • L3PSY.H
    1.1KB
  • L3PSY.C
    35.7KB
  • portableio.h
    3.8KB
  • makefile.unix
    1.9KB
  • l3bitstream-pvt.h
    962B
  • formatBitstream.c
    14.9KB
  • Makefile.in
    1.3KB
  • configure
    23.1KB
  • TONAL.C
    37.9KB
  • LOOP-PVT.H
    3.7KB
  • COMMON.H
    18.2KB
  • reservoir.c
    5.8KB
  • ENCODE.C
    52.7KB
  • LOOP.C
    64KB
  • MUSICIN.C
    41.9KB
  • ENCODER.H
    14.6KB
  • Makefile
    1.4KB
  • MDCT.H
    1016B
  • ieeefloat.h
    2.7KB
  • SUBS.C
    6.1KB
  • L3SIDE.H
    2.7KB
  • LOOP.H
    2.6KB
  • COMMON.C
    46.4KB
  • HUFFMAN.H
    2.2KB
  • portableio.c
    7.1KB
  • formatBitstream.h
    4.6KB
  • l3bitstream.h
    1.2KB
  • reservoir.h
    1.1KB
  • HUFFMAN.C
    10.8KB
  • INSTALL
    1.1KB
  • MDCT.C
    6.2KB
  • l3bitstream.c
    24.4KB
  • PSY.C
    18.7KB
  • DECODER
  • TABLES
  • ALLOC_4
    2.8KB
  • 2TH5
    3.7KB
  • 1CB5
    156B
  • 1CB4
    158B
  • ENWINDOW
    10.6KB
  • ALLOC_0
    4.4KB
  • 1TH6
    3.1KB
  • 1TH1
    2KB
  • 2CB0
    187B
  • ALLOC_2
    1.1KB
  • HUFFDEC
    18.8KB
内容介绍
INTERNATIONAL ORGANIZATION FOR STANDARDIZATION ORGANISATION INTERNATIONALE DE NORMALISATION ISO/IEC JTC1/SC29/WG 11 CODING OF MOVING PICTURES AND ASSOCIATED AUDIO MPEG94/ Nov. 1994 Source: Davis Pan (Motorola Inc.), Chairman of the MPEG/audio ad hoc committee on software simulation Title: Working Draft of MPEG/Audio Technical Report Disclaimer of Warranty These software programs are available to the user without any license fee or royalty on an "as is" basis. ISO disclaims any and all warranties, whether express, implied, or statuary, including any implied warranties or merchantability or of fitness for a particular purpose. In no event shall ISO be liable for any incidental, punitive, or consequential damages of any kind whatsoever arising from the use of these programs. This disclaimer of warranty extends to the user of these programs and user's customers, employees, agents, transferees, successors, and assigns, ISO does not represent or warrant that the programs furnished hereunder are free of infringement or any third-party patents, copyrights or trade secrets. The purpose of this software is to provide a tool to help in the learning and understanding of the MPEG/audio compression and decompression algorithm. It is not an efficient implementation. Organization of this Report The main body of this report describes the organization and use of the software. The listings of the software, sample makefiles, and test bitstreams are contained in the appendices: Software Limitations The software implements levels I and II and psychophysical auditory models I and II as described in the ISO 3-11171 rev 1 standard. The input/output audio data may either be headerless raw 16 bit data or alternatively an AIFF formatted file (Audio Interchange File Format) with certain limitations. (For more information on the AIFF format see the postscript file /sgi/aiff-c.9.26.91.ps at the anonymous ftp site FTP.SGI.COM (192.48.153.1)). The AIFF formatted file is a convenient way for storing sampling rate of the audio file. The encoder and decoder software are configured to output the coded audio bitstreams as a string of hexadecimal ascii characters. For greater compression efficiency, compile flag, BS_FORMAT, in common.h can be switched to configure the bitstream reading and writing routines to process raw binary bitstreams. This software has been run and verified on a large variety of computers and operating systems. In particular UNIX, MS_DOS (with MicroSoft C version 6), Macintosh, AIX Platform (RS6000) and Convex. Organization of the Code The MPEG/audio Layer 1 and Layer 2 ** software package consists of: 21 data files tables 8 source files (*.c) 3 definitions files (*.h) 3 test bitstreams * makefiles ** There is a separate release note for the Layer 3 software Table 1 illustrates how the encoder and decoder is formed from the component files. In this table the definition files are enclosed in parenthesis and listed immediately below the primary source file which uses them. The data file names are listed within braces and also placed immediately below the source file which uses them. Table 1 encoder common decoder files files files ---------- ------------ ------------ musicin.c common.c musicout.c encode.c (common.h) decode.c (encoder.h) {alloc_0} (decoder.h) {enwindow} {alloc_1} {dewindow} psy.c, subs.c {alloc_2} {absthr_0} {alloc_3} {absthr_1} {absthr_2} tonal.c {1cb0}, {1cb1}, {1cb2} {2cb0}, {2cb1}, {2cb2} {1th0}, {1th1}, {1th2} {2th0}, {2th1}, {2th2} The test files orig.mpg and sine.dec are approximately 129026 and 387072 bytes. (Small variations are due to the blocking structures imposed by various disk operating systems.) Software Installation Place are the 21 tables (absthr_*, *cb*, *th*, alloc_*) in a subdirectory called tables. Modify the common.h to reflect the compiler and machine you are using. (ie. uncomment one of the defs UNIX, MACINTOSH, MS_DOS, MSC60, AIX or CONVEX). Compile and link the files using one of the makefiles provided as a guideline. Note that the compiler may issue warning messages such as common.c: In function `aiff_read_headers': common.c:686: warning: multi-character character constant common.c:687: warning: multi-character character constant common.c:703: warning: multi-character character constant common.c:735: warning: multi-character character constant common.c: In function `aiff_write_headers': common.c:825: warning: multi-character character constant common.c:826: warning: multi-character character constant common.c:827: warning: multi-character character constant musicin.c:920: warning: static declaration for `usage' follows non-static musicin.c: In function `aiff_check': musicin.c:960: warning: multi-character character constant These messages are dependent on the preprocessor directives specified in the common.h file. Usuage To run the code type the name of the file followed by a carriage return. The programs will prompt you to input the appropriate parameters. The sound input file for the encoder should be sound data, monophonic or stereophonic, sampled at 32, 44.1, or 48 kHz with 16 bits per sample. For stereophonic data the left channel sample should precede the right channel sample. The sound output file of the decoder will be the same format as the sound input file used by the decoder, except for possible byte order differences if the encoder and decoder programs are run on different computer systems which have different byte ordering conventions. Assuming the program musicin produces the MPEG coded file and musicout decodes the MPEG coded file, the programs can be run in either commandline mode or user prompt mode. For example, on a UNIX operating system, entering musicin sine.dec sine.mpg will run the program with the current built in defaults. The output from the program should appear as below. Encoding configuration: Layer=II mode=stereo extn=0 psy model=2 samp frq=44.1 kHz total bitrate=384 kbps de-emph=0 c/right=0 orig=0 errprot=0 input file: 'sine.dec' output file: 'sine.mpg' using bit allocation table alloc_1 slots/frame = 1253 frac SpF=0.878, tot bitrate=384 kbps, s freq=44.1 kHz Fractional number of slots, padding required { 0}absthr[][] sampling frequency index: 1 { 1}{ 2}{ 3}{ 4}{ 5}{ 6}{ 7}... Alternatively, if you enter musicin -help The program will respond with the correct command-line usuage as shown below and then exit. musicin: unrec option h musicin: -l layer must be 1 or 2, not p usage: musicin queries for all arguments, or musicin [-l lay][-m mode][-p psy][-s sfrq][-b br][-d emp] [-c][-o][-e] inputPCM [outBS] where -l lay use layer <lay> coding (dflt 2) -m mode channel mode : s/d/j/m (dflt s) -p psy psychoacoustic model 1/2 (dflt 2) -s sfrq input smpl rate in kHz (dflt 44.1) -b br total bitrate in kbps (dflt 384) -d emp de-emphasis n/5/c (dflt n) -c mark as copyright -o mark as original -e add error protection inputPCM input PCM sound file (standard or AIFF) outBS output bit stream of encoded audio (dflt inName+.mpg) Finally, if you just enter musicin Then the program will prompt you for all the coding parameters before executing. Enter PCM input file name <required>: sine.dec >>> PCM input file name is: sine.dec Enter MPEG encoded output file name <sine.dec.mpg>: sine.mpg >>> MPEG encoded output file name is: sine.mpg What is the sampling frequency? <44100>[Hz]: >>> Default 44.1 kHz samp freq sele
评论
    相关推荐
    • mp3流媒体资源,包括编解码
      mp3流媒体资源,包括编解码,只是一些原理
    • MP3编解码工具LameFront-Endv1.8官方绿色版
      LAME是一款著名的MP3编码器,顾名思义,这款名为Lame Front-End就是在LAME基础上开发的前端软件,与LAMEXP类似,这款软件提供了友好直观的用户界面,使MP3编码、解码变得更加简单,不再需要复杂的命令行操作。...
    • 音视频编解码技术
      \par 给出了一组可在每秒25和30帧的速率下进行MPEG-2MPEG-1编码的编码器参数文件。 \bin 给出了该文件的可执行程序 \mpeg2ply 包含了一个用来播放mpeg1和mpeg2视频流的windows可执行程序。 \AAC \aacenc ...
    • matlab曲线的颜色代码-MP3Codec:MP3编解码
      它使用混合的MPEG心理声学模型,同时使用PAM1和PAM2功能。 它可以在所有具有C ++ 11Linux,Unix和嵌入式OS中进行编译 MPEG心理声学模型1。 Matlab和Octave代码MPEG心理声学模型2。 Matlab和Octave代码 图形图是用于...
    • mp3编解码标准文档-word文档
      MP3的编码标准文档,其中有第一,第二心理声学模型的说明,滤波器排的原理及数学公式推演,比特层的量化以及哈弗曼码表的说明
    • MPEG-2MP3编解码
      MPEG-2MP3编解码
    • mp3编解码源程序及原理.rar
      mp3编解码源程序及原理.rarmp3编解码源程序及原理.rar
    • MP3解码编解码的C源程序,有VC下的图形界面
      各子文件夹介绍: \avi2mpg1_src 中包含了mpeg1编码的源程序 \avi2mpg1 中为该程序的可执行文件 \A2MGUI 为VC下编译的图形用户界面。 \mp3en mepg 层3音频编码程序 \mp3de mpeg 层3音频解码程序
    • fdk aac aac编解码
      一个效率很高的AAC编解码库 Fdk-aac相比 faac以及其他的aac库,好处是输出码率控制精准,而且支持he-aac的编解码
    • MP3编解码文档及代码大集合
      基于DSP的MP3编解码系统设计与实现.PDF 基于DSP的mp3解码器的研究与实现.nh 基于DSP的MPEGI音频第三层编码算法的硬件实现.PDF 基于定点DSP的MP3间频编码算法研究及实现.pdf 用低价型DSP实现MP3解码.PDF 音频...