[mythtv-users] Test Capture Settings with test_ioctl

Graham W. Mitchell gmitch at woodlea.com
Thu Jul 15 20:15:41 EDT 2004


> Both instances offer the same output (in terms of wavy lines). 
> Any help with this is appreciated -- I'm stuck and can't move on :(

I would be willing to bet if you changed this line

	# /usr/bin/test_ioctl -f width=720,height=480

And set the width to be 480, that you will get a picture... This sounds
exactly like the issue I am (and have been for a couple of months now)
having. Unfortunately I don't have a solution.


Graham




-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Cory Megitt
Sent: Thursday, July 15, 2004 5:23 PM
To: 'Discussion about mythtv'
Subject: [mythtv-users] Test Capture Settings with test_ioctl

Hi All;

I am running FC1 with 2x PVR250's.

They both detect fine as you can see.

02:0a.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 250
        Flags: bus master, medium devsel, latency 64, IRQ 9
        Memory at e8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2
 
02:0b.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 250
        Flags: bus master, medium devsel, latency 64, IRQ 11
        Memory at e4000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

I am stuck in Jerod's instructions as he writes from section:

11. Get and install capture card driver.  He goes on to write the
following
commands:

# /usr/bin/test_ioctl -u 0x3000
# /usr/bin/test_ioctl -p 4
# /usr/bin/test_ioctl -f width=720,height=480 # /usr/bin/test_ioctl -v
input=3,output=1

# cat /dev/video0 > /tmp/test_capture.mpg (ctrl-c to stop capture)

# mplayer /tmp/test_capture.mpg

-------------------------------------

This is what happens:
When playing back the capture.mpg file, the audio is there 100%, but the
video is skewed.  I can't make out any picture of what I am watching.  
It looks like wavy lines.
Could this mean that the frequency is not setup right?   I tried this 
with both of the following commands (since I have 2 capture devices)

# cat /dev/video0 > /tmp/test_capture.mpg # cat /dev/video1 >
/tmp/test_capture.mpg

Both instances offer the same output (in terms of wavy lines). 

Any help with this is appreciated -- I'm stuck and can't move on :(

Cory ....


Here is some other outputs in case they're needed (Sorry for the long
post)

[root at cable share]#  /bin/dmesg |grep ivtv
ivtv: version 0.1.9 (release) loading
ivtv: SGarray_size = 320, DSGarray_size = 16
ivtv: Found an iTVC16 based chip
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
saa7114.c: starting probe for adapter ivtv i2c driver #0 (0x10005)
ivtv: Encoder revision: 0x02040011
ivtv: Registered v4l2 device, minor 0
ivtv: Registered v4l2 device, minor 32
ivtv: Registered v4l2 device, minor 224
ivtv: Found an iTVC16 based chip
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
saa7114.c: starting probe for adapter ivtv i2c driver #1 (0x10005)
ivtv: Encoder revision: 0x02040011
ivtv: Registered v4l2 device, minor 1
ivtv: Registered v4l2 device, minor 33
ivtv: Registered v4l2 device, minor 225
ivtv: loaded

------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
---

[root at cable share]# cat /etc/modules.conf
path[toplevel]=/lib/modules/`uname
-r`/updates # default path path[toplevel]=/lib/modules/`uname -r` alias
eth0
b44 alias usb-controller usb-uhci alias usb-controller1 ehci-hcd #
nvidia
kernel module alias char-major-195 nvidia-1_0-6106 #alias sound-slot-0
i810_audio #post-install sound-slot-0 /bin/aumix-minimal -f
/etc/.aumixrc -L
>/dev/null 2>&1 || :
#pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
>/dev/null
2>&1 || :
# --- BEGIN: Generated by ALSACONF, do not edit. --- # --- ALSACONF
verion
1.0.5 --- alias char-major-116 snd alias char-major-14 soundcore alias
sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss
alias
sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias
sound-service-0-12 snd-pcm-oss alias snd-card-0 snd-intel8x0 alias
sound-slot-0 snd-intel8x0 # --- END: Generated by ALSACONF, do not edit.
---
# ivtv modules setup alias char-major-81 videodev alias char-major-81-0
ivtv
options ivtv ivtv_debug=1 mpg_buffers=90 options tuner type=2 # NTSC
tuner
options msp3400 once=1 simple=1 add below ivtv msp3400 saa7115 tuner

------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
---

[root at cable share]# /usr/bin/test_ioctl -d /dev/video1 -a
ioctl: IVTV_IOC_G_CODEC
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 16000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 0
pulldown    : 0
stream_type : 0
ioctl: VIDIOC_G_FMT
        Type   : Video Capture
        Width  : 720
        Height : 480
ioctl: VIDIOC_QUERYCAP
        Driver name   : ivtv
        Card type     : Vanilla iTVC15 card
        Bus info      : 1
        Driver version: 265
        Capabilities  : 0x01030001
ioctl: VIDIOC_ENUMINPUT
        Name    : Composite 0
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 1
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 2
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 3
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Tuner 0
        Type    : 0x00000001
        Audioset: 0x00000000
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 4
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 0
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 1
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 2
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 3
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
ioctl: VIDIOC_G_INPUT
Input = 4
ioctl: VIDIOC_G_FREQUENCY
Frequency = 0
ioctl: VIDIOC_ENUMSTD
        ID          : 0x            3000
        Name        : NTSC
        Frame period: 1001/30000
        Frame lines : 525
        ID          : 0x              FF
        Name        : PAL
        Frame period: 1/25
        Frame lines : 625
        ID          : 0x          7F0000
        Name        : SECAM
        Frame period: 1/25
        Frame lines : 625
ioctl: VIDIOC_G_STD
Standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 59343
Mute = 0

------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
------------------------------------------------------------------------
----
---

[root at cable share]# /usr/bin/test_ioctl -d /dev/video0 -a
ioctl: IVTV_IOC_G_CODEC
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 8000000
bitrate_peak: 16000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 0
pulldown    : 0
stream_type : 0
ioctl: VIDIOC_G_FMT
        Type   : Video Capture
        Width  : 720
        Height : 480
ioctl: VIDIOC_QUERYCAP
        Driver name   : ivtv
        Card type     : Vanilla iTVC15 card
        Bus info      : 0
        Driver version: 265
        Capabilities  : 0x01030001
ioctl: VIDIOC_ENUMINPUT
        Name    : Composite 0
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 1
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 2
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 3
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Tuner 0
        Type    : 0x00000001
        Audioset: 0x00000000
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : Composite 4
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 0
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 1
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 2
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
        Name    : S-Video 3
        Type    : 0x00000002
        Audioset: 0x00000001
        Tuner   : 0x00000000
        Standard: 0x            3000 ( NTSC )
        Status  : 0
ioctl: VIDIOC_G_INPUT
Input = 0
ioctl: VIDIOC_G_FREQUENCY
Frequency = 0
ioctl: VIDIOC_ENUMSTD
        ID          : 0x            3000
        Name        : NTSC
        Frame period: 1001/30000
        Frame lines : 525
        ID          : 0x              FF
        Name        : PAL
        Frame period: 1/25
        Frame lines : 625
        ID          : 0x          7F0000
        Name        : SECAM
        Frame period: 1/25
        Frame lines : 625
ioctl: VIDIOC_G_STD
Standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 128
Contrast = 64
Saturation = 64
Hue = 0
Volume = 59343
Mute = 0









More information about the mythtv-users mailing list