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 are codec and digital container format?
What are codec and digital container format?
Although you generally do not need to understand these two terms to use oCam, you should know them if you want to use the extended functions in oCam.
Codec and digital container format have multiple meanings, but here we explain only the meanings used for oCam.
First, a digital container format refers to common container formats such as AVI, MP4, and MOV.
Wikipedia has more detailed explanations.
A container format, also called a wrapper format, is a metadata file format that defines how different data components can coexist within a computer file.
In simpler words, AVI, MP4, MOV, FLV, and similar formats refer to the file structure that determines how video or audio data is stored.
And the data stored in that container is related to codecs.
The definition of a codec is described in Wikipedia as follows.
http://ko.wikipedia.org/wiki/%EC%BD%94%EB%8D%B1
A codec (short for coder-decoder) is hardware or software that can encode and decode, or both, a data stream or signal. It also refers to the algorithm used to do so. In telecommunications, the term originally referred to sender and receiver devices, known as a โcoderโ and โdecoder,โ which originated in 1980s America.
A codec includes software that compresses or decompresses data using compression functions, or devices and software that convert media such as sound and video into different formats.
To explain more simply, in current oCam usage, codecs are used to encode screen data into video, generating encoded video and audio data, and this data is saved as a file according to the container format selected in oCam.
Examples of codecs that we commonly know are XVID, MPEG-1, MPEG-2, MPEG-4, and H264.
For example, if there is a file with an AVI extension, then the digital container format is AVI, and the stored video and audio are saved using the AVI-defined structural format.
At that time, the stored video data may be H264, MPEG-4, and so on, while the audio data may be MP3, PCM, etc.