Hi I'm reposting this in the devel-list, because I had no response in the user list.
Below is my original post. At the end I have added some new information. .............. Hi I have a problem with the mpeg streams from my PVR-350. My setup: VIA SP-8000E motherboard, PVR-350, Fedora 7, kernel 2.6.22.4-65.fc7. I recently upgraded from Fedora Core 5 where I had no problems. Now, if I do "cat /dev/video0 > fish.mpg", and play the resulting file with mplayer I get a lot of messages like: >Too many video packets in the buffer: (4096 in 8043740 bytes). >Maybe you are playing a non-interleaved stream/file or the codec failed? >For AVI files, try to force non-interleaved mode with the -ni option. >A: 1.5 V: 2.6 A-V: -1.058 ct: -0.082 58/ 58 36% 7% 34.3% 10 0 The first few (1-10, often just 1) seconds are OK, but then audio disappears. Video still seems OK. If I play back the file on the PVR-350 "cat fish.mpg > /dev/video16", the result is the same. OK for a few seconds, then audio disappears. Even "dd if=/dev/video0 of=/dev/video16 bs=64k" has the same problem. I have tried with different debug parameter values, and of course with no parameters at all. I have tried increasing the mpeg encode buffer and reducing other buffers, even reducing some to 0. I have tried a vanilla 2.6.22.3 low-latency kernel. I have tried installing MythDora 4.0 which comes with a 2.6.20 kernel. The problem remains. ivtv initialisation: ivtv: ==================== START INIT IVTV ==================== ivtv: version 1.0.0 (2.6.22.4-65.fc7 SMP mod_unload 686 4KSTACKS ) loading ivtv0: Autodetected Hauppauge card (cx23415 based) ivtv0 info: base addr: 0xe8000000 ivtv0 info: Enabling pci device ACPI: PCI Interrupt 0000:00:14.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10 ivtv0 info: Bus Mastering Enabled. ivtv0: Unreasonably low latency timer, setting to 64 (was 32) ivtv0 info: 2051 (rev 1) at 00:14.0, irq: 10, latency: 64, memory: 0xe8000000 ivtv0 info: attempting ioremap at 0xe8000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xe9000000 len 0x00800000 ivtv0 info: attempting ioremap at 0xea000000 len 0x00010000 ivtv0 info: Preparing for firmware halt. ivtv0 info: Stopping VDM ivtv0 info: Stopping AO ivtv0 info: pinging (?) APU ivtv0 info: Stopping VPU ivtv0 info: Resetting Hw Blocks ivtv0 info: Stopping SPU ivtv0 info: init Encoder SDRAM pre-charge ivtv0 info: init Encoder SDRAM refresh to 1us ivtv0 info: init Decoder SDRAM pre-charge ivtv0 info: init Decoder SDRAM refresh to 1us ivtv0 info: Sleeping for 600ms (600 recommended) ivtv0 info: Loading encoder image ivtv0: loaded v4l-cx2341x-enc.fw firmware (3683839248 bytes) ivtv0 info: Loading decoder image ivtv0: loaded v4l-cx2341x-dec.fw firmware (3683839248 bytes) ivtv0 info: Getting firmware version.. ivtv0: Encoder revision: 0x02060039 ivtv0: Decoder revision: 0x02020023 ivtv0 info: activating i2c... ivtv0 info: Active card count: 1. ivtv0 info: Loaded module tveeprom tveeprom 1-0050: Hauppauge model 48139, rev K257, serial# 2951631 tveeprom 1-0050: tuner model is Philips FM1216 ME MK3 (idx 57, type 38) tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74) tveeprom 1-0050: audio processor is MSP4418 (idx 25) tveeprom 1-0050: decoder processor is SAA7115 (idx 19) tveeprom 1-0050: has radio, has IR receiver, has no IR transmitter ivtv0: Autodetected Hauppauge WinTV PVR-350 ivtv0 info: PAL tuner detected tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0) tda9887 1-0043: tda988[5/6/7] found @ 0x43 (tuner) tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0) ivtv0 info: Loaded module tuner saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0) ivtv0 info: Loaded module saa7115 saa7127 1-0044: saa7129 found @ 0x88 (ivtv i2c driver #0) ivtv0 info: Loaded module saa7127 msp3400 1-0040: MSP4418G-B3 found @ 0x80 (ivtv i2c driver #0) msp3400 1-0040: MSP4418G-B3 supports nicam and radio, mode is autodetect and autoselect ivtv0 info: Loaded module msp3400 tuner 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) ivtv0 info: Changing input from 1 to 0 ivtv0 info: Mute ivtv0 info: Unmute ivtv0 info: Mute ivtv0 info: v4l2 ioctl: set frequency 6400 ivtv0 info: Unmute ivtv0: Registered device video0 for encoder MPEG (8 MB) ivtv0 info: Allocate DMA encoder MPEG stream: 256 x 32768 buffers (8192kB total) ivtv0: Disabled encoder YUV device ivtv0: Registered device vbi0 for encoder VBI (1 MB) ivtv0 info: Allocate DMA encoder VBI stream: 40 x 26208 buffers (1023kB total) ivtv0: Registered device video24 for encoder PCM audio (2 MB) ivtv0 info: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2047kB total) ivtv0: Registered device radio0 for encoder radio ivtv0: Registered device video16 for decoder MPEG (1 MB) ivtv0 info: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024kB total) ivtv0: Registered device vbi8 for decoder VBI ivtv0: Registered device vbi16 for decoder VOUT ivtv0: Disabled decoder YUV device ivtv0: loaded v4l-cx2341x-init.mpg firmware (3671200552 bytes) ivtv0 info: Switching standard to f. ivtv0: Initialized Hauppauge WinTV PVR-350, card #0 ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10 PCI: Setting latency timer of device 0000:00:11.5 to 64 ivtv: ==================== END INIT IVTV ==================== ... ivtv0 info: Input unchanged ivtv0 info: Switching standard to 7. ivtv0 info: Input unchanged ivtv0 info: Mute ivtv0 info: v4l2 ioctl: set frequency 2916 ivtv0 info: Unmute With debug enabled I get the following in syslog after capturing for about 30 seconds: Sep 4 18:33:01 saruman kernel: ivtv0 info: Start encoder stream encoder MPEG Sep 4 18:33:01 saruman kernel: ivtv0 info: Setup VBI API header 0x0000bd03 pkts 1 buffs 4 ln 36 sz 1456 Sep 4 18:33:01 saruman kernel: ivtv0 info: Setup VBI start 0x002fea04 frames 4 fpi 1 lines 0x000000f1 Sep 4 18:33:01 saruman kernel: ivtv0 info: PGM Index at 0x00180150 with 400 elements Sep 4 18:33:02 saruman kernel: ivtv0 info: read 4096 from encoder MPEG, got 4096 Sep 4 18:33:33 saruman last message repeated 6020 times Sep 4 18:33:35 saruman last message repeated 464 times Sep 4 18:33:35 saruman kernel: ivtv0 info: User stopped encoder MPEG Sep 4 18:33:35 saruman kernel: ivtv0 info: read 4096 from encoder MPEG, got 4294967292 Sep 4 18:33:35 saruman kernel: ivtv0 info: close stopping capture Sep 4 18:33:35 saruman kernel: ivtv0 info: Stop Capture No indication of overflow or errors. Is my PVR-350 suddenly broken...? Can anybody help...? ------- Some new information: I have tried with the latest kernel.org kernel 2.6.23-rc6. Same result. If I capture a new file after I have captured a corrupt file as described above, I get a file that mplayer can play without all those "Too many video packets..." warnings. The file contains no audio, and mplayer notes that and prints "No audio stream", but the video is 100% OK. I'm running out of things to try. My last test would be to find somebody with a Windows machine and install the PVR-350 there to see if it still works... Best Regards Poul Christiansen _______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
