[ivtv-devel] mplayer choppy, xine blank

Adam Forsyth agforsyth at gmail.com
Fri Sep 30 03:46:31 CEST 2005


Well, if it were me I would just use mythtv and "Watch Live TV" with
composite / svideo set up as the video source. Just set a small size
for the maximum size to use for the livetv buffer.

On 9/29/05, Steve Castellotti <sc at eyemagnet.net> wrote:
>            hey all--
>
>      I've been doing a lot of searching on the mailing list, trying to work out a way to "permanently" display a live video stream on screen (either through s-video or composite connections).
>
>      Playing through mplayer by directly reading from /dev/video0, I see random slowdown and speedups, huge amounts of frames being dropped, and so on. If I cat /dev/video0 > file.mpg and play that, it works just fine, but the file continues to grow and grow. Isn't there some way to write file and use that file as a "buffer" mplayer can read from?
>
>      I've tried using xine instead, but I only get a blank window. Xine can read generic media files and play them back without trouble, but can neither read from /dev/video0 directly nor from the "file.mpg" dumps I make using cat. (Also tested the pvr pluging, using "xine -V xv --stdctl pvr://tmp/livepause"). I've tried making changes to the codec-params without result. Note that mplayer can play the same files, so its not a problem with the wrong input setting!
>
>
>  System:
>
>  Processor: Pentium 4 2.4Ghz
>  RAM: 256 MB RAM
>  Tuner: Hauppauge WinTV-PVR-250 (Model 980) PCI
>
>  OS: CentOS 4.1
>  Kernel: Stock CentOS 2.6.9-11.EL based, patched with ivtv-0.2.0-rc3k and custom compiled
>  IVTV Version: 0.2.0-rc3k
>
>
>  ivtvctl --list-capability:
>  ioctl: VIDIOC_QUERYCAP
>          Driver name   : ivtv
>          Card type     : Vanilla iTVC15 card
>          Bus info      : 0
>          Driver version: 512
>          Capabilities  : 0x01070011
>
>
>  Output of /var/log/messsages:
>
>  Sep 30 10:52:51 blackeye kernel: ivtv: ==================== START INIT IVTV ====================
>  Sep 30 10:52:51 blackeye kernel: ivtv: version 0.2.0 (rc3j) loading
>  Sep 30 10:52:51 blackeye kernel: ivtv: Linux version: 2.6.9-11.EL.blackeye 686 REGPARM 4KSTACKS gcc-3.4
>  Sep 30 10:52:51 blackeye kernel: ivtv: In case of problems please include the debug info
>  Sep 30 10:52:51 blackeye kernel: ivtv: between the START INIT IVTV and END INIT
>  IVTV lines when
>  Sep 30 10:52:51 blackeye kernel: ivtv: mailing the ivtv-devel mailinglist.
>  Sep 30 10:52:51 blackeye kernel: ivtv: Autodetected WinTV PVR 250 card
>  Sep 30 10:52:51 blackeye kernel: ivtv: Found an iTVC16 based chip
>  Sep 30 10:52:51 blackeye kernel: ACPI: PCI interrupt 0000:01:05.0[A] -> GSI 3 (level, low) -> IRQ 3
>  Sep 30 10:52:51 blackeye kernel: ivtv: XXX PCI device: 0x2560 vendor: 0x8086
>  Sep 30 10:52:51 blackeye kernel: tveeprom: Hauppauge: model = 32062, rev = C182, serial# = 7811748
>  Sep 30 10:52:51 blackeye kernel: tveeprom: tuner = LG TAPC H791F (idx = 82, type = 39)
>  Sep 30 10:52:51 blackeye kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
>  Sep 30 10:52:51 blackeye kernel: tveeprom: audio_processor = MSP3445 (type = 12)Sep 30 10:52:51 blackeye kernel: ivtv: i2c attach [client=tveeprom,ok]
>  Sep 30 10:52:51 blackeye kernel: msp34xx: ivtv version
>  Sep 30 10:52:51 blackeye kernel: msp34xx: init: chip=MSP3445G-B8, has NICAM support, simple (D) mode, simpler (G) no-thread mode
>  Sep 30 10:52:51 blackeye kernel: msp34xx: $Id$ compiled on: Aug 29 2005 14:14:48Sep 30 10:52:51 blackeye kernel: ivtv: i2c attach [client=MSP3445G-B8,ok]
>  Sep 30 10:52:51 blackeye kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
>  Sep 30 10:52:51 blackeye kernel: ivtv: i2c attach [client=(tuner unset),ok]
>  Sep 30 10:52:51 blackeye kernel: saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
>  Sep 30 10:52:51 blackeye kernel: saa7115: detecting saa7115 client on address 0x42
>  Sep 30 10:52:51 blackeye kernel: saa7115: writing init values
>  Sep 30 10:52:52 blackeye kernel: ivtv: i2c attach [client=saa7115,ok]
>  Sep 30 10:52:52 blackeye kernel: saa7115: status: (1E) 0x48, (1F) 0xc0
>  Sep 30 10:52:52 blackeye kernel: ivtv: Tuner Type 39, Tuner formats 0x00001000,
>  Radio: yes, Model 0x008d1612, Revision 0x00000000
>  Sep 30 10:52:52 blackeye kernel: ivtv: NTSC tuner detected
>  Sep 30 10:52:52 blackeye kernel: ivtv: Radio detected
>  Sep 30 10:52:52 blackeye kernel: ivtv: Encoder revision: 0x02040011
>  Sep 30 10:52:52 blackeye kernel: ivtv: Configuring WinTV PVR 250 card with 5 streams
>  Sep 30 10:52:52 blackeye kernel: ivtv: Create DMA stream 0 using 256 16384 byte
>  buffers  4194304 kbytes total
>  Sep 30 10:52:52 blackeye kernel: ivtv: Registered v4l2 device, streamtype 0 minor 0
>  Sep 30 10:52:52 blackeye kernel: ivtv: Create DMA stream 1
>  Sep 30 10:52:52 blackeye kernel: ivtv: Registered v4l2 device, streamtype 1 minor 32
>  Sep 30 10:52:52 blackeye kernel: ivtv: Create stream 2 using 40 52224 byte buffers  2097152 kbytes total
>  Sep 30 10:52:52 blackeye kernel: ivtv: Registered v4l2 device, streamtype 2 minor 224
>  Sep 30 10:52:52 blackeye kernel: ivtv: Create DMA stream 3 using 455 4608 byte buffers  2097152 kbytes total
>  Sep 30 10:52:52 blackeye kernel: ivtv: Registered v4l2 device, streamtype 3 minor 24
>  Sep 30 10:52:52 blackeye kernel: ivtv: Create stream 4
>  Sep 30 10:52:52 blackeye kernel: ivtv: Registered v4l2 device, streamtype 4 minor 64
>  Sep 30 10:52:52 blackeye kernel: ivtv: Setting Tuner 2
>  Sep 30 10:52:52 blackeye kernel: tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by ivtv i2c driver #0
>  Sep 30 10:52:52 blackeye kernel: saa7115: decoder set input (4)
>  Sep 30 10:52:52 blackeye kernel: saa7115: now setting Composite input
>  Sep 30 10:52:52 blackeye kernel: ivtv: Setting audio matrix to input 3, output 1Sep 30 10:52:52 blackeye kernel: ivtv: Switching standard to NTSC.
>  Sep 30 10:52:53 blackeye kernel: ivtv: ivtv_enc_thread: pid = 3957, itv = 0xd0d8faa0
>  Sep 30 10:52:53 blackeye kernel: saa7115: decoder set norm NTSC
>  Sep 30 10:52:53 blackeye kernel: saa7115: set audio: 0x01
>  Sep 30 10:52:53 blackeye kernel: ivtv: Initialized WinTV PVR 250, card #0
>  Sep 30 10:52:53 blackeye kernel: ivtv: ====================  END INIT IVTV  ====================
>
>
>
>      Any help or tips would be much appreciated!
>
>
>
>   Steve Castellotti
>  Technical Director
>  Eye Magnet - New Zealand
> _______________________________________________
> ivtv-devel mailing list
> ivtv-devel at ivtvdriver.org
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel
>
>



More information about the ivtv-devel mailing list