13 - Multimedia
Ogg Vorbis
Encoding raw, WAV or AIFF format audio to
Ogg Vorbis
may be done with the
oggenc utility,
contained in the
audio/vorbis-tools
package, which is available through OpenBSD's
packages
and ports system.
Say you have a number of WAV files ready to encode, for example your favorite album you just
extracted from its CD. To encode all these files using an approximate bit rate of 192 kbps, you could
issue a command like
$
oggenc *.wav -b 192
When
finished, this will give you a set of .ogg files in the current directory. More extensive examples, as
well as encoding options, can be found in the oggenc manual page.
MPEG-1 Audio Layer 3 (MP3)
If for some reason you want to use the MP3 format, you can use
"Lame ain't an MP3 encoder" (LAME)
,
an educational tool to be used for learning about MP3 encoding. Lame is included in the OpenBSD ports
tree. Note that due to MP3 patents, you will not
find this package on the
official CD sets
.
Below is a simple example of encoding a WAV file with a bit rate of 192 kbps:
$
lame -b 192 track01.wav track01.mp3
For all options and details, please consult the manual page that comes with lame.
13.9 - How can I playback video DVDs in OpenBSD?
OpenBSD supports DVD media through the ISO 9660 filesystem which is also used on CD-ROMs, and,
since OpenBSD 3.8, also through the newer
Universal Disk Format (UDF)
filesystem
which is found on
some DVDs. However, almost all DVD-Video and DVD-ROM discs use the UDF bridge format, which
is a combination of the DVD MicroUDF (subset of UDF 1.02) and ISO 9660 filesystems. It is used for
backward compatibility reasons.
As most computers with DVD-ROM drives use software decoding, it is recommended to have at least a
350-MHz Pentium II or equivalent CPU to have good quality playback.
Some
popular media players, supporting DVD playback, have been ported to OpenBSD. Examples are
ogle
,
mplayer
,
xine
, and
kaffeine
. Please read the installation instructions that come with these packages,
http://www.openbsd.org/faq/faq13.html (14 of 25)9/4/2011 10:02:21 AM
13 - Multimedia
because these tools may need further setup.
With these utilities, it is possible to playback the DVD by
directly accessing the raw device. Of course, it is also possible to mount a DVD first using
mount_cd9660(8)
, and play the files on this or any other mounted filesystem.
Notes:
●
Nearly all DVDs you buy are encrypted using the Content Scrambling System (CSS). To be able
to
playback these encrypted DVDs, you can use the
libdvd library, also available through
packages and ports.
●
Be aware that a region code may be present on your DVD disk(s). This should not be much of a
problem when playing DVDs on a computer.
Do'stlaringiz bilan baham: