libSceVideodec2: Mortalfin (PPSA99141) aborts on video playback: "output deeper than 8 bits is not implemented" #6640

Closed
opened 2026-10-16 00:39:34 +00:00 by coltken95 · 3 comments
coltken95 commented 2026-10-16 00:39:34 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-16T00:39:34Z.


Title: Mortalfin 1.0.0-beta.4 (PPSA99141)
Build: main 5d9dcc42d, Linux (CachyOS), NVIDIA GeForce RTX 2070 (driver 615.78.08), GCC 16.2.1, Release; relinked with --trap-sdk-syscall-stubs.
Steps: start Mortalfin, add a server, start playing a video (1080p). It stops as soon as playback starts. Not yet tried with an 8-bit video.

Stop:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Videodec2: output deeper than 8 bits is not implemented

This is the refusal in WriteNv12 (core/libs/prx/libSceVideodec2/Export.cpp) for a decoded frame with more than 8 bits per sample. Decoders open at that point:

[videodec2] decoder 1: codec=1 max 1920x1088 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[videodec2] decoder 2: codec=974921 max 3840x2176 (HEVC (High Efficiency Video Coding))
[videodec2] decoder 3: codec=974921 max 1920x1088 (HEVC (High Efficiency Video Coding))
[videodec2] decoder 4: codec=974921 max 1920x1088 (HEVC (High Efficiency Video Coding))

Video: not available

Question: #2427 (closed by the intake pause, not reviewed) recorded public evidence for the console's 10-bit output layout: 16-bit words with the samples in the low bits (not P010's high bits), contiguous Y, then interleaved UV at byte pitch × coded height, from EVO-PLAYER-PS5's shader. frameFormat and alignment are unverified. Is that enough to implement 10-bit output in that layout, or does it need a hardware measurement first? If it's enough, I'll open a PR with a test that names PPSA99141.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5876196438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6640). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-16T00:39:34Z. --- **Title:** Mortalfin 1.0.0-beta.4 (PPSA99141) **Build:** `main` 5d9dcc42d, Linux (CachyOS), NVIDIA GeForce RTX 2070 (driver 615.78.08), GCC 16.2.1, Release; relinked with `--trap-sdk-syscall-stubs`. **Steps:** start Mortalfin, add a server, start playing a video (1080p). It stops as soon as playback starts. Not yet tried with an 8-bit video. **Stop:** ``` terminate called after throwing an instance of 'std::runtime_error' what(): Videodec2: output deeper than 8 bits is not implemented ``` This is the refusal in `WriteNv12` (`core/libs/prx/libSceVideodec2/Export.cpp`) for a decoded frame with more than 8 bits per sample. Decoders open at that point: ``` [videodec2] decoder 1: codec=1 max 1920x1088 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [videodec2] decoder 2: codec=974921 max 3840x2176 (HEVC (High Efficiency Video Coding)) [videodec2] decoder 3: codec=974921 max 1920x1088 (HEVC (High Efficiency Video Coding)) [videodec2] decoder 4: codec=974921 max 1920x1088 (HEVC (High Efficiency Video Coding)) ``` Video: not available **Question:** #2427 (closed by the intake pause, not reviewed) recorded public evidence for the console's 10-bit output layout: 16-bit words with the samples in the low bits (not P010's high bits), contiguous Y, then interleaved UV at byte pitch × coded height, from EVO-PLAYER-PS5's shader. `frameFormat` and alignment are unverified. Is that enough to implement 10-bit output in that layout, or does it need a hardware measurement first? If it's enough, I'll open a PR with a test that names PPSA99141. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-16 00:48:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:48:19Z.


I would not implement generic 10-bit output from the current evidence alone. The EVO source is useful evidence for a likely payload layout: its decoder path uses byte pitch and places UV after byte pitch × coded height, and the public shader path is consistent with low-bit 10-bit samples in 16-bit words. But the evidence does not establish what Videodec2 reports in frameFormat, whether framePitch is bytes or samples for this output, how the pitch is aligned for 16-bit samples, or the QueryDecoderMemoryInfo allocation contract. Those are consequential: the current emulator sizes 8-bit NV12 (1.5 × aligned width × aligned height) and reports frameFormat = 0 with both pitch fields set to the 8-bit byte pitch. Guessing only the sample packing could therefore write the right words at the wrong offsets or report a buffer contract the caller rejects.

I think a hardware trace or independent public consumer evidence for those fields is needed before enabling the path. The existing Main10 fixture can then support a focused regression checking actual low-bit Y/UV words, interleaving, plane offset, row padding, output metadata, and undersized buffers. The shader evidence is a good lead, but by itself it does not close the output ABI.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205455341 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6640#issuecomment-6205455341). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:48:19Z. --- I would not implement generic 10-bit output from the current evidence alone. The EVO source is useful evidence for a likely payload layout: its decoder path uses byte pitch and places UV after byte pitch × coded height, and the public shader path is consistent with low-bit 10-bit samples in 16-bit words. But the evidence does not establish what Videodec2 reports in `frameFormat`, whether `framePitch` is bytes or samples for this output, how the pitch is aligned for 16-bit samples, or the `QueryDecoderMemoryInfo` allocation contract. Those are consequential: the current emulator sizes 8-bit NV12 (`1.5 × aligned width × aligned height`) and reports `frameFormat = 0` with both pitch fields set to the 8-bit byte pitch. Guessing only the sample packing could therefore write the right words at the wrong offsets or report a buffer contract the caller rejects. I think a hardware trace or independent public consumer evidence for those fields is needed before enabling the path. The existing Main10 fixture can then support a focused regression checking actual low-bit Y/UV words, interleaving, plane offset, row padding, output metadata, and undersized buffers. The shader evidence is a good lead, but by itself it does not close the output ABI.
MarcZX10 commented 2026-10-16 06:15:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T06:15:56Z.


PR #6709 adds the independent hardware evidence we were missing for HEVC Main10 output: the 1080p allocation measurement, sample-unit framePitch vs byte-unit framePitchInBytes, 256-byte pitch alignment, and contiguous Y/UV placement. It adds a CPU regression comparing the emitted words against a separately generated FFmpeg reference. The PR explicitly leaves frameFormat and VP9 profile 2 hardware behavior unverified in the debt entry. I reviewed its current diff and did not find another concrete contract issue; its hosted build jobs are skipped by contributor policy, while conventions, eligibility, intake and report pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6209366593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6640#issuecomment-6209366593). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T06:15:56Z. --- PR #6709 adds the independent hardware evidence we were missing for HEVC Main10 output: the 1080p allocation measurement, sample-unit `framePitch` vs byte-unit `framePitchInBytes`, 256-byte pitch alignment, and contiguous Y/UV placement. It adds a CPU regression comparing the emitted words against a separately generated FFmpeg reference. The PR explicitly leaves `frameFormat` and VP9 profile 2 hardware behavior unverified in the debt entry. I reviewed its current diff and did not find another concrete contract issue; its hosted build jobs are skipped by contributor policy, while conventions, eligibility, intake and report pass.
JJenkx commented 2026-10-22 03:15:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T03:15:10Z.


#6709, which outputs HEVC Main10 (yuv420p10le) pictures as low-bit 16-bit words, has been merged, and current \main\ (6ef5a1c4c9) no longer has the \output deeper than 8 bits\ refusal. 10-bit output from any other decoded format still throws, with its own message. A rebuild from current \main\ should get Mortalfin past this stop if its videos are Main10. I haven't run Mortalfin myself.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331791889 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6640#issuecomment-6331791889). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T03:15:10Z. --- #6709, which outputs HEVC Main10 (yuv420p10le) pictures as low-bit 16-bit words, has been merged, and current \main\ (6ef5a1c4c9) no longer has the \output deeper than 8 bits\ refusal. 10-bit output from any other decoded format still throws, with its own message. A rebuild from current \main\ should get Mortalfin past this stop if its videos are Main10. I haven't run Mortalfin myself.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#6640
No description provided.