# HG changeset patch
# User diego
# Date 1027337101 0
# Node ID f7cd3a7aaa1380f22ee86bd3c0c79ed8c08c56b7
# Parent 9c6ed4f15acc251c87dfebc0652bf43924022a54
Applied patch by Fabian Franz This section is about how to enable watching/grabbing from V4L compatible
TV tuner. THIS CODE IS CURRENTLY NOT-WORKED ON! Don't expect it to work without
- tweaking/experimenting! THIS CODE IS CURRENTLY NOT BEING WORKED ON! Do not expect it to work
+ without tweaking/experimenting! Hint : are the colors messed up? Then your tuner can't display
- in YV12 colorspace. Try I420 (you must use the Hint: Are the colors messed up? Then your tuner cannot display
+ in YV12 colorspace. Try I420 (
-
-./configure
will autodetect kernel headers
- of v4l stuff, and the existence of /dev/video* entries. If they exist,
- TV support will be built (see configure's output!)../configure
will autodetect
+ kernel headers of v4l stuff and the existence of /dev/video*
+ entries. If they exist, TV support will be built (see the output of
+ ./configure
).-vc rawi420
option too!), or YUY2, UYVY, RGB32 (this one
- with -vo sdl
) colorspaces.
- You can specify these with the outfmt=YV12
option see below.-vc rawi420
) or YUY2, UYVY, RGB32
+ (-vo sdl
) colorspaces.
+ You can specify these with the outfmt=YV12
option, see below.
-
+ on
on
- use TV
- input
+ Use TV input.
-
+ noaudio
noaudio
- thanks, no sound
+ No sound, thanks.
-
+ driver
driver
dummy - NULL TV input :) Used for testing only, generates dummy
input.
+ v4l - Captures images from standard V4L interface (default
+
- v4l - captures images from standard V4L interface (default
- /dev/video0
)/dev/video0
).
-
+ device
device
- specify other
- device than the default
+ /dev/video0
Specify a device other than the default
/dev/video0
.
-
+ input
input
- give from which
- input of the TV tuner you wish to grab from (e.g. television,
- s-video, composite, ...)
+ Specify from which input of the TV tuner you wish to grab
+ (e.g. television, s-video, composite, ...)
Prints the available ones during init.
-
+ freq
freq
- specify the
- frequency to set the tuner (e.g. 511.250)
+ Specify the frequency to set the tuner to (e.g. 511.250).
-
+ outfmt
outfmt
- in which output
- format should the tuner transport images to us (rgb32, rgb24, yv12,
- uyvy, i420 (for i420 you have to pass the
+ -vc rawi420
- option, because of a fourcc conflict))Specify the output format the tuner should use to transport images to us
+ (rgb32, rgb24, yv12, uyvy, i420 (for i420
+ you have to pass the
-vc rawi420
option, because of a fourcc
+ conflict)).
-
+ width
width
- the width of the output window, in pixels
+ width of the output window in pixels
-
+ height
height
- the height of the output window, in pixels
+ height of the output window in pixels
-
+ norm
norm
- available: PAL, SECAM, NTSC
+ available: PAL, SECAM, NTSC
-
+ channel
channel
- set the tuner to the given channel
+ Set the tuner to the given channel.
-
+ chanlist
chanlist
- available:
+ us-bcast, us-cable, europe-west, europe-east, etc
available:
us-bcast, us-cable, europe-west, europe-east, etc
-
@@ -1053,6 +1050,14 @@
+ h or l select previous/next channel h / k select previous/next channel n change norm b change channel list mplayer -tv on:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
+Note:
+If you have a TV card with an external audio device and get only a black
+screen, although input works with xawtv or similar, then try to use the
+-noaudio
option. For the example above this would be:
+ mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
+