<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.10.0">
</HEAD>
<BODY>
Wow, so you got this working now? I might just have to try it again! :)<BR>
<BR>
On Wed, 2006-06-21 at 12:16 -0700, Simon Baxter wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Thanks - it works a treat now.</FONT>
<FONT COLOR="#000000"> diff -Naur device.c.org device.c.patched</FONT>
<FONT COLOR="#000000">--- device.c.org 2006-06-21 12:08:56.000000000 -0700</FONT>
<FONT COLOR="#000000">+++ device.c.patched 2006-06-21 12:00:13.000000000 -0700</FONT>
<FONT COLOR="#000000">@@ -502,9 +502,9 @@</FONT>
<FONT COLOR="#000000"> tsBuffer = new cRingBufferLinear(MEGABYTE(3), TS_SIZE, false, </FONT>
<FONT COLOR="#000000">"PVRTS");</FONT>
<FONT COLOR="#000000"> tsBuffer->SetTimeouts(100, 100);</FONT>
<FONT COLOR="#000000"> readThread = new cPvrReadThread(video_fd, vbi_fd, tsBuffer, &mutex);</FONT>
<FONT COLOR="#000000">- SetVideoNorm(videoNormPAL);</FONT>
<FONT COLOR="#000000">+ SetVideoNorm(videoNormNTSC);</FONT>
<FONT COLOR="#000000"> SetCodec();</FONT>
<FONT COLOR="#000000">- SetVideoSize(720, 576);</FONT>
<FONT COLOR="#000000">+ SetVideoSize(720, 480);</FONT>
<FONT COLOR="#000000"> SetInput(tunerInput);</FONT>
<FONT COLOR="#000000"> SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, </FONT>
<FONT COLOR="#000000">PvrSetup.Saturation, PvrSetup.Hue);</FONT>
<FONT COLOR="#000000"> SetVolume(PvrSetup.AudioVolume);</FONT>
<FONT COLOR="#000000">@@ -653,7 +653,7 @@</FONT>
<FONT COLOR="#000000"> {</FONT>
<FONT COLOR="#000000"> SetVideoNorm(lastNorm);</FONT>
<FONT COLOR="#000000"> SetCodec();</FONT>
<FONT COLOR="#000000">- SetVideoSize(720, 576);</FONT>
<FONT COLOR="#000000">+ SetVideoSize(720, 480);</FONT>
<FONT COLOR="#000000"> SetInput(lastInput);</FONT>
<FONT COLOR="#000000"> SetPicture(PvrSetup.Brightness, PvrSetup.Contrast, </FONT>
<FONT COLOR="#000000">PvrSetup.Saturation, PvrSetup.Hue);</FONT>
<FONT COLOR="#000000"> SetVolume(PvrSetup.AudioVolume);</FONT>
<FONT COLOR="#000000">----- Original Message ----- </FONT>
<FONT COLOR="#000000">From: "Jose Alberto Reguero" <<A HREF="mailto:jareguero@telefonica.net">jareguero@telefonica.net</A>></FONT>
<FONT COLOR="#000000">To: "VDR Mailing List" <<A HREF="mailto:vdr@linuxtv.org">vdr@linuxtv.org</A>></FONT>
<FONT COLOR="#000000">Sent: Wednesday, June 21, 2006 11:53 AM</FONT>
<FONT COLOR="#000000">Subject: Re: [vdr] Re: pvrinput - NTSC doesn't work - some progress</FONT>
<FONT COLOR="#000000">El Miércoles, 21 de Junio de 2006 19:50, Simon Baxter escribió:</FONT>
<FONT COLOR="#000000">> Thankyou for everyone's suggestion - but I'm not trying to play NTSC</FONT>
<FONT COLOR="#000000">> content, I'm trying to watch/record it via the pvrinput plugin</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> >>> I also guess you patched your VDR for NTSC, so maybe it just can't</FONT>
<FONT COLOR="#000000">> >>> playback your pvrinput stream if it's looking like you described, be </FONT>
<FONT COLOR="#000000">> >>> it</FONT>
<FONT COLOR="#000000">> >>> live or recorded, as it seems to be PAL...</FONT>
<FONT COLOR="#000000">> >></FONT>
<FONT COLOR="#000000">> >> Patched VDR for NTSC? Nope - I must have missed something??</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > Well, I remember there was a thread even this year in which Klaus was</FONT>
<FONT COLOR="#000000">> > admitting he should make this configurable after version 1.4 is polished</FONT>
<FONT COLOR="#000000">> > <A HREF="http://www.linuxtv.org/pipermail/vdr/2006-April/008726.html">http://www.linuxtv.org/pipermail/vdr/2006-April/008726.html</A></FONT>
<FONT COLOR="#000000">> > The attached patch was sent by C.Y.M. by that time, and looking to it,</FONT>
<FONT COLOR="#000000">> > it seems it could make a difference, as it hard-codes the frame rate in</FONT>
<FONT COLOR="#000000">> > recording.h among other things. I just tried if it cleanly applies to</FONT>
<FONT COLOR="#000000">> > vdr-1.4.1 and it does, so give it a try.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> No, it's not VDR that seems to be causing the problem. To clarify, this </FONT>
<FONT COLOR="#000000">> is</FONT>
<FONT COLOR="#000000">> my setup:</FONT>
<FONT COLOR="#000000">> -vdr 1.4.0</FONT>
<FONT COLOR="#000000">> -Shuttle SK43G PC with s-video output</FONT>
<FONT COLOR="#000000">> -Unichrome drivers for NTSC tv-out</FONT>
<FONT COLOR="#000000">> -USA NTSC Television</FONT>
<FONT COLOR="#000000">> -PVR-150 (NTSC only)</FONT>
<FONT COLOR="#000000">> -xine plugin</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> VDR works fine. I can use it to watch old (PAL) recordings made in the </FONT>
<FONT COLOR="#000000">> UK,</FONT>
<FONT COLOR="#000000">> watch .avi files, play mp3s, play DVDs etc</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> > Yes, and don't forget that "Frames per GOP" setting, maybe that one is</FONT>
<FONT COLOR="#000000">> > important, too. In the end maybe it starts working with both of these</FONT>
<FONT COLOR="#000000">> > patches.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I set this too, with no affect.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I have made one change which seems to have changed the output slightly. I</FONT>
<FONT COLOR="#000000">> applied the following changes to pvrinput:</FONT>
<FONT COLOR="#000000">> diff -Naur device.c device.c.SBB</FONT>
<FONT COLOR="#000000">> --- device.c 2006-06-21 09:46:01.000000000 -0700</FONT>
<FONT COLOR="#000000">> +++ device.c.SBB 2006-06-21 08:11:14.000000000 -0700</FONT>
<FONT COLOR="#000000">> @@ -504,7 +504,7 @@</FONT>
<FONT COLOR="#000000">> readThread = new cPvrReadThread(video_fd, vbi_fd, tsBuffer,</FONT>
<FONT COLOR="#000000">> &mutex); SetVideoNorm(videoNormPAL);</FONT>
<FONT COLOR="#000000">The norm (PAL,NTSC,..) is setting in:</FONT>
<FONT COLOR="#000000">SetVideoNorm()</FONT>
<FONT COLOR="#000000">You can try changing:</FONT>
<FONT COLOR="#000000">SetVideoNorm(videoNormPAL);</FONT>
<FONT COLOR="#000000">to</FONT>
<FONT COLOR="#000000">SetVideoNorm(videoNormNTSC)</FONT>
<FONT COLOR="#000000">Jose Alberto</FONT>
<FONT COLOR="#000000">> SetCodec();</FONT>
<FONT COLOR="#000000">> - SetVideoSize(720, 576);</FONT>
<FONT COLOR="#000000">> + SetVideoSize(720, 480);</FONT>
<FONT COLOR="#000000">> SetInput(tunerInput);</FONT>
<FONT COLOR="#000000">> SetPicture(PvrSetup.Brightness, PvrSetup.Contrast,</FONT>
<FONT COLOR="#000000">> PvrSetup.Saturation, PvrSetup.Hue);</FONT>
<FONT COLOR="#000000">> SetVolume(PvrSetup.AudioVolume);</FONT>
<FONT COLOR="#000000">> @@ -653,7 +653,7 @@</FONT>
<FONT COLOR="#000000">> {</FONT>
<FONT COLOR="#000000">> SetVideoNorm(lastNorm);</FONT>
<FONT COLOR="#000000">> SetCodec();</FONT>
<FONT COLOR="#000000">> - SetVideoSize(720, 576);</FONT>
<FONT COLOR="#000000">> + SetVideoSize(720, 480);</FONT>
<FONT COLOR="#000000">> SetInput(lastInput);</FONT>
<FONT COLOR="#000000">> SetPicture(PvrSetup.Brightness, PvrSetup.Contrast,</FONT>
<FONT COLOR="#000000">> PvrSetup.Saturation, PvrSetup.Hue);</FONT>
<FONT COLOR="#000000">> SetVolume(PvrSetup.AudioVolume);</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Now the file that's being recorded is:</FONT>
<FONT COLOR="#000000">> MPEG-PS file format detected.</FONT>
<FONT COLOR="#000000">> VIDEO: MPEG2 720x480 (aspect 2) 25.000 fps 6000.0 kbps (750.0 </FONT>
<FONT COLOR="#000000">> kbyte/s)</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> The picture now looks like all the information is there, but the </FONT>
<FONT COLOR="#000000">> frame-rate</FONT>
<FONT COLOR="#000000">> is still wrong, and I can't see anywhere in the pvrinput sourcecode to</FONT>
<FONT COLOR="#000000">> change this.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I tried taking the recorded 001.vdr, vdrsync.pl-ing it, and then ffmpeg</FONT>
<FONT COLOR="#000000">> recoding the mpegv2 file to 30fps, but this just made a mess too.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> As mentioned before, Freevo records and plays the channels fine - but I</FONT>
<FONT COLOR="#000000">> don't want to use Freevo, the OSD sucks. I can also stream the video</FONT>
<FONT COLOR="#000000">> device directly to mplayer 'mplayer /dev/video', which plays fine too.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> any other ideas??</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">vdr mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:vdr@linuxtv.org">vdr@linuxtv.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr">http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr</A> </FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">vdr mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:vdr@linuxtv.org">vdr@linuxtv.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr">http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>