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'm happy to email a 5meg .vdr to someone to look at and diagnose for me???????
Hi Simon,
Simon Baxter wrote:
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
Patched VDR for NTSC? Nope - I must have missed something??
I had been using VDR in the UK for several years before moving to NTSC land. The PAL recordings I made there do play back ok - just the new stuff recorded with pvrinput fails...
Thanks, I'll have a play with the provided patch.
Simon
Simon Baxter wrote:
Hi Simon,
[...]
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.
Your old PAL recordings may no longer play OK after this patch, but I think it's worth a try, just to narrow down the problem.
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.
Cheers, Lucian
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
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
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); 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??
Thanks - it works a treat now.
diff -Naur device.c.org device.c.patched --- 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, 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" jareguero@telefonica.net To: "VDR Mailing List" vdr@linuxtv.org 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ó:
The norm (PAL,NTSC,..) is setting in:
SetVideoNorm()
You can try changing:
SetVideoNorm(videoNormPAL); to SetVideoNorm(videoNormNTSC)
Jose Alberto
_______________________________________________ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
umm, kinda.
Since I was talking to you a few weeks ago I bought a PVR-150 pci card. This isn't working with my Wintv-USB...
----- Original Message ----- From: "Mlists" mlists@dressler.ca To: "VDR Mailing List" vdr@linuxtv.org Sent: Wednesday, June 21, 2006 12:32 PM Subject: Re: [vdr] Re: pvrinput - NTSC doesn't work - SUCCESS!
Wow, so you got this working now? I might just have to try it again! :)
On Wed, 2006-06-21 at 12:16 -0700, Simon Baxter wrote:
--------------------------------------------------------------------------------