Skip to content

Conversation

chemag
Copy link

@chemag chemag commented May 26, 2025

Add support for the following Y4M color spaces produced by ffmpeg:

  • 422
  • 420
  • 420jpeg
  • 420mpeg2
  • 420paldv
  • 422
  • 444
  • mono
  • 411
  • 420p10
  • 422p10
  • 444p10
  • mono10
  • 420p12
  • 422p12
  • 444p12
  • mono12
  • 420p14
  • 422p14
  • 444p14
  • 420p16
  • 422p16
  • 444p16
  • mono16

Unsupported spaces:

  • 444alpha
  • 420p9
  • 422p9
  • 444p9
  • mono9

Tested:

  • opened a 400 image.

chemag added 2 commits May 26, 2025 12:13
Add support for the following Y4M color spaces produced by ffmpeg:
* 422
* 420
* 420jpeg
* 420mpeg2
* 420paldv
* 422
* 444
* mono
* 411
* 420p10
* 422p10
* 444p10
* mono10
* 420p12
* 422p12
* 444p12
* mono12
* 420p14
* 422p14
* 444p14
* 420p16
* 422p16
* 444p16
* mono16

Unsupported spaces:
* 444alpha
* 420p9
* 422p9
* 444p9
* mono9

Tested:
* opened a 400 image.
This fixes the Y4M parser, though yuview eventually refused to read the
file.

Error before: "Error parsing the Y4M header: Could not locate the next
'FRAME' indicator".

Note that the parser cannot deal correctly with the odd-dimensions.

Error after: "With the given settings, the YUV data can not be converted to
RGB: The item width 9 must be divisible by the horizontal subsampling factor
2. The item height 9 must be divisible by the horizontal subsampling factor
2."

Now the problem is that yuview does not seem to support odd dimensions
for subsampled files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant