Bug 197835

Summary: DVB-S discontinuity, PES packet size mismatch, stream corruption
Product: Other Reporter: a1bert (a1bert)
Component: OtherAssignee: other_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: >=4.9 Subsystem:
Regression: No Bisected commit-id:

Description a1bert 2017-11-10 10:06:14 UTC
affected kernels: >=4.9

affected architecture: ALL? (confirmed: arm(rpi3), x86)

symptoms: 

after upgrade from pre 4.9x kernels to 4.9 and above (4.13.12 affected too) I am experiencing corruption (green artifacts) of DVB-S FullHD streams captured by USB of PCIe DVB-S cards (confirmed on DVBSky S950,  DVBSky s960 DVB-S2):


[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache:  9s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:22 A-V:  0.000 Cache: 10s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 00:07:23 A-V:  0.000 Cache:  9s+1MB
[ffmpeg/demuxer] mpegts: PES packet size mismatch

after stopping stream capture/replay for serveral seconds it recovers (but if the the interruption is short ie 1 sec it does not recover)

SD (low bitrate?) streams not affected (or I did not wait enough?)

Not sure if it's DVB stack problem since it looks like it's  I/O ((disc) dependent: the problem manifests after tens of minutes when just displaying DVB stream (cca 90mins) but with heavy disc I/O in serveral minutes (< 10mins)

LibreElec folks affected by the same issue: 

https://forum.libreelec.tv/thread/4235-dvb-issue-since-le-switched-to-kernel-4-9-x/?pageNo=1