Partial NTSC fix for Video Capture based on SAA7130/34
In /usr/src/linux-`uname -r`/drivers/media/video/saa7134 locate saa7134-vbi.c. Change the line that reads:
Code:
#define VBI_SCALE 0x200 Code:
#define VBI_SCALE 0x1e0 Here comes the hard part. While in this directory also find saa7134-video.c. Look for the line that reads Code:
#define NORM_525_60 Code:
.h_start = 0, \ To just compile the saa7134 module. First in /usr/src/linux-`uname -r` make an .config that has only CONFIG_VIDEO_SAA7134=m In directory /usr/src/linux-`uname -r`/drivers/media/video/saa7134 run the commands below as root modprobe -r videodev tuner saa7134 make -C /usr/src/linux-`uname -r` M=$PWD clean make -C /usr/src/linux-`uname -r` M=$PWD modules make -C /usr/src/linux-`uname -r` M=$PWD modules_install depmod modprobe saa7134 You may need to change the path that points your kernel directory. Use ntsc-cc to look up closed captions. The utility ntsc-cc is part of the zapping project. Have fun!!! |
I forgot to mention these changes fixes VBI (closed captions and XDS) for saa7130/34 that is receiving NTSC. However, either the code that samples VBI or the code that process VBI takes a long time so programs like tvtime stutters, but ntsc-cc works well with some letters being left out.
What I do not understand is why this has not been fix for over two years but it only took me a few days to fix. |
Corrections:
Change
Code:
.video_v_start = 22, \ Code:
.video_v_start = 23, \ Now, I need to attempt the stutter problem when VBI is decoded during capturing. Any suggestions. |
If anybody is running kernel version 2.6.13 and can not get VBI working even though the changelog said that NTSC VBI is fixed, the above steps does work.
It still does not do real-time VBI processing so it will freeze the preview frame. Both closed-captions and XDS (Extended Data Service) work which are part of VBI. |
All times are GMT -5. The time now is 06:48 PM. |