[Tips]Using the x264vfw External Codec  

[Tips]Using the x264vfw External Codec

Ocam supports external codec (VFW) and how to use the x264 codec.

The x264 codec can be downloaded from the following site.
http://sourceforge.net/projects/x264vfw/

Go to the site and click the download button.


The download starts automatically.


The installation screen is as follows only.


Agree to the terms.

 
Specify the installation path.

 
The installation is complete.

 
Click Done.

 
After installing the codec, you must re-run Ocam to see it in the external codec list.

After re-launching Ocam, click the codec button in the ocam main window and click the external codec menu.

 



Check the box to Use an external codec.

 


Select x264vfw-H264 / MPEG-4 AVC codec from the list.

 

Click on the Settings button to see the detailed settings in the codec.

 
The codec setting window will appear as shown below. Currently, we need to record the screen in real time rather than the normal video encoding, so select Ultrafast in Preset, check the Zero Latency checkbox and set the encoding to be the fastest, and press the OK button.

(This setting method is useful for real time recording and you can set it according to the situation.)

 
If you record like this, the recording is done using x264 codec.

* For game recording, if the game you want to record is 64-bit, you must also install the 64-bit version of x264vfw (by default, unless you touch the option during x264vfw installation), x264vfw-Configure x264vfw64 from the Start menu. Run it and set it up as described above.

* Keep / Accept only YUV 4: 2: 0, Keep / Accept only YUV 4: 2: 2, Keep / Accept only YUV 4: 4: 4 are not supported for x264vfw setting and recording will fail when using this setting.



Additional tips

[HOWTO]How to reduce the size of recorded video files during game recording (For NVIDIA codec)

If you are using NVIDIA NVENC H.264 codec by default, the recorded file may be very large.

 

If you click the codec menu of Ocam, you can check whether you are using the NVENC H.264 codec as follows.

 


 

 

In Ocam's Codec menu, click Hardware Encoder Settings.

 

Then, the following hardware encoder setting window appears, and you can reduce the size of the recorded video file by modifying the part marked with yellow box.

 

First, let's take a look at how to reduce the size of a recorded file using the variable bitrate.

(Rate control should be 1-PASS VBR as shown below.)

 

 


 

 

The quantizer value can be set from 1 to 51.

 

Lower quantizer values ​​result in better image quality; higher quantizer values ​​result in poorer image quality.

 

 

That is, the recording quality is defined by the range from the minimum quantizer to the maximum quantizer value.

 

For example,

If the minimum quantizer value is 1 and the maximum quantizer value is 13, the recording quality is 1 to 13.

If the minimum quantizer value is 1 and the maximum quantizer value is 51, the recording quality is 1 to 51.

If the minimum quantizer value is 13 and the maximum quantizer value is 51, the recording quality is 13 to 51.

 

 

In conclusion, to reduce the size of a movie recording file, the larger the minimum and maximum quantizer values, the lower the recording quality and the smaller the recording file size.

 

 

The quantizer value can be adjusted as follows.

 

To lower the quality and reduce the size of the recorded image while maintaining the maximum recording quality, set the minimum quantizer value to 1 and the maximum quantizer value as large as you want to reduce the quality.

(E.g. minimum quantizer: 1, maximum quantizer 30)

 

To reduce the size of the recorded image by reducing the image quality to the maximum in the middle while maintaining the medium quality, the minimum quantizer is 26 and the maximum quantizer value is 51.

 

 

Note that the minimum quantizer value cannot be greater than the maximum quantizer value.

That is, the minimum quantizer value <= maximum quantizer value.

 

 

Note: If you set the minimum quantizer value to 1 or the maximum quantizer value to 1, the file size of the recorded video will be huge.

The default minimum quantizer value is 1, the maximum quantizer value is 13, and it is recommended to set it within the following range.

Minimum quantizer> = 1 and maximum quantizer value> = 13

 

 

 

Here's how to reduce the size of a recorded video file using a fixed bitrate.

 

Just change the rate control to 1-PASS CBR as shown and set the average bitrate.

 


 

 

 

The larger the average bitrate size, the higher the image quality, and the smaller the size, the lower the image quality and the smaller the recorded file size.

 

 

 

Finally, using fixed quantizer parameters.

 

Set the rate control to 1-PASS fixed quantizer parameter as shown below.

 


 

 

There is no concept of minimum quantizer and maximum quantizer in VBR, and the quantizer will set the quality to a fixed value.

Statistics Elements


Back to top