How to Fix the "Error while writing video frame (error=-28)" Error

Using oCam at work or school? A license is required, and it removes all ads, including this window. See the paid version →

When recording with oCam, the following error message may appear after a certain amount of time:


"Error while writing video frame (error=-28)"


This error (error code 28) occurs when the file system of the path where the recorded video file is being saved is formatted as FAT (FAT32). The FAT file system has a maximum single-file size limit of 4 GB, so this error occurs when the recorded file size exceeds 4 GB. Below is a detailed explanation of how to resolve this issue.


To fix this error, you can choose one of the following two methods:


1. Change the save path to an NTFS file system  

The NTFS file system has a much larger file size limit (up to 16 EB), so it can store video files larger than 4 GB without any problems. To change oCam's save path to a drive or folder that uses the NTFS format, follow these steps:  

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

2. In the Settings window, click the 'Save' category in the left menu.  

3. Under the 'Save Path' item, check the current path and change it to another drive or folder that uses the NTFS file system (for example, `C:\Videos` or `D:\Recordings`).  

4. Click the 'OK' button to save the settings, restart oCam, and then try recording again.


2. Format the existing drive as NTFS  

If the drive you are currently using is formatted as FAT or FAT32, you can convert or format it to NTFS. However, formatting will erase all data on the drive, so be sure to back up any important files first. To format the drive, follow these steps:  

1. Open File Explorer and right-click the drive you want to format (for example, a USB drive or external hard drive).  

2. Select 'Format' and set the file system to 'NTFS'.  

3. Choose the formatting options, then click 'Start' to begin formatting.  

4. After formatting is complete, set that drive as the save path in oCam and use it.


Additional Checks  

- To check whether the drive's file system is FAT32, right-click the drive in File Explorer and select 'Properties' to view the file system information.  

- If the problem continues even after changing to NTFS, check whether the drive has enough free space and whether you have write permission.


By changing the save path to an NTFS file system or formatting the drive, you can save large video files over 4 GB without errors. After changing the settings, make a test recording to confirm that the problem has been resolved.

Another helpful tip

Setting the Codec - Selecting an External Video Codec (VFW)



 

oCam is a simple and intuitive screen recording program that offers a user-friendly interface and a wide range of features, making it a useful tool for everyone from beginners to IT professionals. In particular, oCam supports a variety of codecs so users can record with the quality and settings they want. Among them, using external VFW (Video for Windows) codecs such as x264vfw or Xvid allows for a more flexible recording environment. Below is a detailed explanation of how to set up and use external codecs in oCam.


How to Set Up an External Codec

To use an external codec in oCam, you first need to go to the program's codec settings menu. On the main screen of oCam, click the Codec menu located at the top or in the settings menu, and a pop-up window related to codec selection will appear. This pop-up window provides options for choosing built-in codecs and external codecs, and here you should select the external codec option. Please note that external codecs support only the AVI container format. This is because the AVI format has excellent compatibility with VFW-based codecs.


When you select the external codec option in the pop-up window, a new settings window will open. This window includes a checkbox labeled 'Use External Codec,' and you need to enable this checkbox to configure an external codec. After checking the box, click the combo box at the bottom of the window to display a list of VFW-based external codecs installed on your computer. For example, if codecs such as x264vfw or Xvid are installed, you can choose the one you want from this list. After selecting a codec, click the OK button to save the setting.



Recording with an External Codec

Once the codec setup is complete, the external codec you selected will be applied automatically when you start recording in oCam. The x264vfw codec provides a high compression ratio and excellent image quality, making it suitable for high-resolution video recording, while Xvid is useful in a variety of environments thanks to its relatively small file size and stable performance. You can choose the appropriate codec based on the type of content you want to record. For example, you can choose x264vfw for high-quality gameplay recording, or Xvid if you want to minimize file size.


The recorded video will be saved in AVI format, and the image quality and file size will vary depending on the characteristics of the selected codec. Therefore, when using an external codec, it is a good idea to check and optimize the codec settings in advance, such as bitrate and frame rate. Some codecs provide a separate settings window where you can adjust detailed options, so using that when needed can give you more satisfying results.


Disabling the External Codec

If you no longer want to use an external codec, you can easily revert the setting. Go back to the Codec menu in oCam, select the external codec option, and then clear the 'Use External Codec' checkbox. Once the checkbox is cleared, oCam will automatically switch back to the built-in codec that was previously in use. Built-in codecs are generally easier to configure and are suitable for users who do not want more complex settings. Even after switching back to a built-in codec, recording quality remains stable, and you can still get optimized results based on oCam's default settings.


Advantages and Precautions When Using External Codecs

The biggest advantage of using external codecs is that you can fine-tune image quality and file size exactly the way you want. In particular, codecs such as x264vfw can save high-quality video in relatively small file sizes, which is a major benefit for users working with high-spec content. On the other hand, the relevant codec must be installed on your computer, and some codecs can consume a large amount of system resources, so your hardware specifications should be taken into account. Also, due to the nature of the AVI container, compatibility may be more limited than with other formats such as MP4, so it is worth keeping this in mind if you plan to edit or share the recorded video afterward.