This is a creation in Article, where the information may have evolved or changed.
This project for the lab is doing the video project, because just started to do, rookie one, first record the configuration process.
Environment: Win7 64 bits (XP at the end of the corresponding supplement);
1. Configure Yasm
To http://yasm.tortall.net/Download.html download Win64 VS2010. zip, then unzip, There is a Readme.txt, Vsyasm.exe renamed to Yasm.exe, if VS2010 is installed by default on the C drive, then the configuration in Readme.txt. My VS2010 is installed on the D drive, so I need to make some changes. First, rename Vsyasm.exe to Yasm.exe, and then put the other three files: Vsyasm.props,vsyasm.targets and vsyasm.xml to the \ C in D:\Software\VS2010\VC\bin Program Files (x86) \msbuild\microsoft.cpp\v4.0\buildcustomizations under, do not change the name.
2. Build the libx264 project, in the project's working directory bin directory will generate a libx264d.lib file, copy it to go working directory;
3. Under the working directory of Go, rename the copied libx264d.lib to Libx264enc.lib;
4. In VS2010 open the project go inside the source Files, find VIDEOCAP.CPP inside the init function, will try{}catch inside the
if (!capdriverconnect (M_capwnd, 0))
{
This->clear ();
return E_FAIL;
}
Change to while (!capdriverconnect (M_capwnd, 0)) {continue;}
If the XP system does not have to make this modification, the Win7 is captured only once when the camera is captured, so the screen is not displayed when it is not captured.
5. Compile and build go to run. In the C:\go directory, a 200.264 video file is generated, which is the file encoded with x264.
Attach the configuration procedure under WinXP:
1. Configure Yasm. Yasm with others to yasm.rar inside, only need to add Yasm.exe and yasm.rules. See https://github.com/yasm/yasm/wiki/VisualStudio2005 for specific methods of adding
2. If Libx264enc.lib is already in the Go folder, you do not need to recompile the build again.
3. Compile and build go.
In addition, the configuration needs to include the FFmpeg and Librtmp Library, in Myx264.h, add
#if _msc_ver < 1600
。。。。。。
#endif;: