From patchwork Tue May 5 07:59:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ales Jurik X-Patchwork-Id: 12725 Received: from smtp-out2.iol.cz ([194.228.2.87]) by mail.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1M1FZ1-0006o9-VU for vdr@linuxtv.org; Tue, 05 May 2009 09:59:44 +0200 Received: from antivir4.iol.cz (antivir4.iplanet.iol.cz [192.168.30.209]) by smtp-out2.iol.cz (Postfix) with ESMTP id 4A75011807; Tue, 5 May 2009 09:59:10 +0200 (CEST) Received: from localhost (antivir4.iol.cz [127.0.0.1]) by antivir4.iol.cz (Postfix) with ESMTP id 3DF1F1A38034; Tue, 5 May 2009 09:59:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir4.iol.cz ([127.0.0.1]) by localhost (antivir4.iol.cz [127.0.0.1]) (amavisd-new, port 10124) with LMTP id P155nZlNTKqX; Tue, 5 May 2009 09:59:10 +0200 (CEST) Received: from port2.iol.cz (unknown [192.168.30.92]) by antivir4.iol.cz (Postfix) with ESMTP id 275081A38033; Tue, 5 May 2009 09:59:10 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-QUICK X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAKKO/0lYZ3gv/2dsb2JhbADOZYN9BQ Received: from unknown (HELO ales-debian.local) ([88.103.120.47]) by port2.iol.cz with ESMTP; 05 May 2009 09:59:09 +0200 From: Ales Jurik To: vdr@linuxtv.org Date: Tue, 5 May 2009 09:59:09 +0200 User-Agent: KMail/1.9.9 References: <1240952859.3815.7.camel@HTPC> <200905050004.28460.ajurik@quick.cz> <49FFEB2B.1000305@cadsoft.de> In-Reply-To: <49FFEB2B.1000305@cadsoft.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200905050959.09412.ajurik@quick.cz> X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=AWL=0.120, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] Black screen on some channels with vdr 1.7.6 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ajurik@quick.cz, VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 07:59:44 -0000 Status: O X-Status: X-Keywords: X-UID: 20305 On Tuesday 05 of May 2009, Klaus Schmidinger wrote: > On 05/05/09 00:04, Ales Jurik wrote: ... > > > > Many thanks, it seems to works (with type of 2), but it is necessary to > > set "Update channels" to "no". > > Please try this: > > --- remux.c 2009/05/03 14:43:25 2.20 > +++ remux.c 2009/05/05 07:27:21 > @@ -795,6 +795,7 @@ > scanner <<= 8; > scanner |= Data[i]; > switch (type) { > + case 0x01: // MPEG 1 video > case 0x02: // MPEG 2 video > if (scanner == 0x00000100) { // Picture Start > Code if (synced && Processed) > > With this you should be able to turn "Update channels" on again. > > Klaus Thanks for pointing me to the problem. But for working it it was necessary to add these two changes more: vpid = stream.getPid(); @@ -702,7 +703,7 @@ cFrameDetector::cFrameDetector(int Pid, newFrame = independentFrame = false; numPtsValues = 0; numIFrames = 0; - isVideo = type == 0x02 || type == 0x1B; // MPEG 2 or MPEG 4 + isVideo = type == 0x01 || type == 0x02 || type == 0x1B; // MPEG 1,2 or 4 frameDuration = 0; framesInPayloadUnit = framesPerPayloadUnit = 0; payloadUnitOfFrame = 0; Now it seems to works as on older vdr versions (with PES), but video discontinuities are still present on Spektrum (as on many other channels from other providers). On STB's these discontinuities are not present in video. Thanks and BR, Ales --- remux.c 2009-05-05 09:44:01.000000000 +0200 +++ remux.c 2009-05-05 09:50:56.854167360 +0200 @@ -481,6 +481,7 @@ void cPatPmtParser::ParsePmt(const uchar for (SI::Loop::Iterator it; Pmt.streamLoop.getNext(stream, it); ) { dbgpatpmt(" stream type = %02X, pid = %d", stream.getStreamType(), stream.getPid()); switch (stream.getStreamType()) { + case 0x01: // MPEG1 case 0x02: // STREAMTYPE_13818_VIDEO case 0x1B: // MPEG4