FAQ (36)

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

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.


Today's News/Tips

What Video Codecs and Container Formats Are Supported?

oCam supports a range of video codecs and container formats so that users can choose from various recording options.

Below is information about the video codecs supported by oCam.


 


* How to Check Supported Video Codecs

You can check the video codecs supported by oCam simply by clicking the 'Codec' button in the oCam main window. From this menu, you can easily view and adjust the list of available codecs and their settings.


* Supported Video Codecs

oCam supports the following video codecs for different container formats. Each codec is encoded according to the selected container format:


- MPEG-1: Used with the AVI container format and widely compatible as an early digital video compression standard.

- MPEG-2: Used with the TS and VOB container formats and suitable for DVDs and broadcast streaming.

- MPEG-4: Used with a wide range of container formats, including MP4, MKV, M4V, MOV, FLV, and WMV. oCam uses MPEG-4 as its default codec, offering high compression and good quality.

- XVID: Used with the AVI container format. It is an open-source codec based on MPEG-4, and oCam internally uses the MPEG-4 codec with only the FourCC set to XVID.

- OpenDivx: Used with the AVI container format, also based on MPEG-4, with the FourCC set to OpenDivx.

- Microsoft MPEG-4 Part 2: Used with the AVI container format and set as oCam's default codec. It can be played in most video players, such as Windows Media Player, without installing additional codecs.

- Microsoft MPEG-4 Part 3: An additional option available for the AVI container format, offering compatibility and quality.


* Relationship Between Container Formats and Codecs

oCam supports various container formats, and according to the image you provided, the supported container formats are as follows:  

- MP4 (MPEG-4 Part 14): Uses the MPEG-4 codec.  

- MKV (Matroska): Uses the MPEG-4 codec.  

- M4V (iPod MPEG-4): Uses the MPEG-4 codec.  

- MOV (QuickTime): Uses the MPEG-4 codec.  

- WMV (Windows Media Video): Uses the MPEG-4 codec.  

- FLV (Flash Video): Uses the MPEG-4 codec.  

- AVI (Audio Video Interleave): Uses MPEG-1, MPEG-2, MPEG-4, XVID, OpenDivx, Microsoft MPEG-4 Part 2, and Part 3.  

- TS (MPEG-2 Transport Stream): Uses the MPEG-2 codec.  

- VOB (MPEG-2 PS): Uses the MPEG-2 codec.  

- GIF (Graphics Interchange Format): Can be saved as an animated GIF when recording video.  

- Audio Recording: Saved in AAC (MP4) format.


By default, oCam records in the AVI container using the Microsoft MPEG-4 Part 2 codec, and this setting is suitable for beginners because it can be played immediately in Windows Media Player and other players without installing additional codecs. MPEG-4, XVID, and OpenDivx are all internally based on the MPEG-4 codec, with only different FourCC codes used to extend compatibility.


* Audio Codec

The audio data saved during recording is encoded in MP3 format, and in some cases, such as with the MP4 container, AAC format is also supported.


* Additional Information

If you install external codecs, you can use more codec options, which will be covered in detail in a separate post. You can adjust oCam's codec settings to match your desired quality and file size, so check the options through the 'Codec' button and test them as needed.

OhSoft - secretfolder The File Appears to Be Encrypted
oCam - howto How to Record Gameplay