From patchwork Wed Jun 21 17:50:42 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linux TV X-Patchwork-Id: 12344 Received: from server42.ukservers.net ([217.10.138.242]) by www.linuxtv.org with esmtp (Exim 4.50) id 1Ft6rN-0006K2-OR for vdr@linuxtv.org; Wed, 21 Jun 2006 19:51:25 +0200 Received: from server42.ukservers.net (server42.ukservers.net [10.0.17.242]) by server42.ukservers.net (Postfix smtp) with ESMTP id 688F8A708E for ; Wed, 21 Jun 2006 18:50:42 +0100 (BST) Received: from INSSimonB (unknown [208.46.195.225]) by server42.ukservers.net (Postfix smtp) with SMTP id C8A14A71A7 for ; Wed, 21 Jun 2006 18:50:41 +0100 (BST) Message-ID: <006b01c6955b$37d86950$0a00a8c0@InetX.com> From: "Simon Baxter" To: "VDR Mailing List" References: <032301c693ed$72598740$0a00a8c0@InetX.com> <4497382A.3040402@users.sourceforge.net><004601c69414$6fe0d460$6401010a@InetX.com> <44978BFE.9080709@users.sourceforge.net> Subject: Re: [vdr] Re: pvrinput - NTSC doesn't work - some progress Date: Wed, 21 Jun 2006 10:50:42 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-Virus-Scanned: ClamAV using ClamSMTP 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: Wed, 21 Jun 2006 17:51:25 -0000 Status: O X-Status: X-Keywords: X-UID: 9886 Thankyou for everyone's suggestion - but I'm not trying to play NTSC content, I'm trying to watch/record it via the pvrinput plugin >>> 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... >> >> Patched VDR for NTSC? Nope - I must have missed something?? > > Well, I remember there was a thread even this year in which Klaus was > admitting he should make this configurable after version 1.4 is polished > http://www.linuxtv.org/pipermail/vdr/2006-April/008726.html > The attached patch was sent by C.Y.M. by that time, and looking to it, > it seems it could make a difference, as it hard-codes the frame rate in > recording.h among other things. I just tried if it cleanly applies to > vdr-1.4.1 and it does, so give it a try. No, it's not VDR that seems to be causing the problem. To clarify, this is my setup: -vdr 1.4.0 -Shuttle SK43G PC with s-video output -Unichrome drivers for NTSC tv-out -USA NTSC Television -PVR-150 (NTSC only) -xine plugin VDR works fine. I can use it to watch old (PAL) recordings made in the UK, watch .avi files, play mp3s, play DVDs etc > Yes, and don't forget that "Frames per GOP" setting, maybe that one is > important, too. In the end maybe it starts working with both of these > patches. I set this too, with no affect. I have made one change which seems to have changed the output slightly. I applied the following changes to pvrinput: SetVolume(PvrSetup.AudioVolume); @@ -653,7 +653,7 @@ { SetVideoNorm(lastNorm); SetCodec(); - SetVideoSize(720, 576); + SetVideoSize(720, 480); SetInput(lastInput); SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, PvrSetup.Saturation, PvrSetup.Hue); SetVolume(PvrSetup.AudioVolume); Now the file that's being recorded is: MPEG-PS file format detected. VIDEO: MPEG2 720x480 (aspect 2) 25.000 fps 6000.0 kbps (750.0 kbyte/s) The picture now looks like all the information is there, but the frame-rate is still wrong, and I can't see anywhere in the pvrinput sourcecode to change this. I tried taking the recorded 001.vdr, vdrsync.pl-ing it, and then ffmpeg recoding the mpegv2 file to 30fps, but this just made a mess too. As mentioned before, Freevo records and plays the channels fine - but I don't want to use Freevo, the OSD sucks. I can also stream the video device directly to mplayer 'mplayer /dev/video', which plays fine too. any other ideas?? diff -Naur device.c device.c.SBB --- device.c 2006-06-21 09:46:01.000000000 -0700 +++ device.c.SBB 2006-06-21 08:11:14.000000000 -0700 @@ -504,7 +504,7 @@ readThread = new cPvrReadThread(video_fd, vbi_fd, tsBuffer, &mutex); SetVideoNorm(videoNormPAL); SetCodec(); - SetVideoSize(720, 576); + SetVideoSize(720, 480); SetInput(tunerInput); SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, PvrSetup.Saturation, PvrSetup.Hue);