How to Record Losslessly Using x264vfw

Using oCam at work or school? A license is required, and it removes all ads, including this window. See the paid version →

Before getting started, you must install the x264 codec in advance. If you do not know how to install it, please refer to the Help section.


Click the Codec menu in oCam, then click the External Codec menu item.

Select Use External Codec, choose the x264vfw codec, and then click the Settings button.


Using the default x264vfw settings as a base, change the parts highlighted in the yellow box in the image below as shown.



 


The following settings need to be changed. 


Preset - Ultrafast ( Set this to improve encoding speed. The file size may become larger, but if you choose other options, significant lag may occur. )

Profile - High 4:4:4 ( The default profile may cause quality loss, so change it to High 4:4:4 for lossless encoding. )

Keep input colorspace - Keeps the color space of the internally received input buffer.  ( If you use other options, encoding may fail. )

Rate control - Single pass - lossless - Change this for lossless encoding.


Click the OK button to apply the settings.


When recording 64-bit games, the settings are applied to x264vfw64 for 64-bit, so run x264vfw - Configure x264vfw64 from the Start menu and configure it in the same way as shown above.


If you record with the above settings, the video will be recorded losslessly. One important point is that if you want to play back the lossless video without quality loss, you must change the settings in your video player.


Below is how to check a lossless video using PotPlayer.

Run PotPlayer, then click Preferences ( F5 ).


In the Preferences window, 


click Video - Color Space/Attributes on the left, then in the Color Space group box on the right, select Convert manually if possible - Default output color space. ( If you do not configure this, even if the recording is lossless, the screen colors may still be altered during playback. )


Click OK, then play the video recorded losslessly.


At this point, press Ctrl + F1 in PotPlayer. As shown below, the output format of the video codec must be displayed as RGB(32 Bits).


Also, in the playback information under the File Information tab, the following properties must match as shown below.


Format profile                 : High 4:4:4 Predictive@L3

Color space                    : RGB

Color range                    : Full

Matrix coefficients            : RGB


Please note that Windows Media Player does not play this properly, and preview thumbnails will not be displayed in Windows Explorer.

Another helpful tip

oCam Advanced Settings - Sound

 


oCam is user-friendly software that not only supports screen recording but also allows you to fine-tune sound recording settings, helping you achieve optimized recording for a wide range of audio input environments. In the settings window that appears when you click the "Tools - Options" menu, selecting the "Sound" category on the left lets you check and adjust microphone-related settings. This tab is especially useful for users who need to solve microphone input issues or apply specific audio settings. Below is a detailed explanation of the settings available under the "Sound" category.


Current Microphone Settings

The "Sound" category provides options related to the current microphone settings, and by default, these settings are configured appropriately for most users, so they can usually be used reliably without any changes. In a typical recording environment, both system sound and microphone audio are recorded properly, and the default settings are generally enough to capture high-quality audio. For example, when using microphone input for lecture videos or game streaming, the default settings are sufficient for most needs.


Resolving Microphone Audio Issues

However, in certain situations, especially when using a USB audio interface or advanced audio equipment, you may encounter an issue where microphone sound is played through only one speaker, either the left or the right. This usually happens when the audio input channel settings are not configured correctly. In the "Sound" category of oCam, simple setting adjustments are provided to resolve this issue.


If sound is coming from the left speaker only: Change the microphone input source to "Input 1 (Left Channel)" to fix the problem. This setting correctly adjusts the microphone audio signal when it is focused only on the left channel, allowing balanced output through both speakers.

If sound is coming from the right speaker only: Change the microphone input source to "Input 2 (Right Channel)." This setting adjusts the audio signal coming into the right channel so that it is evenly distributed through both speakers.

These setting changes are especially useful in environments that use USB audio interfaces or stereo input, and they are an essential feature for users who want to optimize audio quality.


Usage Tips

The settings in the "Sound" category are simple, but they are very effective for resolving issues in certain audio environments. For example, streamers or content creators using a USB microphone or audio interface can quickly fix audio channel issues through these settings. After changing the settings, it is a good idea to run a short test recording to make sure the microphone audio is being recorded evenly on both channels. It is also important to adjust the microphone input level properly so that the sound is not too loud or too quiet.


If you are in a normal environment without a USB audio interface, you can usually get stable recording results just by keeping the default settings. However, if you are using advanced audio equipment, adjusting these settings to balance the audio output can be very helpful in improving the overall quality of the video.