Recording Error: Stream Recording to External Hard Drive

dazb

New Member
OBS Version: 31.0.1
Windows 11

I've been sporadically getting the following error message when trying to record a stream to an external hard drive:

An encoder error occurred while recording:
Error writing to 'D:/{file path}', Invalid argument av_interleaved_write_frame failed: -1: Operation not permitted


I've searched the forums and online, and while I've seen some similar issues, I can't find a resolution. The hard drive has plenty of space.

Anyone resolved this issue?
 

dazb

New Member
following as I have the same problem
I managed to resolve by using a different USB port.

After encountering this error more and more, I checked the Windows Event Viewer log, and noticed numerous disk error events that seemed to coincide with this error.

When I changed the USB port, I no longer got the error events. And then when recording, it seems I no longer get this error message.

So try to change the USB port and see if that helps. Otherwise try to update your PC drivers and PC BIOS and see if that helps.
 

AaronD

Active Member
I managed to resolve by using a different USB port.

After encountering this error more and more, I checked the Windows Event Viewer log, and noticed numerous disk error events that seemed to coincide with this error.

When I changed the USB port, I no longer got the error events. And then when recording, it seems I no longer get this error message.

So try to change the USB port and see if that helps. Otherwise try to update your PC drivers and PC BIOS and see if that helps.
It doesn't come up very often, but it *is* true that not all USB ports are created equal. Usually, the difference is front or rear.

The rear ports are soldered directly to the motherboard, but the front ones have a cable that plugs into a much cheaper connector on the board. Those internal cables and cheap connector aren't always up to spec. They'll work for slow things, but if you're pushing the boundaries, even for a brief moment, they can cause problems.
 
Top