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 - Recording - Game Tab

 


oCam is software that provides settings specialized for game recording, helping gamers and content creators capture high-quality gameplay footage with ease. In the settings window that appears when you click the "Tools - Options" menu, the "Game" tab under the "Recording" category provides detailed settings optimized specifically for game recording. The options in this tab include various features for managing gameplay frame rates (FPS) and optimizing system resources, allowing users to adjust recording to suit their own environment. Below is a detailed explanation of the main settings in the "Game" tab.


Show FPS

The "Show FPS" option determines whether the real-time FPS (frames per second) value is displayed in the top-left corner of the screen while using game recording mode. By default, this option is checked, so the FPS value appears on the screen during game recording. This feature is useful for users who want to monitor game performance in real time. For example, it helps you check whether the game is running smoothly or whether frame drops are occurring during recording. If you do not need the FPS display, you can disable this option to keep the screen cleaner.


FPS Calculation - Interval (Milliseconds)

The "FPS Calculation - Interval" setting lets you specify the time interval used to display FPS in milliseconds (ms). FPS means the number of frames drawn per second and is calculated based on 1,000 milliseconds (1 second). If the user enters a value smaller than 1,000 ms, oCam calculates and displays a predicted FPS value based on that interval. For example, if it is set to 500 ms, the FPS will be updated every 0.5 seconds. This setting is useful when you want to monitor frame rate changes in more detail.


In addition, "Rounding Mode" is an option that lets you choose how decimal values are handled when calculating FPS. You can select rounding, round up, or round down, allowing you to adjust how the FPS value is displayed. For example, if you choose rounding, the FPS will be shown as a neatly rounded whole number.


FPS Limit

"FPS Limit" is a feature that restricts the game's frame rate in game recording mode to a value specified by the user. This setting allows you to adjust the game's FPS to the level you want, which is useful for optimizing system resource usage or maintaining consistent recording quality. Two modes are provided for FPS limiting:


Consume CPU Cycles: This mode continuously uses the CPU to keep the frame rate as close as possible to the FPS value entered by the user. This method is suitable when precise FPS control is needed, such as when you want stable recording in a high-spec game. However, CPU usage may increase, so you should pay attention to system performance.

Yield to CPU: This mode limits FPS while minimizing CPU usage. It adjusts frames by using idle time, so it has the advantage of reducing CPU load, but FPS limiting may have a slight margin of error. This method is useful for users who want to save system resources or record on a lower-spec PC.

Limit FPS Only While Recording

The "Limit FPS Only While Recording" option applies the FPS limit only while recording is actually in progress. In other words, the specified FPS limit works only while recording is active after pressing the record button, and once recording stops, the game runs again at its original FPS. This setting is useful for users who want to manage gameplay and recording separately. For example, you can enjoy the game at maximum performance during normal play and limit FPS only during recording to get more stable video.


Usage Tips

The settings in the "Game" tab play a key role in balancing recording quality and system performance. For example, when recording a high-spec game, you can use the "Consume CPU Cycles" mode to set an accurate FPS limit and adjust FPS to 60 or higher for smoother footage. On the other hand, on a lower-spec system, it is better to choose the "Yield to CPU" mode to reduce resource usage. In addition, by enabling the Show FPS feature to check performance in real time, you can quickly identify frame drops or performance degradation during recording.