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

How to Capture Images with oCam


 

Clicking the Capture button on the main screen of oCam immediately captures the screen within the recording area you have set. This feature is very useful when you want to save a precise snapshot of a specific part of the screen. Through oCam's intuitive interface, users can freely adjust the capture area in advance and take screenshots exactly as needed by selecting the full screen, a specific window, or a custom area. This flexibility is especially useful for document work, preparing presentation materials, or for IT professionals who need to record specific UI elements.



Once the capture is complete, oCam saves the image in PNG format by default, providing a sharp, high-quality result. PNG format supports lossless compression, so you can keep clear screenshots without any loss of image quality, and it is compatible with most image editing software and platforms. In the oCam settings menu, users can also change the save format to other types such as JPG or BMP, allowing them to balance file size and quality according to project requirements.


To check the captured image, click the "Open" button on the main screen of oCam. When you click this button, Windows Explorer opens automatically and shows the most recently captured file already selected. This feature helps users review and use captured images right away. Since it takes you directly to the folder where the file is saved through Windows Explorer, file management also becomes much easier.


oCam's capture feature is simple yet powerful, making it useful in a wide range of situations from everyday tasks to professional environments. For example, software developers can use it to record bugs or share UI designs, while instructors can use it to prepare teaching materials. In addition, through the oCam settings menu, you can change the save location to a custom folder or set file naming rules when capturing for more organized file management. In this way, oCam provides high-quality screenshots with simple controls and greatly improves work efficiency.