[MPlayer-users] Can't record tv audio
Paulo Cavalcanti
promac at gmail.com
Wed Apr 5 23:48:44 CEST 2006
You can always create an script
that puts arecord to run on the background, than calls mplayer,
and kills arecord at the end. It will work.
-----------------------------
#!/bin/sh
arecord -D hw:1,1 -r 128000 -f S16_LE -t wav | aplay &
mplayer tv:// -tv driver=v4l2:normid=4:alsa ......
kill %1
---------------------------------------
However, I as told you, upgrading mplayer and video4linux to a recent cvs
version, should make mplayer TV play sound using the loopback cable.
/Paulo Roma.
On 4/5/06, Jorge Peixoto de Morais Neto <JorgePeixoto at redecasd.ita.br>
wrote:
>
> With 2.6.16, I finally got snd-bt87x to load. The trick was the load_all=1
> option. With this, the command arecord -D hw:1,1 -r 128000 -f S16_LE -t wav
> | aplay plays the sound of the current channel. And finally, mencoder works!
> I'm using the command mencoder tv:// -tv driver=v4l2:normid=4:alsa:adevice=
> hw.1,1:forceaudio -srate 32000 -oac mp3lame -ovc lavc -lavcopts
> vcodec=mpeg4:vbitrate=512 -lameopts preset=medium -endpos 6 -o video.avi
> However, mplayer still has no sound. I have tried the command
> gmplayer tv:// -tv driver=v4l2:normid=4:alsa:adevice=hw.1,1:forceaudio:amode=1:volume=100
> (and some variations). No sound. Well, I'll just use tvtime instead. Still,
> that is strange ; why would mencoder work but mplayer not? Probably a bug.
>
> Well, finally mencoder works. Thanks for the help.
>
> []'s
>
>
> On Wed, 5 Apr 2006 07:23:31 -0300
> "Paulo Cavalcanti" <promac at gmail.com> wrote:
>
> > I installed my previous official mplayer version, and it does
> > not have sound playing TV in kernel 2.6.16. The same should be true in
> > kernel 2.6.15. It worked in kernel 2.6.14, though. Therefore, it is
> really
> > necessary to use the mplayer CVS version to hear anything from the TV
> with
> > the latest kernel.
> >
> > /Paulo Roma.
> >
> > On 4/5/06, Paulo Cavalcanti <promac at gmail.com> wrote:
> > >
> > > If you list the contents of "/proc/asounds/cards",
> > > the bttv card should be there:
> > >
> > > [naja:~/temp/videos] more /proc/asound/cards
> > > 0 [ICH5 ]: ICH4 - Intel ICH5
> > > Intel ICH5 with AD1985 at 0xfebff800, irq 18
> > > 1 [VirMIDI ]: VirMIDI - VirMIDI
> > > Virtual MIDI Card 1
> > > 2 [Bt878 ]: Bt87x - Brooktree Bt878
> > > Brooktree Bt878 at 0xf47ff000, irq 16
> > >
> > > In my case, it is card number 2. If it is not listed, it will not
> work.
> > > That is exactly what happened in kernels [2.6.13,2.6.15].
> > >
> > > The second number "1" means the analog output. Either you should have
> a
> > > /dev/dsp2 and /dev/audio2.
> > >
> > > Have you tried to increase the "line" channel volume using a mixer?
> > > mplayer does not control the volume directly while playing TV, as
> tvtime
> > > does. It always prints "no audio". But you can control the volume
> using
> > > gnome-alsamixer, alsamixer, or a gkrellm plugin. I prefer the last
> option,
> > > because I already use gkrellm to monitor my system.
> > >
> > > /Paulo Roma.
> > >
> > >
> > > On 4/5/06, Jorge Peixoto de Morais Neto <JorgePeixoto at redecasd.ita.br>
> > > wrote:
> > > >
> > > > I installed 2.6.16 and it still does not work. And, about the hw:2,1
> > > > thing, i tested several other possibilities like 0,0 0,1 1,0 1,1 ,
> etc.,
> > > > because i don't know which one is the right one. None worked for me.
> No
> > > > sound. And, how can I find which one is the tv card audio? arecorld
> -l only
> > > > lists my sound card. Anyway,thanks.
> > > > On Tue, 4 Apr 2006 18:15:58 -0300
> > > > "Paulo Cavalcanti" <promac at gmail.com> wrote:
> > > >
> > > > > snd-bt87x is back to life in kernel 2.6.16
> > > > >
> > > > > However, sox still does no work with it. But the command below
> should
> > > > work
> > > > > (hw:2,1 should be changed for the number of your card. In my case
> the
> > > > > capture card is my third one).
> > > > > The sound is mono and not very impressive. But it works.
> > > > > You can use it to play sound on the TV with mplayer.
> > > > > For recording, I do not know how to do it without sox. Sorry, ....
> > > > >
> > > > > *arecord* -D hw:2,1 -r 128000 -f S16_LE -t wav | *aplay
> > > > >
> > > > > /Paulo Roma.
> > > > > *
> > > > > On 4/4/06, Paulo Cavalcanti <promac at gmail.com> wrote:
> > > > > >
> > > > > > snd_bt87x is broken in kernels 2.6.13, 2.614, and 2.6.15. They
> do
> > > > not
> > > > > > create /dev/dsp2 or /dev/audio2, although the modules are
> loaded. In
> > > > kernel
> > > > > > 2.6.16 they seem to be back, but I did not test. A guy from the
> alsa
> > > > > > project told me that this problem is fixed in alsa 1.0.11.rc3,
> and
> > > > will be
> > > > > > available in kernel 2.6.17.
> > > > > >
> > > > > > I had the same problem you are having now with kernel 2.6.15. I
> > > > upgraded
> > > > > > mplayer to a recent cvs version (March 25, 2006) and video4linux
> to
> > > > a
> > > > > > snapshot from March 30, 2006, and got the sound back in
> > > > mplayer. But in my
> > > > > > case, if I used kernel 2.6.14 or below, I had no problem with
> > > > mplayer
> > > > > > sound while watching TV. However, my distro is Fedora 4.
> > > > > >
> > > > > > If you are compiling the kernel, I think it is easier for you to
> > > > compile
> > > > > > just the video4linux modules from Mercurial, and update the
> modules.
> > > > > >
> > > > > >
> > > > > > /Paulo Roma.
> > > > > >
> > > > > > On 4/4/06, Jorge Peixoto de Morais Neto <
> JorgePeixoto at redecasd.ita.br
> > > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > I have tried 2.6.14 but it still does not work. Besides, I
> > > > compiled
> > > > > > > 2.6.14 with snd_bt87x support built in (not as a module, but
> > > > built-in) ,
> > > > > > > and the command arecord -D hw:2,1 -r 128000 -f S16_LE -t wav
> |
> > > > aplay
> > > > > > > results only in the message
> > > > > > > ALSA lib pcm_hw.c:1305:(_snd_pcm_hw_open) Invalid value for
> card
> > > > > > > arecord: main:544: audio open error: No such device
> > > > > > > aplay: playback:2006: read error
> > > > > > >
> > > > > > > This error message appears with tvtime running or not.
> > > > > > >
> > > > > > >
> > > > > > > Interestingly, there is no mention to snd_bt87x in dmesg ; nor
> in
> > > > > > > arecord -l. Is there something wrong?
> > > > > > >
> > > > > > >
> > > > > > > On Tue, 4 Apr 2006 09:12:55 -0300
> > > > > > > "Paulo Cavalcanti" < promac at gmail.com> wrote:
> > > > > > >
> > > > > > > > What kernel are you using?
> > > > > > > >
> > > > > > > > bttv (video4linux module) from kernel 2.6.15 has problems,
> and
> > > > you
> > > > > > > will not
> > > > > > > > have audio in mplayer/mencoder, indeed. Try an older kernel
> (
> > > > 2.6.14),
> > > > > > > > or update your video4linux modules to a recent snapshot.
> > > > > > > >
> > > > > > > > Since I think you read portuguese, you can check the link
> below
> > > > where
> > > > > > > I
> > > > > > > > explain how to
> > > > > > > > make a pixelview card work, get vide4linux from Mercurial
> > > > repositories
> > > > > > > (
> > > > > > > > http://linuxtv.org/hg/),
> > > > > > > > etc...
> > > > > > > >
> > > > > > > > http://orion.lcg.ufrj.br/~roma/LCG_computadores.html#captura
> <http://orion.lcg.ufrj.br/%7Eroma/LCG_computadores.html#captura>
> > > > > > > <
> http://orion.lcg.ufrj.br/%7Eroma/LCG_computadores.html#captura >
> > > > > > > >
> > > > > > > > /Paulo Roma.
> > > > > > > >
> > > > > > > > On 4/4/06, Jorge Peixoto de Morais Neto <
> JorgePeixoto at redecasd.ita.br
> > > > >
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > I have a tuner card working perfectly with tvtime, but I
> can't
> > > > get
> > > > > > > audio
> > > > > > > > > out of it in mplayer or mencoder ; I can only get the
> picture.
> > > > I
> > > > > > > have tried
> > > > > > > > > different commands like
> > > > > > > > > "gmplayer -tv driver=v4l2:norm=pal-m:channel=5 tv://". I
> have
> > > > > > > already
> > > > > > > > > googled a lot and would appreciate some help. Some
> technical
> > > > > > > information:
> > > > > > > > > Distro: latest gentoo
> > > > > > > > > mplayer version: mplayer-1.0.20060217
> > > > > > > > >
> > > > > > > > > kernel compiled whithout oss emulation
> > > > > > > > >
> > > > > > > > > The card is a Pixelview Playtv (don't know which exact
> model).
> > > > > > > Output of
> > > > > > > > > lspci:
> > > > > > > > > 00:0b.0 Multimedia video controller: Brooktree Corporation
> > > > Bt878
> > > > > > > Video
> > > > > > > > > Capture (rev 11)
> > > > > > > > > 00:0b.1 Multimedia controller: Brooktree Corporation Bt878
> > > > Audio
> > > > > > > Capture
> > > > > > > > > (rev 11)
> > > > > > > > > 00:0c.0 Multimedia audio controller: C-Media Electronics
> Inc
> > > > CM8738
> > > > > > > (rev
> > > > > > > > > 10)
> > > > > > > > >
> > > > > > > > > I use with the module bttv ; the parameters to bttv are
> > > > "card=37
> > > > > > > > > tuner=43".
> > > > > > > > >
> > > > > > > > > The audio output of the card is connected to the line in
> of
> > > > the
> > > > > > > sound
> > > > > > > > > card.
> > > > > > > > > --
> > > > > > > > > Software is like sex: it is better when it is free.
> --Linus
> > > > Torvalds
> > > > > > > > >
> > > > > > > > > _______________________________________________
> > > > > > > > > MPlayer-users mailing list
> > > > > > > > > MPlayer-users at mplayerhq.hu
> > > > > > > > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > MPlayer-users mailing list
> > > > > > > > MPlayer-users at mplayerhq.hu
> > > > > > > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Software is like sex: it is better when it is free. --Linus
> > > > Torvalds
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > MPlayer-users mailing list
> > > > > > > MPlayer-users at mplayerhq.hu
> > > > > > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > > > > > >
> > > > > >
> > > > > >
> > > > > _______________________________________________
> > > > > MPlayer-users mailing list
> > > > > MPlayer-users at mplayerhq.hu
> > > > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > > >
> > > >
> > > > --
> > > > Software is like sex: it is better when it is free. --Linus Torvalds
> > > >
> > > > _______________________________________________
> > > > MPlayer-users mailing list
> > > > MPlayer-users at mplayerhq.hu
> > > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > > >
> > >
> > >
> > _______________________________________________
> > MPlayer-users mailing list
> > MPlayer-users at mplayerhq.hu
> > http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
> --
> Software is like sex: it is better when it is free. --Linus Torvalds
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
More information about the MPlayer-users
mailing list