You need hardware and software.
The hardware is an analog to digital converter.
These sometimes come with the necessary software.
Here is a link to a site that explains the process in detail:
You can also do a Google search for:
VCR to AVI
That will give you hundreds of sources for hardware and software.
How do I save footage captured on a video-cassette recorder to my PC in avi format?