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

How to Fix the Issue of 7 Days to Die Not Being Detected for Game Recording (Anti-Cheat Related)

When recording a game with oCam, problems may occur if a game with an AntiCheat feature is running. AntiCheat software may block recording software or cause conflicts, which can prevent oCam from working properly. Below is a detailed explanation of how to solve this problem and record games smoothly with oCam.


To resolve problems caused by the AntiCheat feature, you can launch the game without AntiCheat enabled. You can use an option provided by Steam or run a specific game executable directly to bypass AntiCheat. Below are two methods:


Method 1: Launch the game from Steam without AntiCheat  

1. Launch the Steam client and select the game you want to record (for example, 7 Days to Die) from your Library.  

2. On the game's detail page, click the blue 'Play' button.  

3. When the launch options window appears, select the 'Launch Without AntiCheat' option.  

4. The game will launch without AntiCheat, allowing normal recording with oCam.


Method 2: Run the game executable directly  

For some games, you can disable AntiCheat by running the executable directly from the Steam library folder. For example, in the case of 7 Days to Die:  

1. Go to the Steam library path. The default path is `SteamLibrary\steamapps\common\7 Days To Die\`.  

2. In that folder, find the `7DaysToDie.exe` file and double-click it to run it.  

3. When launched this way, AntiCheat is automatically disabled, and you can record the game in oCam without any issues.


Applying the methods above can resolve conflicts caused by AntiCheat and allow you to record the game smoothly with oCam. However, disabling AntiCheat may cause restrictions in online multiplayer mode, so make sure your recording is intended for offline play or single-player mode. If the problem persists, using the latest game patch or the latest version of oCam may also help.