~ubuntu-branches/ubuntu/karmic/mplayer/karmic

« back to all changes in this revision

Viewing changes to DOCS/HTML/en/radio-input.html

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-06 23:01:52 UTC
  • mfrom: (0.1.6 squeeze) (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090606230152-qxn13xfnq65nz088
Tags: 2:1.0~rc3+svn20090426-1ubuntu1
* Switch to debian packaging for the mplayer package
* New upstream release, LP: #336697, #260918, #246675, #243453, #74282
* Fixes security issues: CVE-2008-5616, LP: #308939
* many flv fixes LP: #73271, #347021
* Build and install mencoder
* Bump epoch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>11.1. Radio input</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="radio.html" title="Chapter 11. Radio"><link rel="prev" href="radio.html" title="Chapter 11. Radio"><link rel="next" href="ports.html" title="Chapter 12. Ports"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter 1. Introduction"><link rel="chapter" href="install.html" title="Chapter 2. Installation"><link rel="chapter" href="usage.html" title="Chapter 3. Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter 4. CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter 5. Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter 6. Containers"><link rel="chapter" href="codecs.html" title="Chapter 7. Codecs"><link rel="chapter" href="video.html" title="Chapter 8. Video output devices"><link rel="chapter" href="audio.html" title="Chapter 9. Audio output devices"><link rel="chapter" href="tv.html" title="Chapter 10. TV"><link rel="chapter" href="radio.html" title="Chapter 11. Radio"><link rel="chapter" href="ports.html" title="Chapter 12. Ports"><link rel="chapter" href="mencoder.html" title="Chapter 13. Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter 14. Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix A. How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix B. Known bugs"><link rel="appendix" href="skin.html" title="Appendix C. MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix D. History"><link rel="subsection" href="radio-input.html#radio-compilation" title="11.1.1. Compilation"><link rel="subsection" href="radio-input.html#radio-tips" title="11.1.2. Usage tips"><link rel="subsection" href="radio-input.html#radio-examples" title="11.1.3. Examples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">11.1. Radio input</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="radio.html">Prev</a> </td><th width="60%" align="center">Chapter 11. Radio</th><td width="20%" align="right"> <a accesskey="n" href="ports.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="radio-input"></a>11.1. Radio input</h2></div></div></div><p>
2
 
This section is about how to enable listening to radio from
3
 
a V4L-compatible radio tuner. See the man page for a
4
 
description of radio options and keyboard controls.
5
 
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="radio-compilation"></a>11.1.1. Compilation</h3></div></div></div><div class="procedure"><ol type="1"><li><p>
6
 
  First, you have to recompile <span class="application">MPlayer</span> using
7
 
  <tt class="filename">./configure</tt> with <tt class="option">--enable-radio</tt> and
8
 
  (if you want capture support) <tt class="option">--enable-radio-capture</tt>.
9
 
</p></li><li><p>
10
 
  Make sure your tuner works with another radio software in Linux, for
11
 
  example <span class="application">XawTV</span>.
12
 
</p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="radio-tips"></a>11.1.2. Usage tips</h3></div></div></div><p>
13
 
The full listing of the options is available in the manual page.
14
 
Here are just a few tips:
15
 
 
16
 
</p><div class="itemizedlist"><ul type="disc"><li><p>
17
 
  Use the <tt class="option">channels</tt> option. An example:
18
 
  </p><pre class="screen">-radio channels=104.4-Sibir,103.9-Maximum</pre><p>
19
 
  Explanation: With this option, only the 104.4 and 103.9 radio stations
20
 
  will be usable. There will be a nice OSD text upon channel switching,
21
 
  displaying the channel's name. Spaces in the channel name must be
22
 
  replaced by the "_" character.
23
 
</p></li><li><p>
24
 
  There are several ways of capturing audio. You can grab the sound either using
25
 
  your sound card via an external cable connection between video card and
26
 
  line-in, or using the built-in ADC in the saa7134 chip. In the latter case,
27
 
  you have to load the <code class="systemitem">saa7134-alsa</code> or
28
 
  <code class="systemitem">saa7134-oss</code> driver.
29
 
</p></li><li><p>
30
 
  <span class="application">MEncoder</span> cannot be used for audio capture,
31
 
  because it requires a video stream to work. So your can either use
32
 
  <span class="application">arecord</span> from ALSA project or
33
 
  use <tt class="option">-ao pcm:file=file.wav</tt>. In the latter case you
34
 
  will not hear any sound (unless you are using a line-in cable and
35
 
  have switched line-in mute off).
36
 
</p></li></ul></div><p>
37
 
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="radio-examples"></a>11.1.3. Examples</h3></div></div></div><div class="informalexample"><p>
38
 
Input from standard V4L (using line-in cable, capture switched off):
39
 
</p><pre class="screen">mplayer radio://104.4</pre><p>
40
 
</p></div><div class="informalexample"><p>
41
 
Input from standard V4L (using line-in cable, capture switched off,
42
 
V4Lv1 interface):
43
 
</p><pre class="screen">mplayer -radio driver=v4l radio://104.4</pre><p>
44
 
</p></div><div class="informalexample"><p>
45
 
Playing second channel from channel list:
46
 
</p><pre class="screen">mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</pre><p>
47
 
</p></div><div class="informalexample"><p>
48
 
Passing sound over the PCI bus from the radio card's internal ADC.
49
 
In this example the tuner is used as a second sound card
50
 
(ALSA device hw:1,0). For saa7134-based cards either the
51
 
<code class="systemitem">saa7134-alsa</code> or <code class="systemitem">saa7134-oss</code>
52
 
module must be loaded.
53
 
</p><pre class="screen">
54
 
mplayer -rawaudio rate=32000 radio://2/capture \
55
 
    -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
56
 
</pre><p>
57
 
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
58
 
When using ALSA device names colons must be replaced
59
 
by equal signs, commas by periods.
60
 
</p></div><p>
61
 
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="radio.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="radio.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ports.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 11. Radio </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 12. Ports</td></tr></table></div></body></html>