From 821a2a56568d212d12c0f80af1345ddfad05ba0d Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 28 Aug 2006 18:43:46 +0000 Subject: [PATCH] Forgotten documentation part of radio support patch by Vladimir Voroshilov (voroshil gmail com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19578 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/xml/en/radio.xml | 115 ++++++++++++++++++++++++++++++++++++++++ DOCS/xml/ru/radio.xml | 119 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 234 insertions(+) create mode 100644 DOCS/xml/en/radio.xml create mode 100644 DOCS/xml/ru/radio.xml diff --git a/DOCS/xml/en/radio.xml b/DOCS/xml/en/radio.xml new file mode 100644 index 0000000000..f955368d7e --- /dev/null +++ b/DOCS/xml/en/radio.xml @@ -0,0 +1,115 @@ + + + +Radio + + +Radio + + +This section is about how to enable listening +from V4L compatible Radio tuner. See the man page for a description +of Radio options and keyboard controls. + + + + +Compilation + + + + First, you have to recompile MPlayer using ./configure with + --enable-radio and (if you want capture support) --enable-radio-capture. + + + Make sure your tuner works with another radio software in Linux, for + example XawTV. + + + + + +Usage tips + +The full listing of the options is available on the manual page. +Here are just a few tips: + + + + +Use the option. An example: +-radio channels=104.4-Sibir,103.9-Maximum +Explanation: using this option, only the 104.4 and 103.9 radio stations +will be usable, and there will be a nice OSD text upon channel switching, displaying the +channel's name. Spaces in the channel name must be replaced by the +"_" character. + + + + + +There are several ways of capturing audio. You can grab the sound either using +your sound card via an external cable connection between video card and line-in, +or using the built-in ADC in the saa7134 chip. In the latter case, you have to +load the saa7134-alsa or +saa7134-oss driver. + + + + + +MEncoder cannot be used for audio capture, because it +requires video stream to work. So your can either use arecord from ALSA project or +use . In second case you will not hear any sound +(except you using line-in cable and have switched line-in mute off) + + + + + + + +Examples + + + + +Input from standard V4L (using line-in cable. capture switched off): + +mplayer radio://104.4 + + + + + +Input from standard V4L (using line-in cable. capture switched off, V4Lv1 interface): + +mplayer -radio driver=v4l radio://104.4 + + + + + +Playing second channel from channel list: + +mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2 + + + + + +Using sound through pci bus from radio card's internal ADC. In this example tuner used as second sound card +(ALSA device hw:1,0). For saa7134 based cards either saa7134-alsa or saa7134-oss module must be +loaded . NOTE: when using ALSA device names colons must be replaced with equals, commas with dots. + +mplayer -rawaudio rate=32000 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm radio://2/capture + + + + + + diff --git a/DOCS/xml/ru/radio.xml b/DOCS/xml/ru/radio.xml new file mode 100644 index 0000000000..c7f93afe5e --- /dev/null +++ b/DOCS/xml/ru/radio.xml @@ -0,0 +1,119 @@ + + + +Radio + + +Radio + + +В этой секции описывается как включить прослушивание +радио при помощи V4L совместимого Радио тюнера. Смотрите man страницу для +описания опций и кнопок управления. + + + + +Компиляция + + + + Во-первых, вам необходимо перекомпилировать MPlayer при + помощи ./configure с указанием опций + --enable-radio и (если хотите включить поддержку записи) --enable-radio-capture. + + + Убедитесь, что ваш тюнер работает с другими приложениями в Linux, например + XawTV. + + + + + +Советы по использованию + +Полный список опций доступен на страницах руководства (man). +Вот всего несколько советов: + + + + +Использование опции. Прмер: +-radio channels=104.4-Sibir,103.9-Maximum +Объяснение: при указании этой опции, будут доступны только радиостанции +104.4 и 103.9. Кроме того, будет приятный OSD текст при переключении между каналами, +отображающий название канала. Пробелы в названиях каналов должны быть заменены +символом "_" + + + + + +Есть несколько путей захвата аудио. Вы можете получить звук, либо используя Вашу +звуковую карту и внешний кабель, соединяющий видео карту и линейный вход[line-in], +либо используя встроенный ADC на в чипе saa7134. В этом случае, Вы должны +загрузить драйвер saa7134-alsa или +saa7134-oss. + + + + + +MEncoder не может быть использован для захвата звука, +поскольку он требует обязательного наличия видео-потока.Таким образом, вы можете +производит захват либо используя программу arecord из проекта ALSA либо используя +. Во втором случае вы не будете слышать ничего во +время захвата (за исключение случая, когда вы используете line-in кабель, и слушаете +звук непосредственно с линейного входа. + + + + + + +Примеры + + + + +Вход со стандартного V4L (используя line-in кабель. Запись отключена.): + +mplayer radio://104.4 + + + + + +Вход со стандартного V4L (используя line-in кабель. Запись отключена. Используетя интерфейс V4Lv1): + +mplayer -radio driver=v4l radio://104.4 + + + + + +прослушивание второй радиостанции из списка: + +mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2 + + + + + +Получение звука через шину pci с внутреннего ADC радио тюнера. В этом примере +тюнер используется как второая звуковая карта (ALSA устройство hw:1,0). +Для карт, основанных на saa7134 либо saa7134-alsa либо saa7134-oss модуль должен быть +загружен. ЗАМЕЧАНИЕ: при использовании имен устройств ALSA, двоеточия необходимо заменить на +равенства, запятые - на точки. + +mplayer -rawaudio rate=32000 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm radio://2/capture + + + + + +