[mythtv-users] Simultaneous recordings fail spectacularly---why? [part 1]

f-myth-users at media.mit.edu f-myth-users at media.mit.edu
Wed Nov 2 14:12:35 EST 2005


[I'm crossposting this to ivtv-users, since this seems to be some
really bad interaction between Myth & ivtv and I have no idea whether
the bug is in one or shared across the two; I hope doing so is kosher.]
[I'm also posting this in two pieces to save moderator work; all the
logs at the end make the message too big, but pointing at a URL means
somebody looking for this later may wind up missing stuff they want.]

I've got a two-machine setup: 5 PVR-250's in the BE, one PVR-350 in
the front end, Athlon 2800+ CPU in each, MSI K7N2 Delta-L motherboard,
running the standard stuff in KnoppMyth R5A22, including ivtv 0.4.0.
The 350 isn't (yet) configured as a capture card, so all of the
capturing is happening on the BE.  The machines were set up as MBE/SBE
using the instructions at [1], and the 350 was configured using the
script at [2], run on the FE/SBE machine -only-.

If I record a single show on the BE (or watch live TV), everything
works fine.  Machine load is very low (under 5%); the disk light goes
blip...  blip... blip... with a fraction of a second of activity every
few seconds.  Just what I'd expect.

If I try to record two shows on the BE, on the other hand, everything
falls to pieces:
o  One of the recordings in /myth/tv grows at the normal rate.
   The other recording stays a zero-length file, forever.
o  No audio is -sometimes- recorded in the recording that -is- growing
   (verified by replaying later on the 350, -and- via mplayer; there's
   an audio track, but it's blank).  [I was about to say -never-, but
   I unexpectedly got audio in the last of several experiments, and just
   realized I got audio in a different one as well.]
o  The disk light flickers 100% of the time.  (Not totally solidly
   on like I'm running a dd, but more like I'm doing normal file I/O
   100% of the time.)
o  Machine load is still very low; it spends most of its time idle
   and/or waiting for disk.
o  The BE is now screwed.  Even once the recording period expires,
   live TV will no longer produce audio.  I have to boot the BE to
   fix the situation.  [Except in my latter test, where audio stayed
   un-screwed-up, though one of the two recordings was still zero-length
   ---and see below for even MORE wacko behavior.]
o  Once [the very first time I tried this, about 3 days ago], I tried
   scheduling multiple recordings that started "a few minutes ago" so
   each one got added to the queue as I was using the UI.  I couldn't
   even get through adding the third one; mythfrontend (running in an
   X window on a third host; I wasn't using the UI on the 350) just
   froze with a half-rendered box in the middle that looked sort of
   like the "rescaling" box that it puts up briefly when the frontend
   first comes up---but I'm not sure, since it only got halfway
   through even drawing the box.  It was as if mythfrontend had
   decided to start all over again while I was in the middle of trying
   to use its UI.  And my "one hour" recording ran at least 10 hours
   and produced that much video---until I rebooted the BE.  [And
   -that- video, interestingly, had audio in it.]  So I'm guessing
   that something in myth crashed such that the UI wedged and
   recording was never turned off automatically.  Since then, my tests
   have started a pair (only!) of recordings a couple minutes in the
   future.

This smells like some sort of race condition and/or mis-init in the BE.

More data points from my latest tests:  tuner 0 started out tuned to
channel 2.  My recording tests have typically been:  set up a 5 minute
recording on ch2, and then set up a 5 minute recording on ch4, both
scheduled to start at the same time.  It's the ch4 recording whose
file winds up growing, which is also the bottom line in Scheduled
Recordings, marked "2".  (The ch2 recording is the top line, marked
"1".)  So I'm guessing that the working recording was actually taken
from card 1, not card 0, though I haven't -absolutely- verified by
yanking RF connections.  Yet---if I then do Watch TV afterwards, Myth
-claims- that it's presenting me with ch2 in its on-screen display
(and from tuner 0---and it -is-, 'cause yanking RF on tuner 0 kills
it), but it's -actually- showing me ch4!  So it's lost track of which
tuner was doing what.

Yanking the RF in the paragraph above, and then plugging it in again,
caused AV sync to be lost and the video to be jerky, so I tried
changing channels.  -Now-, ch2 has NO AUDIO, but any other channel I
try does, so somehow this has left ch2 screwed up in some weird way.
I can repeatedly revisit ch2 and hear nothing; other channels work.
Booting the backend did -not- restore ch2!  (And going to Watch TV on
the FE claimed it was showing me ch4, but it actually showed me ch-3-,
which is what the BE's tuners are set to default to I configured them
in mythtv-setup.)  Booting the -FE- has -still- not restored ch2
audio.  Yet I have recordings right now of ch2 -with- audio.  So I
booted the BE again---no ch2 audio.  I powered down the BE for > 1
minute with no ethernet connected and hard power off on the power
supply.  No ch2.  I tried changing the channel on the FE to be ch4
(e.g., -not- ch2), did another hard-power-down-w/no-ethernet on the
BE, and -then- I had ch2 audio.  [Naturally, when the BE came up each
time, the FE thought it was still tuned to ch2 (or, in the last case,
ch4) even though the BE tuner came up on ch3, and for the sake of
consistency I always selected ch4, then ch2, each time, to force the
channel changing in the same order.]  My conclusion:  not only does
trying to do two simultaneous recordings not work, but it leaves
something screwed up in an internal register in card 0 such that ch2
is then "permanently" screwed up until the card's internal registers
have been allowed to discharge, while the card was -not- tuned to ch2!

[This behavior led to a spurious report of mine earlier that audio
didn't work; the problem was that the files I tried had been produced
by the BE in its screwed-up state---made all the more confusing by the
BE -only- losing ch2 audio and only in some circumstances, some of
which persisted across reboots, etc.  Yuck.]

[Btw, all of these tests were run with the UI on the 350 sitting in a
menu, -not- with it watching live TV!  The idea was to make sure no
tuners were in use except for recording.]

ivtvctl -a reports that card 0 has a bitrate of 4500000, bitrate_peak
of 6000000, and stream_type 0.  All the other cards report 8000000,
9600000, and 14, respectively, both just after boot -and- while (and
after) trying to record.  [I've only tried to record on cards 0 and 1
so far.]  Are they being mis-initialized?  dmesg looks identical for
each card, at least at a cursory inspection, though I'm not skilled in
interpreting it.  I have no idea what the bitrates are supposed to be;
I have not touched the defaults in the recording profiles since
installing both machines on blank disks from KnoppMyth R5A22 a few
days ago.

I note also that the IVTV data in dmesg seems to have given the same
IRQ to two cards, twice, e.g., 
    crd irq
      0 19
      1 20
      2 21
      3 19
      4 20
Is this reasonable?  Looks like it just ran out of IRQ's and is
wrapping; I don't know if IRQ's can be shared this way.

cat /dev/video0 > v0.mpg [wait 5 seconds] ^C produces a 3meg file
which mplayer can play (and which has video and audio).

cat /dev/video1 > v1.mpg [wait 5 seconds] ^C produces a 300K file
which mplayer can play, but has black video and no audio.

[And hey!  ivtv-tune (a) doesn't accept --usage, so you just have to
-guess- it won't screw up your system if you supply no args, and (b)
shows no way in its self-doc to specify which DEVICE to tune; some
websearching seems to indicate that --device=/dev/video1 might work,
and (c) has no manpage!  I just tried --device and -l and got
-something-, but --device=/dev/video9847598475 -also- gives me the
same output, so I have no real idea if it's ignoring that option or
what, so I'm not going to try to tune video1 yet---and besides,
something -else- should be tuning it for me, if that's the problem.
And c'mon, it should -at least- mention all of its options in its own
usage summary...]

I'm posting the ivtvctl and dmesg data below in case they're helpful.

Anyone have any idea what could be going on, or things to try?  Tnx!

[Note!  I -just- noticed, in http://ivtvdriver.ord/index.php/Howto,
the stuff about Module options.  This distribution appears to have
neither defvs nor udev, but has no alias lines I can find -anywhere-
that mention videodev or ivtv.  Are these still required for ivtv
0.4.0?  Or are they redundant, since the dmesg output seems to show
that the kernel has detected the cards?  And if I need to add them,
precisely which file should they go in?  I have at least three:
/etc/modutils/aliases, /etc/modules.conf, and /etc/modprobe.d/aliases.
Do I need to run anything after adding them?  For the moment, I've
left them untouched lest I confuse the situation further.  An rgrep
in /etc did notice /etc/mythtv/modules, which appears to have bttv
and bttv0-3, and ivtv, and ivtv0-3, which mention bttv and ivtv
respectively, but no videodev.  I don't know why there are 5 of them;
the FE machine (w/only one 350) also has the same 5, so presumably
they're not dynamically created by how many cards in the machine.
[For example, /etc/mythtv/modules/ivtv3 contains only the line
   alias char-major-81-3 ivtv
but I have no idea if anything is looking at these files.]
There's a Cards file as well that mentiones all 5 encoders
[and no Cards file at all on the FE; eh?].  So I've got a profusion
of files which have alias lines in them, but no good idea who reads
which or whether any of them are ignored.]

[1] http://mysettopbox.tv/linhes.html
[2] http://mysettopbox.tv/phpBB2/viewtopic.php?t=3886

P.S.  Before someone asks:  Why 5 250's?  'cause I'm stress-testing
for a later video logging project here.  I'd be appalled and pretty
damned annoyed if the number supported was 1, though, since that means
a lot of money just got wasted on the hardware.  But I'm hoping that
this is a resolvable bug... :)

- - - Logfiles follow - - -

[All of these are from the BE machine]

[/etc/mythtv/modules/ivtv:]

alias char-major-81 videodev
alias char-major-61 lirc_i2c
#options ivtv debug=1
#options tuner type=2
options msp3400 once=1 simple=1
install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115;  /sbin/modprobe --ignore-install  ivtv
remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner

[ivtvctl -a data:]

f at myth-master-backend:~$ ivtvctl -a -d /dev/video0
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 4500000
bitrate_peak: 6000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 0
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 480
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:06.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 4
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 0: Tuner Audio In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 127
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58950
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video1
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 720
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:07.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 0
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 1: Audio Line In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video2
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 720
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:08.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 0
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 1: Audio Line In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video3
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 720
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:09.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 0
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 1: Audio Line In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video4
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 720
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:0a.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 0
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 1: Audio Line In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video1
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 9600000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 14
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 720
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:07.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 0
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 1: Audio Line In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 58880
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video0
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 4500000
bitrate_peak: 6000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 0
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 480
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:06.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 4
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 0: Tuner Audio In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 1076
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 127
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58950
Mute = 0
f at myth-master-backend:~$ ivtvctl -a -d /dev/video0
ioctl IVTV_IOC_G_CODEC ok
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 4500000
bitrate_peak: 6000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 0
ioctl VIDIOC_G_FMT ok
	Type   : Video Capture
	Width  : 480
	Height : 480
ioctl VIDIOC_QUERYCAP ok
	Driver name   : ivtv
	Card type     : WinTV PVR 250
	Bus info      : 0000:01:06.0
	Driver version: 1024
	Capabilities  : 0x01030051
ioctl: VIDIOC_ENUMINPUT
	Input   : 0
	Name    : Composite 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 1
	Name    : Composite 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 2
	Name    : Composite 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 3
	Name    : Composite 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 4
	Name    : Tuner 0
	Type    : 0x00000001
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x0000000000003000 ( NTSC )
	Status  : 0

	Input   : 5
	Name    : Composite 4
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 6
	Name    : S-Video 0
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 7
	Name    : S-Video 1
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 8
	Name    : S-Video 2
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0

	Input   : 9
	Name    : S-Video 3
	Type    : 0x00000002
	Audioset: 0x00000003
	Tuner   : 0x00000000
	Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
	Status  : 0
ioctl VIDIOC_G_INPUT ok
Video input = 4
ioctl: VIDIOC_ENUMOUTPUT
ioctl VIDIOC_G_OUTPUT failed: Invalid argument
ioctl: VIDIOC_ENUMAUDIO
	Input   : 0
	Name    : Tuner Audio In

	Input   : 1
	Name    : Audio Line In
ioctl VIDIOC_G_AUDIO ok
Audio input = 0: Tuner Audio In
ioctl VIDIOC_G_FREQUENCY ok
Frequency = 884
ioctl: VIDIOC_ENUMSTD
	index       : 0
	ID          : 0x0000000000003000
	Name        : NTSC
	Frame period: 1001/30000
	Frame lines : 525

	index       : 1
	ID          : 0x00000000000000FF
	Name        : PAL
	Frame period: 1/25
	Frame lines : 625

	index       : 2
	ID          : 0x00000000007F0000
	Name        : SECAM
	Frame period: 1/25
	Frame lines : 625
ioctl VIDIOC_G_STD ok
Video standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 127
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58950
Mute = 0
f at myth-master-backend:~$ 

[ REST OF LOGS IN PART TWO! ]


More information about the mythtv-users mailing list