[Mplayer-dvb] Analog TV card to DVB output
Olivier JACQUES
oliviervdr at free.fr
Thu Dec 11 23:55:45 CET 2003
Hello,
As a DVB user, I am using the famous VDR with the mplayer plugin. I just
found out that mplayer (I use 1.0pre3) supports analog TV cards with
channel switching.
So I decided to give a try to watch analog TV channel (coming on my
Pinnacle PCTV BT878 card) on my DVB card (using the video composite out of
my Nexus DVB).
And it works!
With the following command line:
mplayer -vo mpegpes -ao mpegpes -afm 9 -tv
driver=v4l2:device=/dev/video0:input=0:norm=SECAM:channels=22-TF1,28-FR3:width=720:height=576:fps=25.00:immediatemode=0
-framedrop -input conf=/root/.tuxtv/switch tv://
I can watch analog channels and zap through them. For those who know the
analogTV plugin from Andreas Kool, the zapping time is far more faster.
For the video quality, it is OK, even though It looks a bit "choppy". The
sound is around 300ms late (I didn't succeed in putting a fix delay on the
command line).
I tried to go down to 352x288, but (even if the CPU is around 25%), I have
the same effect.
Does any MPlayer expert have any idea of this?
Note that recording a show with mencoder gives perfect results; no AV Sync
issues and quality is excellent.
Thanks!
Olivier.
STDOUT:
mplayer -vo mpegpes -ao mpegpes -afm 9 -tv
driver=v4l2:device=/dev/video0:input=0:norm=SECAM:channels=22-TF1,28-Canal:width=720:height=576:fps=25.00:immediatemode=0
-framedrop -input conf=/root/.tuxtv/switch tv://
MPlayer 1.0pre3-3.0.4 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1638 MHz
(Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: This codecs.conf is too old and
incompatible with this MPlayer release! at line 6
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Input config file /root/.tuxtv/switch parsed: 10 binds
Setting up LIRC support...
mplayer: could not open config file
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.
Playing tv://.
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: BT878(Pinnacle PCTV Studio/Ra)
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner
read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 =
PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: YUV420
v4l2: current audio mode is : MONO
audio block size too low, setting to 8192!
TV channel names detected.
Selected channel: 22 - TF1 (freq: 479.250)
==========================================================================
Trying to force audio codec driver family 9...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 88200->88200 (705.6 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening /dev/dvb/adapter0/video0+audio0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Opening video filter: [lavc]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [mpegpes] 720x576 => 720x576 Mpeg PES
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 1ch Signed 16-bit (Little-Endian)
AO: [mpegpes] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
v4l2: 127 frames successfully processed, 0 frames dropped.% 0.2% 0 0 0%
Exiting... (Quit)
More information about the MPlayer-dvb
mailing list