1999-05-20 10:14:57 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999 Hellmuth Michaelis. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-12-14 21:14:28 +00:00
|
|
|
.\" $Id: g711conv.1,v 1.3 1999/12/13 22:11:55 hm Exp $
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1999-05-20 10:14:57 +00:00
|
|
|
.\"
|
1999-12-14 21:14:28 +00:00
|
|
|
.\" last edit-date: [Mon Dec 13 22:54:33 1999]
|
1999-05-20 10:14:57 +00:00
|
|
|
.\"
|
|
|
|
.Dd March 15, 1999
|
1999-08-15 08:47:11 +00:00
|
|
|
.Dt G711CONV 1
|
|
|
|
.Os
|
1999-05-20 10:14:57 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm g711conv
|
|
|
|
.Nd conversions according to G.711
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl a
|
|
|
|
.Op Fl u
|
|
|
|
.Op Fl P
|
|
|
|
.Op Fl A
|
|
|
|
.Op Fl R
|
|
|
|
.Sh DESCRIPTION
|
2002-04-20 12:27:18 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2002-04-20 12:27:18 +00:00
|
|
|
utility
|
1999-05-20 10:14:57 +00:00
|
|
|
is part of the isdn4bsd package and is used to convert between the A-Law and
|
|
|
|
u-law formats as specified in ITU G.711. It is based on a freely available
|
|
|
|
and freely usable reference implementation done by Sun Microsystems, Inc.
|
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
|
|
|
Convert A-law to u-law
|
|
|
|
.It Fl u
|
|
|
|
Convert u-law to A-law
|
|
|
|
.It Fl r
|
|
|
|
Reverse bits before conversion
|
|
|
|
.It Fl R
|
|
|
|
Reverse bits after conversion
|
|
|
|
.It Fl P
|
|
|
|
Print the resulting conversion tables (as C-source) to stdout instead of
|
|
|
|
doing the actual conversion.
|
|
|
|
.El
|
|
|
|
.Sh STANDARDS
|
|
|
|
A-Law and u-Law conversions are specified in ITU Recommendation G.711.
|
|
|
|
.Pp
|
|
|
|
The reference implementation done by Sun Microsystems, Inc. is available
|
|
|
|
from http://www.itu.int/itudoc/itu-t/rec/g/g700-799/refimpl.txt
|
|
|
|
.Sh EXAMPLES
|
|
|
|
The command:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
g711conv -P -a
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
prints out the A-law to u-law conversion table as C-source to stdout.
|
|
|
|
.Pp
|
|
|
|
The command:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
cat max_headroom.ul | g711conv -u -R > /dev/i4btel0
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
converts the u-law coded voice of Max Headroom to A-law, reverses the
|
|
|
|
bits of the result and moves that to an active isdn4bsd telephone connection.
|
2000-11-17 11:44:16 +00:00
|
|
|
.Sh AUTHORS
|
1999-05-20 10:14:57 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
utility and this manpage were written by
|
1999-08-15 08:47:11 +00:00
|
|
|
.An Hellmuth Michaelis Aq hm@kts.org
|
2001-07-15 08:06:20 +00:00
|
|
|
based on the G.711 conversion reference code written by Sun Microsystems,
|
1999-12-14 21:14:28 +00:00
|
|
|
Inc. and code contributed to isdn4bsd by Stefan Bethke.
|