[MPlayer-users] Unable to watch TV with mplayer, is this supported?

James Lancaster james at kirk.math.twsu.edu
Wed Oct 29 23:06:08 CET 2003


On Friday 17 October 2003 04:36, you wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi there,
>
> I have a Siemens premium dvb-c card with an onboard mpeg decoder. I've
> tried to read the videostream that the dvb card mpeg decoder produces to
> the v4l device with mplayer option tv:// but I can't seem to get it to
> work. Does this make any sense, ie. should/could this work. I read the
> documentation on tv watching and tried the example there, and below is
> the output of the command.
>

If it is actually outputting an mpeg stream, then try cat /dev/dvb | mplayer 
- (replacing /dev/dvb with the device) Some of the hw-mpeg2 encoders can do 
that.

> I know that at least tvtime and xawtv do support tv watching with dvb
> cards, and as far as I understand, mplayer too supports this at least with
> analog cards, so in theory, this should be possible. If it isn't supported
> yet, what do you think, how big a job would it be to support this in
> mplayer. If I were to try to add support for this, where should I start?
> My programming skills are seriously limited, but I guess this could be
> some sort of parameter tuning, since the basic infrastructure is there as
> far as can tell.
>
> Thanks for any information,
>
> Juha
> ____________________________________________________________________
>
> bash:~# mplayer -tv driver=v4l:width=640:height=480:outfmt=i420 -vc
> rawi420 tv://

why the i420s? That hasn't mattered for quite a while.

Btw, the man page & docs on tv need to be updated.

try this:
mplayer -tv driver=v4l:width=640:height=480:norm=NTSC:chan-list=us-cable 
tv:// 

if it is a v4l2 device, append a 2 to the driver=v4l part


> MPlayer 1.0pre2-3.2.3 (C) 2000-2003 MPlayer Team
>
> CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner 515.8 MHz (Family:
> 6, Step
> ping: 3)
> Detected cache-line size is 32 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 SSE
>
> Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
> directo
> ry
> Reading config file /root/.mplayer/config
> Reading /root/.mplayer/codecs.conf: Can't open
> '/root/.mplayer/codecs.conf': No
> such file or directory
> Reading /usr/local/etc/mplayer/codecs.conf: Can't open
> '/usr/local/etc/mplayer/c
> odecs.conf': No such file or directory
> Using built-in default codecs.conf
> font: can't open file: /root/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using Linux hardware RTC timing (1024Hz).
> Can't open input config file /root/.mplayer/input.conf: No such file or
> director
> y
> Can't open input config file /usr/local/etc/mplayer/input.conf: No such
> file or
> directory
> Falling back on default (hardcoded) input config
>
> Playing tv://
> TV detected! ;-)
> Selected driver: v4l
>  name: Video 4 Linux input
>  author: Alex Beregszaszi
>  comment: under development
> Selected device: DVB Board
>  Capabilites: capture tuner overlay clipping frameram scales
>  Device type: 235
>  Supported sizes: 32x32 => 768x576
>  Inputs: 1
>   0: DVB: tuner audio tv camera  (tuner:1, norm:ntsc)
> Card reports an unknown audio mode !
> Trying two channel audio. Use forcechan to override.
> Card reports an unknown audio mode !
> Trying two channel audio. Use forcechan to override.

Does the card provide the audio, or is there a connector to the sound card?

> Using input 'DVB'
> ioctl get tuner failed: Invalid argument
> Tuner isn't capable to set norm!
> Error: Cannot set norm!

This error doesn't matter.

>
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users



More information about the MPlayer-users mailing list