mp2enc(1)


NAME

   mp2enc - Simple MPEG-1 layer-II audio encoder

SYNOPSIS

   mp2enc  [-v  num]  [-b  bitrate_kbps]  [-r output_sampling_rate_hz] [-R
   rate,chans,bits] [-s ] [-m ] [-e ] [-V ] [-?]  -o output_filename

DESCRIPTION

   Mp2enc is a simple MPEG-1 layer-I/II audio encoder.  It is  actually  a
   very mildly warmed over version of the MPEG Software Simulation Group's
   reference encoder.  It accepts a WAV file or stream on stdin and ouputs
   an  a  layer-I/II  elementary  audio  stream.   It  is  included in the
   mjpegtools(1) primarily for reasons of completeness and because  it  is
   able to perform sampling rate conversion.

   Those  seeking  a faster (and probably higher quality) layer II encoder
   are recommended to use toolame(1) which can be obtained from:

          http://www.planckenergy.com

GENERAL FUNCTION LETTERS

   -o output_filename
          Specifies the name for the output file.

          An integer format code (e.g. %d) in the  name  is  replaced  the
          number of the file generated (see printf(3)).

   -v num Set  verbosity  level to num.  0 = warnings and errors only, 1 =
          information as well, 2=really verbose.  -?  Display  a  synopsis
          of the command syntax.

   -R rate,chans,bits
          Indicate,  that  the  input  is raw PCM without header. You must
          specify 3 numbers: rate is the samplerate in Hz,  chans  is  the
          number  of  channels (1 or 2) and bits is the number of bits per
          sample. 8 bits are unsigned,  16  bits  are  signed  in  machine
          native byte order.

FUNCTION LETTERS CONTROLLING OUTPUT STREAM STRUCTURE

   -b bitrate

          This  sets  the  bit-rate  of  the  output  stream  in kBit/sec.
          Typical values for layer II might be  224kbps  for  good-quality
          audio suitable for capturing Dolby pro-logic signals.  A rate of
          192kbps or 128kbps is reasonable for  low  quality  audio  (e.g.
          mono  TV  audio).  Really high compression is, of course, better
          achieved using MPEG-1 layer III ("MP3") audio encoding or AAC. A
          more appropriate value for layer I might be 384kbps.

   -r sampling_rate
          Sets  the audio sampling rate of the reconstructed output signal
          in Hz.  Legal values are 32000, 44100 and 48000Hz.   mp2enc will
          automatically sample-rate convert the input signal if necessary.

   -l layer
          Sets  the audio layer.  Legal values are 1 and 2. The default is
          layer II.

   -s     Force stereo output.  A mono input  signal  is  channel  doubled
          before  encoding  to make it stereo.  This is useful for players
          which simply can't handle a non-stero signal.

   -m     Force mono output.  A stereo input signal is  down-mixed  before
          encoding.  Useful if you've captured a mono signal in stereo and
          your player can handle mono MPEG-1 Layer 2 audio.

   -e     Use CRC error protection.

   -V     Force VCD compatible output. The primary effect of  this  is  to
          make  certain that the sampling rate is set to 44100 (-r 44100).
          The VCD2.0 specifications permit mono audio at 64,  96  and  192
          kbits/sec  and stereo at 128, 192, 224, and 384 kbits/sec. Using
          -V checks that the bitrate is valid for the number of  channels.
          The  defaults  (unless  -m  or  -b  are  used) are stereo at 224
          kbits/sec.

   -o outputpathname
          The name of the output file to generate.  If '-' is given as the
          pathname output is written to standard output.

BUGS

   Mono output does not work for layer I.

AUTHOR

   This man page was written by Andrew Stevens.
   If  you  have  questions, remarks, problems or you just want to contact
   the developers, the main mailing list for the MJPEG-tools is:
     mjpeg-users@lists.sourceforge.net

   For more info, see our website at
          http://mjpeg.sourceforge.net

SEE ALSO

   mpeg2enc(1), mp2enc(1), lavrec(1), lavplay(1), lav2yuv(1),  lav2wav(1),
   yuvscaler(1)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.