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 There Is No Sound During Recording (Windows XP)

For Windows XP, normal operation may not be guaranteed because Microsoft has ended support for this operating system. (Reference)



To record system audio with oCam, it is important to enable the Stereo Mix feature in the Windows sound settings. This allows you to effectively capture the sound being played on your computer. Below is a detailed explanation of how to set up Stereo Mix to record system audio.


First, open the Windows Control Panel and double-click the 'Sounds and Audio Devices' icon. You can do this by opening Control Panel from the Start menu.



The 'Volume Control' window will then appear. In this window, click 'Options' on the top menu and then select 'Properties'. When the Properties window opens, select the 'Recording' option, and in the 'Show the following volume controls' section at the bottom, check the 'Stereo Mix' item. Then click the 'OK' button to save the setting.


After completing the setup, the 'Stereo Mix' item will appear in the Volume Control window. Check the 'Select' checkbox for this item and raise the volume slider to the maximum, and the sound played on the computer will be captured together when recording with oCam. With this setting, you can record game audio, music, or other system sounds.


However, Stereo Mix may appear under a different name depending on your computer's sound driver or system settings. Below is a list of device names that perform the same function as Stereo Mix. If one of the items below appears on your computer, select that device and configure it in the same way:  

- Stereo Mixer (Stereo Mixer)  

- Mixed Output (Mixed Output)  

- Stereo Mix (Stereo Mix)  

- Mixed Out (Mixed Out)  

- Stereo Output (Stereo Output)  

- What U Hear (What U Hear)  

- Stereo Out (Stereo Out)  

- Loop Back (Loop Back)  

- Digital Mixer (Digital Mixer)  

- Post-Mix (Post-Mix)  

- Digital Mix (Digital Mix)  

- Sum (Sum)  

- Wave Out Mix (Wave Out Mix)  

- Wave Output Mix  

- Wave / MP3 (Wave Output Mix)


After following the steps above to enable Stereo Mix and adjust the volume appropriately, set oCam to record system audio and you will be able to record the sound you want clearly. If the Stereo Mix item does not appear, it is recommended to check whether your sound driver is up to date or install the latest driver from the manufacturer's website.