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 Audio Coming from Only One Speaker During Microphone Recording

When recording microphone audio with oCam through a professional audio interface, the sound may not be recorded properly because of issues that differ from those of a standard microphone. In particular, when using an audio interface, problems can occur because the microphone input is handled as mono (a single channel). Below is a detailed explanation of how to resolve this issue and important points to keep in mind.


When recording microphone audio through an audio interface, you may encounter a problem where the sound comes from only one speaker channel, such as the left or right side. This happens because of the way the audio interface handles mono input. To fix this, you need to adjust the microphone input source setting in oCam. Please follow the steps below:



 

1. In the oCam main window, click 'Tools' in the top menu, then select 'Options'.  

2. When the Settings window opens, click the 'Sound' tab in the left menu.  

3. In the 'Sound' tab, find the 'Microphone Settings' section and check the 'Input Source' setting.  

4. If the microphone audio is heard only from the left speaker, change the input source to 'Input 1 (Left Channel)'.  

5. Conversely, if the microphone audio is heard only from the right speaker, change the input source to 'Input 2 (Right Channel)'.  

6. After saving the settings, try recording again and check whether the sound is recorded properly.


Notes  

- In general, microphone input is mono, but in the case of inexpensive standard microphones, even if the physical input is mono, the software may process it as stereo, with identical data on the left and right channels. However, microphones used with professional audio interfaces are handled as mono both in the actual input and in software processing, so you must explicitly set the input source as described above for proper recording.  

- If the microphone audio is heard only from the left speaker and you set it to 'Input 1 (Left Channel)' but no sound is recorded, while it records normally when set to 'Input 2 (Right Channel)', the left and right speaker channels may be physically reversed. In that case, you should check whether the physical speaker positions have been swapped or whether the left and right inputs of the cables connected to the audio interface have been reversed. For example, the speaker cables may be connected incorrectly, or the output settings of the audio interface may be reversed.


With these settings, you can record microphone audio properly in oCam even when using an audio interface. If the problem continues after changing the settings, it is recommended to also check the audio interface driver settings and connection status.