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

Download Useful External Codecs

If you want to use various video codecs with oCam, you can install external codecs to adjust recording quality and file formats the way you want. Below is information about the external codecs supported by oCam and how to install them. Installing external codecs allows you to use oCam more flexibly.


After installing an external codec, you must restart oCam. Once restarted, the installed codec will automatically appear under the 'External Codec' option in the oCam settings menu, where you can select it for recording. External codecs can be downloaded from the following link:  

https://ohsoft.net/update/codec.php


The following are descriptions of the main external codecs supported by oCam:  


Xvid Video Codec  

The Xvid codec is a video codec that implements the MPEG-4 Simple Profile and Advanced Simple Profile standards. This codec offers efficient compression and high compatibility, making it suitable for creating videos that can be played on a wide range of devices and software. With Xvid, you can keep file sizes reasonable while minimizing quality loss during recording.


x264vfw Codec  

x264vfw is a VfW (Video for Windows) codec that includes the widely known x264 encoder and ffh264 decoder. Based on the H.264 format, this codec can save high-quality video in a smaller file size. x264vfw is especially suitable for users who want sharp image quality and efficient compression, and it also offers excellent compatibility with various video editing software.


VP8 Codec  

The VP8 codec can encode video at quality comparable to or better than H.264 video encoders. VP8 is a core component of the WebM format and is well suited for web-based video streaming or high-quality video storage. With this codec, you can reduce file size while maintaining clear image quality for efficient recording.


Lagarith Codec  

Lagarith is a lossless video codec designed for video editing and archiving. As a lossless codec, it preserves the original video quality exactly, but the file size can be relatively large. Therefore, it is suitable for users who want to edit high-quality video or store it for the long term.


By installing and using external codecs in oCam, users can choose the best codec for their recording purpose and environment. For example, if you want to reduce file size, you can choose x264vfw or VP8, and if you want to create editing footage without quality loss, you can choose Lagarith. Download the codec you need from the link above, restart oCam, and apply the codec you want.