You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mp4decrypt fails with error code -8, it gives no meaningful context. After extensive debugging and false leads (thinking it’s a DRM/PSSH/key mismatch), it turns out the root cause is often simply no space left on device.
Even worse: the tool actually writes as much as possible until the disk is full, then throws a generic Decryption failed (error code -8) — without mentioning anything about disk I/O or write errors. This strongly suggests an issue with:
the decryption key or KID,
file integrity,
encrypted fragment mismatch,
...when in reality, it's just the filesystem saying "I'm full, bro."
This behavior is incredibly misleading and can waste hours of debugging time.
How to reproduce
Attempt to decrypt a large .mp4 file using a valid key:
mp4decrypt --key <kid:key> input.mp4 output.mp4
Ensure the target filesystem is nearly full (less than required output size)
Observe the error:
Decryption failed (error code -8)
Expected behavior
The tool should report something like:
Decryption failed: no space left on device (error code -8)
Or at least mention that this can be caused by disk space issues.
Why it matters
The current error message leads users to believe it’s a problem with encryption, licensing, or input file validity — when in fact, the issue is purely local and unrelated to DRM.
Suggested fix
Check for write() errors related to ENOSPC and either:
Print a more specific message when detected
Add a short hint to the error code -8 message
Let me know if this can be addressed. I’d be happy to help test a fix.
The text was updated successfully, but these errors were encountered:
Summary
When
mp4decrypt
fails with error code-8
, it gives no meaningful context. After extensive debugging and false leads (thinking it’s a DRM/PSSH/key mismatch), it turns out the root cause is often simply no space left on device.Even worse: the tool actually writes as much as possible until the disk is full, then throws a generic
Decryption failed (error code -8)
— without mentioning anything about disk I/O or write errors. This strongly suggests an issue with:...when in reality, it's just the filesystem saying "I'm full, bro."
This behavior is incredibly misleading and can waste hours of debugging time.
How to reproduce
.mp4
file using a valid key:Expected behavior
The tool should report something like:
Or at least mention that this can be caused by disk space issues.
Why it matters
The current error message leads users to believe it’s a problem with encryption, licensing, or input file validity — when in fact, the issue is purely local and unrelated to DRM.
Suggested fix
Check for
write()
errors related toENOSPC
and either:Let me know if this can be addressed. I’d be happy to help test a fix.
The text was updated successfully, but these errors were encountered: