From patchwork Mon Jun 19 23:50:02 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucian Muresan X-Patchwork-Id: 12342 Received: from moutng.kundenserver.de ([212.227.126.171]) by www.linuxtv.org with esmtp (Exim 4.50) id 1FsTVs-0005J9-IE for vdr@linuxtv.org; Tue, 20 Jun 2006 01:50:36 +0200 Received: from [84.149.15.33] (helo=gugumirx.no-ip.org) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1FsTVg0czt-0006OA; Tue, 20 Jun 2006 01:50:36 +0200 Received: from localhost (localhost [127.0.0.1]) by gugumirx.no-ip.org (Postfix) with ESMTP id EF57A6EF6E for ; Tue, 20 Jun 2006 01:50:23 +0200 (CEST) Received: from gugumirx.no-ip.org ([127.0.0.1]) by localhost (gugumirx.no-ip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03920-03 for ; Tue, 20 Jun 2006 01:50:03 +0200 (CEST) Received: from [192.168.178.80] (blues.gugumirx.no-ip.org [192.168.178.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gugumirx.no-ip.org (Postfix) with ESMTP id 9067B6EC89 for ; Tue, 20 Jun 2006 01:50:03 +0200 (CEST) Message-ID: <4497382A.3040402@users.sourceforge.net> Date: Tue, 20 Jun 2006 01:50:02 +0200 From: Lucian Muresan User-Agent: Thunderbird 1.5.0.4 (X11/20060618) MIME-Version: 1.0 To: VDR Mailing List References: <032301c693ed$72598740$0a00a8c0@InetX.com> In-Reply-To: <032301c693ed$72598740$0a00a8c0@InetX.com> X-Virus-Scanned: amavisd-new at gugumirx.no-ip.org X-Provags-ID: kundenserver.de abuse@kundenserver.de login:bc0772ca0f677a4ff000d75d9f89eb79 Subject: [vdr] Re: pvrinput - NTSC doesn't work? Anyone? X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 23:50:36 -0000 Status: O X-Status: X-Keywords: X-UID: 9857 Hi Simon, Simon Baxter wrote: > Hi. > I can't get the pvrinput plugin to work with NTSC. > > even though my channels.conf has > 4 KOMO;KOMO:67250:I0C0:C:0:301:300:305:A1:996:0:0:0 > > the 'I0' does not seem to select NTSC. I think the picture is being > recorded is at 720x576, 25fps > > if I do a 'vdrsync.pl -i 001.vdr' the video file created reports: 'CCIR/ITU > PAL 625, 4:3, 25 fps' > > if I get mplayer to play the file directly 'mplayer 001.vdr' it reports: > Playing 001.vdr. > MPEG-PES file format detected. > VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 6000.0 kbps (750.0 kbyte/s) > > There's also no audio.? > > Does pvrinput support NTSC??? I think it should, from what I've read in its documentation and sources. The TV norm seems to be only set by the inversion field in the channels.conf entry, so you have to specify your "I0" (take care of the syntax, I don't know if it matters if it's before or after "C0". You should also set "Frames per GOP" in the setup menu or setup.conf entry of the pvrinput plugin to 15 for NTSC (for PAL I think it's 12). And I also think I found a bug by grepping after tv norm and stuff in the source, please also apply attached patch, I think the frame size was always set to 720x576 which can never be NTSC. I also guess you patched your VDR for NTSC, so maybe it just can't playback your pvrinput stream if it's looking like you described, be it live or recorded, as it seems to be PAL... Try these, maybe it helps, but I can't guarantee, as I'm not the author of pvrinput, and I also can't test with NTSC. Lucian diff -Naur pvrinput-0.1.1_orig/device.c pvrinput-0.1.1/device.c --- pvrinput-0.1.1_orig/device.c 2006-06-20 01:14:08.000000000 +0200 +++ pvrinput-0.1.1/device.c 2006-06-20 01:26:09.000000000 +0200 @@ -653,7 +653,17 @@ { SetVideoNorm(lastNorm); SetCodec(); - SetVideoSize(720, 576); + switch (lastNorm) + { + case videoNormNTSC: + SetVideoSize(720, 480); + break; + case videoNormPAL: + case videoNormSECAM: + default: + SetVideoSize(720, 576); + break; + } SetInput(lastInput); SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, PvrSetup.Saturation, PvrSetup.Hue); SetVolume(PvrSetup.AudioVolume);