Hello Hans!
> I looked at your stream and it is indeed very similar to a problem that
> I have too: after 5-10 minutes my pvr350 also suddenly shows audio and
> video artifacts. What happens is that somehow the mpeg data seems to be
> shifted: the start of a freshly captured mpeg should start with this
> hex string:
>
> 00 00 01 ba
>
> Instead it is shifted to the back, in your case 4 bytes:
>
> 10 33 0a 6c 00 00 01 ba
Since I bought my PVR-350 I have this problem from time to time with any
driver (tested since 0.2.0f until bleeding-edge 0.5.0) and any recent
encoder firmware (0x02040011, 0x02040024, 0x02050032). If this problem
occurs, the only way to get rid of it is to reboot. Neither reloading
the firmware via "ivtvctl -H" or reloading the driver works.
My expriences show that this problem occurs much more rarely when using
the 0x02040011 encoder firmware instead of the (currently) recommended
0x02050032 version. However, the problem doesn't go away completely.
Additionally, it seems that the longer the card isn't rebooted the
higher the possibility that the problem appears: Since I reboot
automatically after each recording made, I encounter this problem almost
never (ivtv 0.4.0, firmware 0x02040011). But this isn't satisfactory, of
course.
I tried to analyse a small buggy MPEG2 stream via ProjectX (see attached
file clip_log.txt). Note the "missing startcode" / "missing next
startcode" / "Pics exp/cnt 12/9" messages - in a bigger stream they
appear much more often. Then I made a dump of the encoder registers via
"ivtvctl -J" (see attached file buggy-regs.txt). I don't know if that
helps, however. In addition, I attached my card information.
If anyone is interesting in the stream I can offer it for downloading.
> Do you have other PCI cards installed? Because I suspect there is a
> relation with the other installed hardware or used PCI slots.
Until recently I didn't have any other PCI cards in my system but the
network controller and graphics adapter, so I suspect the problem lies
somewhere else. (Now I have a DVB-C card in my system, but they coexist
nicely in every respect; I even can record from two cards
simultaneously.) I did change the card's PCI slot some time ago but it
didn't help. Once I thought the problem appears if the system is under
stress (e.g. reading a recording over the network while it is written to
by the driver), but I had buggy recordings even if (almost) no other
processes were running.
Best regards and thank you all for the great work,
Christoph Schulz
Donnerstag, 17. November 2005 10.25 Uhr CET
ProjectX 0.90.01.00 (30.09.2005)
compiled by OoZooN with JDK 1.5.0_04
<<< session infos >>>
-> working with collection 0
-> save normal log file
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE
-> ensure each GOP has a sequenceheader
-> PVA: strictly specs. for audio streams
-> VOB: determine diff. Cell timelines
-> TS: ignore scrambled packets
-> TS: enhanced search for open packets
-> TS: generate PMT stream dependent
-> get only enclosed PES/TS packets
-> concatenate different recordings
-> Video: adapt sliding PTSs
-> ensure 1st PES-packet start with video
-> generate PCR/SCR from PTS
-> write output files to: 'C:\tmp\video'
-> Input File 0: 'K:\1419\clip.mpg' (2.637.824 bytes)
-> Filetype is MPEG-2 PS/SS (PES Container)
-> demux
!> missing startcode @ 0
!> found startcode @ 4
-> found PES-ID 0xE0 (MPEG Video) @ 42
-> found PES-ID 0xC0 (MPEG Audio) @ 2066
!> missing startcode @ 93424
!> found startcode @ 94212
!> dropping GOP# 0 @ orig.PTS 00:00:00.320 (28837)
-> Pics exp/cnt 12/9, inGOP PTS diff. 0ms, new Timecode 00:00:00.000
-> video basics: 720*576 @ 25fps @ 0.6735 (4:3) @ 9600000bps, vbvBuffer 112
-> starting export of video data @ GOP# 1
!> dropping useless B-Frames @ GOP# 1 / new Timecode 00:00:00.000
!> missing next startcode @ 1853376 from 1851410 (PES-ID 0xE0), dropping
packet..
!> found startcode @ 1853444
-> Video: fr/ ct/ 1p/ cg/ og/ dg -> 190/ 2/ 0/ 16/ 0/ 1
-> Video length: 190 frames @ 00:00:07.600
-> GOP summary: min. 20, max. 24 fields; contains interlaced frames
-> avg. nom. bitrate 1908067bps (min/max: 1415600/2263200)
-> set first sequenceheader bitrate to 1908000bps
---> new File: C:\tmp\video\clip.m2v
--> MPEG Audio (0xC0)
-> add frames
Audio PTS: first packet 00:00:00.320, last packet 00:00:07.880
Video PTS: start 1.GOP 00:00:00.880, end last GOP 00:00:08.480
-> adjusting audio at video-timeline
!> missing syncword @ 26208, @ 00:00:00.000
!> found syncword @ 26496
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 384kbps, noCRC @ 00:00:00.000
!> 24 frame(s) (576ms) added @ 00:00:07.032
audio frames: wri/pre/skip/ins/add 317/0/0/0/24 @ 00:00:07.608 done...
---> new File: 'C:\tmp\video\clip.mp2'
summary of created media files:
.Video (m2v): 190 Frames 00:00:07.600 'C:\tmp\video\clip.m2v'
Audio 0 (mp2): 317 Frames 00:00:07.608 0/0/0/24
'C:\tmp\video\clip.mp2'
=> 2.177.848 bytes written...
-> we have 11 warnings/errors.
ioctl: IVTV_IOC_G_ENCODER_REG
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0000: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0020: 00 00 00 00 00 00 0d 00 21 1d 77 41 00 38 00 00
0030: 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00
0040: 00 00 80 80 80 80 80 80 80 80 80 80 80 80 3f 3f
0050: 3f 80 80 80 0c 00 00 00 00 00 3f 7d af 33 35 35
0060: 7a 02 2f cb 8a 09 2a 77 41 88 41 12 fa 00 a0 00
0070: 41 c3 00 3e b8 03 15 16 15 16 1a 01 c0 00 00 00
Linux video capture interface: v1.00
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.5.0 (tagged release) loading
ivtv: Linux version: 2.6.14-gentoo-r2 preempt PENTIUMII gcc-3.3
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.
ivtv0: Autodetected WinTV PVR 350 card (cx23415 based)
PCI: Enabling device 0000:00:0e.0 (0154 -> 0156)
PCI: Found IRQ 11 for device 0000:00:0e.0
PCI: Sharing IRQ 11 with 0000:01:00.0
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
tveeprom 1-0050: Hauppauge model 48139, rev K257, serial# 7596988
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/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 remote
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
saa7115 1-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
saa7127 1-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7127, addr=44]
msp3400 1-0040: chip=MSP4418G-B3 +nicam +simple +simpler +radio mode=simpler
msp3400 1-0040: msp34xxg daemon started
ivtv0: i2c attach to card #0 ok [client=MSP4418G-B3, addr=40]
tda9887 1-0043: chip found @ 0x86 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02040011
ivtv0: Decoder revision: 0x02020023
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv0: Create encoder radio stream
ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 buffers (1024KB total)
ivtv0: Create decoder VOUT stream
ivtv0: Allocate DMA decoder YUV stream: 20 x 51840 buffers (1024KB total)
ivtv0: loaded v4l-cx2341x-init-mpeg.bin firmware (155648 bytes)
tuner 1-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
ivtv0: Initialized WinTV PVR 350, card #0
ivtv: ==================== END INIT IVTV ====================
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel