From patchwork Wed Jun 21 19:16:49 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linux TV X-Patchwork-Id: 12345 Received: from server42.ukservers.net ([217.10.138.242]) by www.linuxtv.org with esmtp (Exim 4.50) id 1Ft8CX-0002BQ-DJ for vdr@linuxtv.org; Wed, 21 Jun 2006 21:17:21 +0200 Received: from server42.ukservers.net (server42.ukservers.net [10.0.17.242]) by server42.ukservers.net (Postfix smtp) with ESMTP id 06EA8A70B4 for ; Wed, 21 Jun 2006 20:16:49 +0100 (BST) Received: from INSSimonB (unknown [208.46.195.225]) by server42.ukservers.net (Postfix smtp) with SMTP id 666F3A7080 for ; Wed, 21 Jun 2006 20:16:48 +0100 (BST) Message-ID: <007d01c69567$3f6128e0$0a00a8c0@InetX.com> From: "Simon Baxter" To: "VDR Mailing List" References: <032301c693ed$72598740$0a00a8c0@InetX.com><44978BFE.9080709@users.sourceforge.net><006b01c6955b$37d86950$0a00a8c0@InetX.com> <200606212053.53689.jareguero@telefonica.net> Subject: Re: [vdr] Re: pvrinput - NTSC doesn't work - SUCCESS! Date: Wed, 21 Jun 2006 12:16:49 -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 19:17:21 -0000 Status: O X-Status: X-Keywords: X-UID: 9888 Thanks - it works a treat now. diff -Naur device.c.org device.c.patched PvrSetup.Saturation, PvrSetup.Hue); 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); ----- Original Message ----- From: "Jose Alberto Reguero" To: "VDR Mailing List" Sent: Wednesday, June 21, 2006 11:53 AM Subject: Re: [vdr] Re: pvrinput - NTSC doesn't work - some progress El Miércoles, 21 de Junio de 2006 19:50, Simon Baxter escribió: > 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: > 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); The norm (PAL,NTSC,..) is setting in: SetVideoNorm() You can try changing: SetVideoNorm(videoNormPAL); to SetVideoNorm(videoNormNTSC) Jose Alberto > SetCodec(); > - SetVideoSize(720, 576); > + SetVideoSize(720, 480); > SetInput(tunerInput); > SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, > PvrSetup.Saturation, PvrSetup.Hue); > 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?? > > --- device.c.org 2006-06-21 12:08:56.000000000 -0700 +++ device.c.patched 2006-06-21 12:00:13.000000000 -0700 @@ -502,9 +502,9 @@ tsBuffer = new cRingBufferLinear(MEGABYTE(3), TS_SIZE, false, "PVRTS"); tsBuffer->SetTimeouts(100, 100); readThread = new cPvrReadThread(video_fd, vbi_fd, tsBuffer, &mutex); - SetVideoNorm(videoNormPAL); + SetVideoNorm(videoNormNTSC); SetCodec(); - SetVideoSize(720, 576); + SetVideoSize(720, 480); SetInput(tunerInput); SetPicture(PvrSetup.Brightness, PvrSetup.Contrast,