[lug] Re: ivtv: video works! (but audio?)
steve at badcheese.com
steve at badcheese.com
Fri Jun 8 09:34:18 MDT 2007
Sometimes the Hauppage cards include a tiny 1/8" headphone cable to
channel audio from your sound card to the capture card. Make sure that if
your model of capture card needs this that the cable is attached. It's a
black cable about 6" long.
- Steve
On Thu, 7 Jun 2007, Steve Sullivan wrote:
> Date: Thu, 7 Jun 2007 16:35:18 -0600
> From: Steve Sullivan <sullivan at mathcom.com>
> Reply-To: "Boulder (Colorado) Linux Users Group -- General Mailing List"
> <lug at lug.boulder.co.us>
> To: lug at lug.boulder.co.us
> Subject: [lug] Re: ivtv: video works! (but audio?)
>
>
> Hi,
>
> Many thanks for all the good advice on ivtv.
> Using
> /usr/bin/v4l2-ctl -n
> and testing the various values of n in
> /usr/bin/v4l2-ctl -i n
> eventually got video capture working.
>
> Now that I can capture and view video, it'd be great to hear the
> accompanying sound :) ... right now all I get is silence.
> How do I get captured audio with the video?
> When I connect the VCR audio out to the Hauppauge 250 audio in,
> I get only silence.
>
> When I connect the VCR to the PC sound card instead of the Hauppauge 250,
> I can hear the audio, so at least the VCR and cable are ok.
>
> I've tried ...
>
> # List audio inputs:
> $ /usr/bin/v4l2-ctl -q
> ioctl: VIDIOC_ENUMAUDIO
> Input : 0
> Name : Tuner 1
>
> Input : 1
> Name : Line In 1
>
> Input : 2
> Name : Line In 2
>
>
> # Try each audio input in turn:
> $ /usr/bin/v4l2-ctl -a 0
> $ /usr/bin/v4l2-ctl -a 1
> $ /usr/bin/v4l2-ctl -a 2
>
> But none of these result in audio.
>
> I've tried mplayer with
> -ao alsa
> and
> -ao oss
> but neither works. mplayer seems to be finding a sound
> channel, and it's output is below.
>
> Many thanks,
>
> Steve
>
> ==========================================================================
> ==========================================================================
>
> ivtv output via dmesg:
>
> ivtv: ==================== START INIT IVTV ====================
> ivtv: version 0.8.0 (tagged release) loading
> ivtv: Linux version: 2.6.18.8-0.1-bigsmp SMP mod_unload 586 REGPARM gcc-4.1
> ivtv: In case of problems please include the debug info between
> ivtv: the START INIT IVTV and END INIT IVTV lines, along with
> ivtv: any module options, when mailing the ivtv-users mailinglist.
> intel8x0_measure_ac97_clock: measured 58851 usecs
> intel8x0: clocking to 46950
> i2c_adapter i2c-0: nForce2 SMBus adapter at 0xa000
> i2c_adapter i2c-1: nForce2 SMBus adapter at 0xa040
> ACPI: PCI Interrupt Link [LUS0] enabled at IRQ 23
> ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LUS0] -> GSI 23 (level, high) -> IRQ 201
> PCI: Setting latency timer of device 0000:00:02.0 to 64
> ohci_hcd 0000:00:02.0: OHCI Host Controller
> ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 1
> ohci_hcd 0000:00:02.0: irq 201, io mem 0xc0000000
> nvidia: module license 'NVIDIA' taints kernel.
> eth1: forcedeth.c: subsystem: 010f1:2895 bound to 0000:80:0a.0
> usb usb1: new device found, idVendor=0000, idProduct=0000
> usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb1: Product: OHCI Host Controller
> usb usb1: Manufacturer: Linux 2.6.18.8-0.3-bigsmp ohci_hcd
> usb usb1: SerialNumber: 0000:00:02.0
> usb usb1: configuration #1 chosen from 1 choice
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 10 ports detected
> ACPI: PCI Interrupt Link [LUS2] enabled at IRQ 22
> ACPI: PCI Interrupt 0000:00:02.1[B] -> Link [LUS2] -> GSI 22 (level, high) -> IRQ 209
> PCI: Setting latency timer of device 0000:00:02.1 to 64
> ehci_hcd 0000:00:02.1: EHCI Host Controller
> ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 2
> ehci_hcd 0000:00:02.1: debug port 1
> PCI: cache line size of 64 is not supported by device 0000:00:02.1
> ehci_hcd 0000:00:02.1: irq 209, io mem 0xc0001000
> ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
> usb usb2: new device found, idVendor=0000, idProduct=0000
> usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb2: Product: EHCI Host Controller
> usb usb2: Manufacturer: Linux 2.6.18.8-0.3-bigsmp ehci_hcd
> usb usb2: SerialNumber: 0000:00:02.1
> usb usb2: configuration #1 chosen from 1 choice
> hub 2-0:1.0: USB hub found
> hub 2-0:1.0: 10 ports detected
> ACPI: PCI Interrupt Link [LNK4] enabled at IRQ 18
> ACPI: PCI Interrupt 0000:01:05.0[A] -> Link [LNK4] -> GSI 18 (level, high) -> IRQ 50
> ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[50] MMIO=[c0104000-c01047ff] Max Packet=[2048] IR/IT contexts=[4/8]
> ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNK3] -> GSI 19 (level, high) -> IRQ 225
> PCI: Setting latency timer of device 0000:02:00.0 to 64
> NVRM: loading NVIDIA Linux x86 Kernel Module 1.0-9631 Thu Nov 9 17:38:10 PST 2006
> ivtv0: Autodetected Hauppauge WinTV PVR-250 card (cx23416 based)
> ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 17
> ACPI: PCI Interrupt 0000:01:04.0[A] -> Link [LNK1] -> GSI 17 (level, high) -> IRQ 58
> usb 2-3: new high speed USB device using ehci_hcd and address 2
> usb 2-3: new device found, idVendor=05e3, idProduct=0605
> usb 2-3: new device strings: Mfr=0, Product=1, SerialNumber=0
> usb 2-3: Product: USB2.0 Hub
> usb 2-3: configuration #1 chosen from 1 choice
> hub 2-3:1.0: USB hub found
> hub 2-3:1.0: 4 ports detected
> ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
> tveeprom 2-0050: Hauppauge model 32062, rev C199, serial# 8202699
> tveeprom 2-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
> tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
> tveeprom 2-0050: audio processor is MSP3445 (idx 12)
> tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
> tveeprom 2-0050: has no radio, has IR remote
> tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
> saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
> ieee1394: Host added: ID:BUS[0-00:1023] GUID[00e081000023d143]
> msp3400 2-0040: MSP3445G-B8 found @ 0x80 (ivtv i2c driver #0)
> msp3400 2-0040: MSP3445G-B8 supports radio, mode is autodetect and autoselect
> ivtv0: Encoder revision: 0x02060039
> ivtv0 warning: Encoder Firmware can be buggy, use version 0x02040011, 0x02040024 or 0x02050032.
> ivtv0: Registered device video0 for encoder MPEG
> ivtv0: Registered device video32 for encoder YUV
> ivtv0: Registered device vbi0 for encoder VBI
> ivtv0: Registered device video24 for encoder PCM audio
> tuner 2-0061: type set to 50 (TCL 2002N)
> ivtv0: Initialized Hauppauge WinTV PVR-250, card #0
> ivtv: ==================== END INIT IVTV ====================
>
>
> ==========================================================================
> ==========================================================================
>
> v4l2-ctl output
>
> $ /usr/bin/v4l2-ctl --all
>
> Driver info:
> Driver name : ivtv
> Card type : Hauppauge WinTV PVR-250
> Bus info : 0000:01:04.0
> Driver version: 2048
> Capabilities : 0x01030051
> Video Capture
> VBI Capture
> Sliced VBI Capture
> Tuner
> Audio
> Read/Write
> Format:
> Type : Video Capture
> Width/Height : 720/480
> Pixel Format : MPEG
> Field : Interlaced
> Bytes per Line: 0
> Size Image : 131072
> Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601)
> Format:
> Type : Sliced VBI Capture
> Service Set :
> Service Line 0: /
> Service Line 1: /
> Service Line 2: /
> Service Line 3: /
> Service Line 4: /
> Service Line 5: /
> Service Line 6: /
> Service Line 7: /
> Service Line 8: /
> Service Line 9: /
> Service Line 10: /
> Service Line 11: /
> Service Line 12: /
> Service Line 13: /
> Service Line 14: /
> Service Line 15: /
> Service Line 16: /
> Service Line 17: /
> Service Line 18: /
> Service Line 19: /
> Service Line 20: /
> Service Line 21: /
> Service Line 22: /
> Service Line 23: /
> I/O Size : 0
> Format:
> Type : VBI Capture
> Sampling Rate : 27000000 Hz
> Offset : 248 samples (9.18519e-06 secs after leading edge)
> Samples per Line: 1439
> Sample Format : GREY
> Start 1st Field : 10
> Count 1st Field : 12
> Start 2nd Field : 273
> Count 2nd Field : 12
> Video input : 5 (Composite 3)
> Audio input : 2 (Line In 2)
> Frequency: 1076 (67.250000 MHz)
> Video standard = 0x0000b000
> NTSC-M/M-JP/M-KR
> Tuner:
> Capabilities : 62.5 kHz multi-standard stereo lang1 lang2
> Frequency range : 44.0 MHz - 958.0 MHz
> Signal strength : 99%
> Current audio mode : stereo
> Available subchannels: mono
>
>
> ==========================================================================
> ==========================================================================
>
> mplayer output
>
> $ mplayer -vo xv -ao alsa /dev/video0
> MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
> CPU: AMD Opteron(tm) Processor 246 (Family: 15, Model: 5, Stepping: 10)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
> mplayer: could not connect to socket
> mplayer: Connection refused
> Failed to open LIRC support. You will not be able to use your remote control.
>
> Playing /dev/video0.
> Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
> MPEG-PS file format detected.
> VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 8000.0 kbps (1000.0 kbyte/s)
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
> Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
> ==========================================================================
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
> Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [xv] 720x480 => 720x540 Planar YV12
> New_Face failed. Maybe the font path is wrong. 2 ??% ??% ??,?% 0 0
> Please supply the text font file (~/.mplayer/subfont.ttf).
> subtitle font: load_sub_face failed.
> A: 5.9 V: 5.9 A-V: -0.001 ct: -0.321 153/153 10% 0% 13.2% 0 0
>
> MPlayer interrupted by signal 2 in module: sleep_timer
>
> ==========================================================================
> ==========================================================================
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
--
EMAIL: (h) steve at badcheese.com WEB: http://badcheese.com/~steve
More information about the LUG
mailing list