Sundtek Support Forum
English => Sundtek MediaTV Pro (Europe) => Thema gestartet von: Judgin am Oktober 18, 2011, 09:53:04 Nachmittag
-
Hi guys,
could you help me with capturing analog FM radio? As there is no alsa device (arecord -l shows my sound card) I cannot capture sound...It seems to me, that the same problem will be with analog TV, however I didn't try yet.
Regards, Judgin
-
quite easy:
cat /dev/radio0 | lame > fmradio.mp3
if you do a cat on radio0 it will also output the WAV header, so lame automatically knows which format the input data is.
-
Thanks, will try this solution) Looks really easy)
-
If you do the cat on the dsp device the output will be header less.
cat /dev/dspN | aplay --format=S16_LE --rate=48000 -c 2
or
cat /dev/radioN | aplay
where N is revealed by /opt/bin/mediaclient -e
-
Hmmm...I've got problems(((
cat /dev/dsp0 | aplay --format=S16_LE --rate=48000 -c 2
aplay: playback:2455: read error
And this also doesn't work...exits after 1-2 secs.
cat /dev/radio0 | aplay
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
-
The device needs to be unmated in order to deliver Radio.
/opt/bin/mediaclient -m RADIO -d /dev/radio0 --mute=off
afterwards you can read radio.
we might change that in future (applications usually do that).
The Alsa approach would be to use snd-aloop, read the audio stream with cat from dsp and aplay it to the corresponding alsa loopback device. We just figured that out this week and need to document the process for this but it's already doable.
-
Thanks for a reply.
Currently it works somehow...but, the sound goes from the headphones/speakers. Is it possible to capture stream directly from /dev/dspX or /dev/radioX without playing through speakers? So, to "silently" capture the radio stream.
-
and one more question...is it possible to capture video/audio simultaneously from different tuners? I mean whether I can record tv shows from 2 or more tuners? I got green mplayer screen after starting playback from the second tuner(
-
Silent capture is possible, you can capture and playback at the same time by default.
Following line turns off direct audio playback by the driver:
/opt/bin/mediaclient -m RADIO -d /dev/radio0 -c internal
did you start tvtime:
mplayer tv:// -tv driver=v4l2:device=/dev/videoN
where videoN should be obtained form "/opt/bin/mediaclient -e"
you can also check which devices are used by running "/opt/bin/mediaclient --lc" (list client)
-
How to easily capture analogTV:
sudo -s
cd /tmp
wget http://sundtek.de/support/buildffmpeg.sh
chmod 777 buildffmpeg.sh
./buildffmpeg.sh
afterwards restart your PC and open tvtime and tune to the channel which you want to capture.
FFMPEG adds direct encoding support to the driver.
Open a console in the background and just run "cat" with the videonode as parameter.
cat /dev/video0 > /tmp/test.mpg
-
Hi this url: http://sundtek.de/support/buildffmpeg.sh is no longer available. Can you fix it?
Thanks
How to easily capture analogTV:
sudo -s
cd /tmp
wget http://sundtek.de/support/buildffmpeg.sh
chmod 777 buildffmpeg.sh
./buildffmpeg.sh
afterwards restart your PC and open tvtime and tune to the channel which you want to capture.
FFMPEG adds direct encoding support to the driver.
Open a console in the background and just run "cat" with the videonode as parameter.
cat /dev/video0 > /tmp/test.mpg