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

What to Do If the Sound Becomes Louder or Distorted When Playing Recorded Videos in PotPlayer

When playing a video recorded with oCam in PotPlayer, the sound may sometimes be different from the original recording or become distorted. This may be caused by PotPlayer's Normalizer setting. Below is a detailed explanation of how to disable the Normalizer setting so the original sound plays back as it was recorded.


To disable the Normalizer in PotPlayer's Preferences, follow these steps:


1. Run PotPlayer.

2. Open the Preferences window. To do this, press the F5 key on your keyboard, or right-click on the player screen and select 'Preferences' from the menu that appears.

3. When the Preferences window opens, click the 'Audio' category in the left menu, then go to the 'Normalizer/Reverb' submenu.

4. In the 'Normalizer/Reverb' settings, check whether the 'Use Normalizer During Playback' option is enabled. In most cases, this option is enabled by default.

5. Uncheck 'Use Normalizer During Playback', then click the 'OK' button to save the setting.


After applying this setting, PotPlayer will no longer automatically amplify the sound, so the original sound recorded with oCam will play back as it is.


Note: What is the Normalizer feature?  

The Normalizer is a feature that amplifies the playback volume to match 0dBFS (decibels full scale). For example, if the original sound was recorded at -20dBFS, the Normalizer amplifies it closer to 0dBFS so it sounds louder. However, if the sound is amplified too much during this process, it may become distorted or crackle. The dB used here does not mean ordinary decibels (dB), but rather the dBFS unit used in digital audio environments.


By disabling the Normalizer, you can play back videos recorded with oCam while preserving the original volume and sound quality. If the sound still has problems, check PotPlayer's other audio settings, such as the equalizer or volume control, or review the recording settings in oCam.