Re: need help on running mplayer to watch tv

2017-08-01 Thread deloptes
Nicolas George wrote:

> You realize that 75% of the options are useless for the specific task at
> hand, right? You can add this boilerplate to your own commands, but when
> giving public advice, better trim them.
> 

If they were useless I wouldn't use them

> Also, Long Wind had the video working with tv://, so suggesting dvb://
> will not work, you could have anticipated that.

I didn't get that. Suggesting alternative is always a good option.
But note taken.

regards





(solved)Re: need help on running mplayer to watch tv

2017-08-01 Thread Long Wind
I have installed smplayer, it's not very helpful. where is gmplayer?

I can use mixer to get TV sound, but can't use mplayer to adjust sound volume

but my final goal is not get tv sound work in mplayer
(i can use xawtv)
my goal is to use mencoder to record tv programs

i will try mencorder, maybe without audio at first

Thank all those who reply!



Re: need help on running mplayer to watch tv

2017-08-01 Thread John Conover
deloptes writes:
> Long Wind wrote:
> 
> > i can watch tv with xawtv
> > now i want to use mplayer
> > 
> > mplayer -tv driver=v4l2:width=640:height=480:input=1 -vo xv tv://
> >

mplayer tv://3 -tv device=/dev/video-tv

(for video coming in on channel 3 of the TV card, driver in
/dev/video-tv,) and:

amixer -c 0 sset Capture '72%,72%' cap
amixer -c 0 sset 'Input Source' Line
amixer -c 0 sset PCM '74%,74%' unmute
amixer -c 0 sset Line '74%,74%' unmute

else, piddle with pulseaudio(1).

John

BTW, for a WinTV card, 38101, lspci(1):

Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 
11)

-- 

John Conover, cono...@rahul.net, http://www.johncon.com/



Re: need help on running mplayer to watch tv

2017-08-01 Thread Nicolas George
Le quartidi 14 thermidor, an CCXXV, deloptes a écrit :
> As most of tv now is digital, I used following to watch tv from a dvb stick
> 
> mplayer -ontop -framedrop -nocache -stop-xscreensaver -input
> conf=~/.mplayer/input.conf -tv
> driver=v4l2:outfmt=yv12:width=720:height=576:device=/dev/dvb/adapter0/dvr0:input=0:tdevice=/dev/vbi0:tlang=1:tformat=0:tpage=100:forceaudio:immediatemode=0:adevice=/dev/dsp1:amode=1:forcechan=2:audiorate=44100:audioid=0:volume=75
>  -dvbin
> file=~/.mplayer/channels.conf.ter -vo xv -ao
> alsa:noblock:audiorate=44100:device=default dvb://

You realize that 75% of the options are useless for the specific task at
hand, right? You can add this boilerplate to your own commands, but when
giving public advice, better trim them.

Also, Long Wind had the video working with tv://, so suggesting dvb://
will not work, you could have anticipated that.

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature


Re: need help on running mplayer to watch tv

2017-08-01 Thread deloptes
Long Wind wrote:

> i can watch tv with xawtv
> now i want to use mplayer
> 
> mplayer -tv driver=v4l2:width=640:height=480:input=1 -vo xv tv://
> 
> command above is right, but there's no sound
> tv sound is connected to linein of sound card
> which options should i add??
> 
> Thanks!

As most of tv now is digital, I used following to watch tv from a dvb stick

mplayer -ontop -framedrop -nocache -stop-xscreensaver -input
conf=~/.mplayer/input.conf -tv
driver=v4l2:outfmt=yv12:width=720:height=576:device=/dev/dvb/adapter0/dvr0:input=0:tdevice=/dev/vbi0:tlang=1:tformat=0:tpage=100:forceaudio:immediatemode=0:adevice=/dev/dsp1:amode=1:forcechan=2:audiorate=44100:audioid=0:volume=75
 -dvbin
file=~/.mplayer/channels.conf.ter -vo xv -ao
alsa:noblock:audiorate=44100:device=default dvb://

you can check in the documentation easily what each option means and adjust
as needed.

regards





Re: need help on running mplayer to watch tv

2017-08-01 Thread Wilko Fokken
On Tue, Aug 01, 2017 at 04:52:48AM +0800, Long Wind wrote:
> i can watch tv with xawtv
> now i want to use mplayer
> 
> mplayer -tv driver=v4l2:width=640:height=480:input=1 -vo xv tv://
> 
> command above is right, but there's no sound
> tv sound is connected to linein of sound card
> which options should i add??
> 
> Thanks!


Did yout try 'smplayer'?
It's menues saved my day.

Additionally, 'smplayer' shows the params to be used by 'mplayer'.



Re: need help on running mplayer to watch tv

2017-08-01 Thread Dan Ritter
On Tue, Aug 01, 2017 at 04:52:48AM +0800, Long Wind wrote:
> i can watch tv with xawtv
> now i want to use mplayer
> 
> mplayer -tv driver=v4l2:width=640:height=480:input=1 -vo xv tv://
> 
> command above is right, but there's no sound
> tv sound is connected to linein of sound card
> which options should i add??

Googling suggests you add this to your v4l2 spec:

:device=/dev/video0:forceaudio:audiorate=32000 

but I don't really know.

-dsr-



need help on running mplayer to watch tv

2017-07-31 Thread Long Wind
i can watch tv with xawtv
now i want to use mplayer

mplayer -tv driver=v4l2:width=640:height=480:input=1 -vo xv tv://

command above is right, but there's no sound
tv sound is connected to linein of sound card
which options should i add??

Thanks!