LinHES Forums http://forum.linhes.org/ |
|
nvtv and gf2/mx400 http://forum.linhes.org/viewtopic.php?f=6&t=10041 |
Page 1 of 1 |
Author: | raleel [ Sun May 14, 2006 9:11 pm ] |
Post subject: | nvtv and gf2/mx400 |
First off, everything else appears to be working fine. I can record tv, rip cds, etc. TV card is a Hauppauge 500. Video card w/ tv out is a gf2/mx400. After learning about nvtv to get rid of the black bars on the side, I used: nvtv -r 800,600 -s Normal -t -S NTSC -o 2,0 --set TVhoffset:-3 to get it to fill the screen. That mostly worked. On the left side of the screen, it appears as though every other line is started too far in. I am guessing that this is an overscan problem. nvtv says my modes are 800x600 Small/Normal/Huge (as well as 640x480, etc), and with Small, it looks correct, except for the black bars. I attempted -o for overscan, but it did appear to do anything with any value (-1<=x<=1) that I put in. I tried a few other settings (Flicker, Macrovision, Non-Interlaced) in a vain hope that I would stumble into the right setting, but no luck. Am I wrong in thinking this is an overscan issue? Am I wrong in thinking that nvtv can handle a mx400? This is running R5B7. |
Author: | Greg Frost [ Sun May 14, 2006 9:23 pm ] |
Post subject: | |
http://knoppmythwiki.org/index.php?page=TVOverScanHowto I wrote that how to. I have since bought an fx5200 and I am much happier with the quality. |
Author: | raleel [ Mon May 15, 2006 6:54 am ] |
Post subject: | |
thank you for the pointer to the how to, but I actually did read that. It was useful. However, it doesn't help that the -o option appears not to work with my mx400 ![]() All, I can guess you are saying is that I should compile nvtv with the gui and use it to compute the modelines. However, I am no where certain of that from your reply. I should also note that I cannot find your patch on this by clinking on the attachments |
Author: | Greg Frost [ Mon May 15, 2006 5:26 pm ] |
Post subject: | |
Back whne I did it, the -o option did not work from the command line. I think it was in the TODO list for nvtv. That is why all the instructions for using the gui to determine your ideal settings and then modifying the source so that you can select them from the command line. The patch was lost (along with the other attachements) when the wiki was moved recently. I am at work at the moment, so don't have it available, but I could post it again if you like when I get home. |
Author: | Greg Frost [ Tue May 16, 2006 5:25 am ] |
Post subject: | |
Code: diff -ru nvtv-0.4.7-clean/src/data_bt.c nvtv-0.4.7-patched/src/data_bt.c
--- nvtv-0.4.7-clean/src/data_bt.c 2003-06-11 16:06:21.000000000 +0000 +++ nvtv-0.4.7-patched/src/data_bt.c 2005-06-30 11:39:52.000000000 +0000 @@ -512,6 +512,37 @@ flags1 : BT_FLAG1_PAL_BDGHI, }; +TVBtRegs bt_pal_medium_b = { /* 09.834 06.944 */ + hsynoffset : 0, + vsynoffset : 0, + hsynwidth : 2, + vsynwidth : 1, + h_active : 800, + h_blanki : 153, + h_clki : 975, + h_fract : 0, + h_blanko : 457, + h_clko : 2184, + v_activei : 600, + v_blanki : 69, + v_linesi : 700, + v_activeo : 270, + v_blanko : 32, + v_scale : 5079, + pll_fract : 10923, + pll_int : 15, + sync_amp : 240, + bst_amp : 87, + hsync_width : 160, + hburst_begin : 192, + hburst_end : 140, + mcr : 128, + mcb : 72, + my : 140, + msc : 558014580, + flags1 : BT_FLAG1_PAL_BDGHI, +}; + TVBtRegs bt_pal_normal_b = { /* over comp 10.81 05.56 % */ hsynoffset : 0, vsynoffset : 0, @@ -640,6 +671,37 @@ flags1 : BT_FLAG1_PAL_BDGHI, }; +TVBtRegs bt_pal_medium_c = { /* hoc = 10.234 voc = 07.292 */ + hsynoffset : 0, + vsynoffset : 0, + hsynwidth : 2, + vsynwidth : 1, + h_clko : 2106, + h_active : 768, + hsync_width : 154, + hburst_begin : 184, + hburst_end : 130, + h_blanko : 445, + v_blanko : 33, + v_activeo : 269, + h_fract : 0, + h_clki : 975, + h_blanki : 181, + v_linesi : 675, + v_blanki : 69, + v_activei : 576, + v_scale : 4751, + pll_fract : 40960, + pll_int : 14, + sync_amp : 240, + bst_amp : 87, + mcr : 128, + mcb : 72, + my : 140, + msc : 578681786, + flags1 : BT_FLAG1_PAL_BDGHI, +}; + TVBtRegs bt_pal_normal_c = { /* hoc = 09.806 voc = 04.514 */ hsynoffset : 0, vsynoffset : 0, @@ -737,6 +799,37 @@ /* 800 x 576 (for 1024x576 widescreen scaled by xine) */ +TVBtRegs bt_pal_medium_d = { /* hoc = 10.163 cov = 08.681 */ + hsynoffset : 0, + vsynoffset : 0, + hsynwidth : 2, + vsynwidth : 1, + h_clko : 2192, + h_active : 800, + hsync_width : 160, + hburst_begin : 192, + hburst_end : 140, + h_blanko : 461, + v_blanko : 35, + v_activeo : 265, + h_fract : 0, + h_clki : 1000, + h_blanki : 175, + v_linesi : 685, + v_blanki : 74, + v_activei : 576, + v_scale : 4882, + pll_fract : 14564, + pll_int : 15, + sync_amp : 240, + bst_amp : 87, + mcr : 128, + mcb : 72, + my : 140, + msc : 555978030, + flags1 : BT_FLAG1_PAL_BDGHI, +}; + TVBtRegs bt_pal_normal_d = { /* hoc = 08.83 voc = 07.29 */ hsynoffset : 0, vsynoffset : 0, diff -ru nvtv-0.4.7-clean/src/data_bt.h nvtv-0.4.7-patched/src/data_bt.h --- nvtv-0.4.7-clean/src/data_bt.h 2003-05-13 21:44:32.000000000 +0000 +++ nvtv-0.4.7-patched/src/data_bt.h 2005-06-30 11:34:00.000000000 +0000 @@ -56,12 +56,15 @@ extern TVBtRegs bt_pal_normal_a; /* 12.87 x 07.64 */ extern TVBtRegs bt_pal_huge_a; /* 06.22 x 00.69 */ extern TVBtRegs bt_pal_small_b; /* 14.53 x 13.19 (std 3) */ +extern TVBtRegs bt_pal_medium_b; /* 09.834 x 06.944 */ extern TVBtRegs bt_pal_normal_b; /* 10.81 x 05.56 */ extern TVBtRegs bt_pal_large_b; /* 07.461 x 02.083 */ extern TVBtRegs bt_pal_huge_b; /* 00.039 x 00.00 (direct) */ extern TVBtRegs bt_pal_small_c; /* 13.122 x 07.986 */ +extern TVBtRegs bt_pal_medium_c; /* 10.234 x 07.292 */ extern TVBtRegs bt_pal_normal_c; /* 09.806 x 04.514 */ extern TVBtRegs bt_pal_huge_c; /* 00.000 x 00.000 */ +extern TVBtRegs bt_pal_medium_d; /* 10.163 x 08.681 */ extern TVBtRegs bt_pal_normal_d; /* 08.83 x 07.29 */ extern TVBtRegs bt_pal_dvd_a; /* 00.21 x 00.00 */ diff -ru nvtv-0.4.7-clean/src/data_nv.c nvtv-0.4.7-patched/src/data_nv.c --- nvtv-0.4.7-clean/src/data_nv.c 2004-01-30 08:47:02.000000000 +0000 +++ nvtv-0.4.7-patched/src/data_nv.c 2005-06-30 11:32:17.000000000 +0000 @@ -232,6 +232,19 @@ clock : 0, }; +TVNvRegs nv_bt_pal_medium_b = { + HDisplay : 800, + HSyncStart : 856, + HSyncEnd : 880, + HTotal : 960, + VDisplay : 600, + VSyncStart : 630, + VSyncEnd : 633, + VTotal : 700, + flags : 0, + clock : 0, +}; + TVNvRegs nv_bt_pal_normal_b = { HDisplay : 800, HSyncStart : 840-8, @@ -286,6 +299,19 @@ clock : 0, }; +TVNvRegs nv_bt_pal_medium_c = { + HDisplay : 768, + HSyncStart : 832, + HSyncEnd : 856, + HTotal : 968, + VDisplay : 576, + VSyncStart : 606, + VSyncEnd : 608, + VTotal : 675, + flags : 0, + clock : 0, +}; + TVNvRegs nv_bt_pal_normal_c = { HDisplay : 768, HSyncStart : 824-8, @@ -329,6 +355,19 @@ /* 800 x 576 (for 1024x576 widescreen scaled by xine) */ +TVNvRegs nv_bt_pal_medium_d = { + HDisplay : 800, + HSyncStart : 864, + HSyncEnd : 896, + HTotal : 1000, + VDisplay : 576, + VSyncStart : 611, + VSyncEnd : 613, + VTotal : 685, + flags : 0, + clock : 0, +}; + TVNvRegs nv_bt_pal_normal_d = { HDisplay : 800, HSyncStart : 840-8, @@ -598,6 +637,9 @@ {{TV_SYSTEM_PAL, 800, 600, "Small", "4:3", 14.53, 13.19}, &nv_bt_pal_small_b, &bt_pal_small_b, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, + {{TV_SYSTEM_PAL, 800, 600, "Medium", "4:3", 09.834, 06.944}, + &nv_bt_pal_medium_b, &bt_pal_medium_b, 0, + PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, {{TV_SYSTEM_PAL, 800, 600, "Normal", "4:3", 10.81, 05.56}, &nv_bt_pal_normal_b, &bt_pal_normal_b, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, @@ -611,6 +653,9 @@ {{TV_SYSTEM_PAL, 768, 576, "Small", "4:3", 13.122, 07.986}, &nv_bt_pal_small_c, &bt_pal_small_c, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, + {{TV_SYSTEM_PAL, 768, 576, "Medium", "4:3", 10.234, 07.292}, + &nv_bt_pal_medium_c, &bt_pal_medium_c, 0, + PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, {{TV_SYSTEM_PAL, 768, 576, "Normal", "4:3", 09.806, 04.514}, &nv_bt_pal_normal_c, &bt_pal_normal_c, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, @@ -618,6 +663,9 @@ &nv_bt_pal_huge_c, &bt_pal_huge_c, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, + {{TV_SYSTEM_PAL, 800, 576, "Medium", "???", 10.163, 08.681}, + &nv_bt_pal_medium_d, &bt_pal_medium_d, 0, + PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, {{TV_SYSTEM_PAL, 800, 576, "Normal", "???", 08.83, 07.29}, &nv_bt_pal_normal_d, &bt_pal_normal_d, 0, PORT_NVIDIA, PORT_NVIDIA, TV_DEF_BT_DUAL}, diff -ru nvtv-0.4.7-clean/src/nvtv.c nvtv-0.4.7-patched/src/nvtv.c --- nvtv-0.4.7-clean/src/nvtv.c 2004-04-20 14:55:17.000000000 +0000 +++ nvtv-0.4.7-patched/src/nvtv.c 2005-06-21 19:21:46.000000000 +0000 @@ -159,6 +159,8 @@ #define SET_FIELD(f) addr:&opt_set.f static OptIntDecl opt_set_list [] = { + {"TVhoffset", min:-100, max:100, SET_FIELD(tv_hoffset)}, + {"TVvoffset", min:-100, max:100, SET_FIELD(tv_voffset)}, {"Contrast", min:-100, max:100, SET_FIELD(contrast)}, {"Saturation", min:-100, max:100, SET_FIELD(saturation)}, {"Brightness#", min: -50, max: 50, SET_FIELD(brightness_sig)}, |
Author: | raleel [ Tue May 23, 2006 5:40 pm ] |
Post subject: | thanks |
thank you for the patch information It appears that will not work in my case, as my tv is NTSC and not PAL. while your patch does give me a host of new modes in PAL, I am still unable to change it in NTSC. I did manage to get the gui version compiled (just add libgtk1.2-dev) and have been dinking around with it. I can distort my video all over, but still no overscan for this particular TV. Interestingly, I see no option for my resolution in the gui. at this point, I may be wrong here, but I think I'm going to need to mod the nvtv code to put in the other modes for NTSC. I'm guessing that is what your patch has done. Either that or I should get a better card ![]() --what modes I'm offered--- root@mythtv:~# nvtv -l Modes for Brooktree BT869 Rev 2 (1:8A) on GeForce2 MX (01:00.00) NTSC 640, 480 Small 13.79,13.58 4:3 NTSC 640, 480 Normal 10.59,08.23 4:3 NTSC 640, 480 Huge 02.46,01.23 4:3 NTSC 800, 600 Small 21.62,11.52 4:3 NTSC 800, 600 Normal 11.90,05.35 4:3 NTSC 800, 600 Huge 07.15,00.00 4:3 NTSC 720, 480 Normal 08.76,18.11 DVD NTSC 720, 480 DVD 01.25,01.24 DVD PAL 640, 480 Small 16.56,16.67 4:3 PAL 640, 480 Normal 12.87,07.64 4:3 --[/i] |
Author: | Gatorfreak [ Fri May 26, 2006 2:44 pm ] |
Post subject: | |
I have the gf2/mx400 and have the exact same problem. Any progress? I used the "nvtv -r 800,600 ...." that you used and it filled my screen but the picture quality suffered and there is a 1" black bar down the left side of the screen about 2" in from the side. I'm a linux n00b so I haven't a clue what to do. Hoping you figure it out. ![]() |
Author: | raleel [ Thu Jun 15, 2006 3:25 pm ] |
Post subject: | |
nope, i think i need something in between the settings offered. Probably not going to look at this for a while, since the box was for someone else, and he cares less than I do ![]() |
Author: | turpie [ Thu Jul 13, 2006 8:10 pm ] |
Post subject: | |
I am having some trouble applying this patch to nvtv. On a freshly downloaded copy of nvtv-0.4.7 I get the following errors. Code: [root@localhost nvtv-0.4.7]# patch -p1 -b < ~/patch-nvtv-0.4.7-extra-overscans.diff
patching file src/data_bt.c patching file src/data_bt.h patching file src/data_nv.c Hunk #2 FAILED at 299. Hunk #3 FAILED at 355. Hunk #4 succeeded at 637 with fuzz 2. Hunk #5 succeeded at 653 with fuzz 2. Hunk #6 succeeded at 663 with fuzz 2. 2 out of 6 hunks FAILED -- saving rejects to file src/data_nv.c.rej patching file src/nvtv.c Hunk #1 succeeded at 159 with fuzz 1. I created the diff file by pasting Greg's above patch into vi. Does anyone know what's going wrong? |
Author: | Greg Frost [ Wed Jul 26, 2006 6:25 pm ] |
Post subject: | |
I just tried again, and got this: Code: root@mythtv:/usr/src# tar xfz /mnt/r5/nvtv-0.4.7.tar.gz So I dont know what your problem is. I'd be happy to send you the nvtv tarball and patch file you use if you send me a pm with your email address.
root@mythtv:/usr/src# cd nvtv-0.4.7/ root@mythtv:/usr/src/nvtv-0.4.7# patch -p1 < /mnt/r5/patch-nvtv-0.4.7-extra-overscans.diff patching file src/data_bt.c patching file src/data_bt.h patching file src/data_nv.c patching file src/nvtv.c root@mythtv:/usr/src/nvtv-0.4.7# |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |