FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
579 stars 105 forks source link

convert to RGB24 has problem #283

Closed k24w24 closed 7 years ago

k24w24 commented 7 years ago

screen-2017-02-03_16-55-46


fmtc has no problem.

yuv444 = c.ffms2.Source( cache=False, source="same.jpg", fpsnum=60 )[0] * 100

yuv444 = yuv444.fmtc.resample(css="444") yuv444 = yuv444.fmtc.matrix(mat="601", col_fam=vs.RGB) yuv444 = yuv444.fmtc.bitdepth(bits=8)

yuv444.set_output()


but ffms2 has problem.

yuv444 = c.ffms2.Source( cache=False, source="same.jpg", fpsnum=60 )[0] * 100

by_ffms2 = yuv444.resize.Point( format=vs.RGB24, matrix_s="709" )

yuv444.set_output()

Resize error 1026: RGB color family cannot have YUV matrix coefficients


same..

rgb24 = c.ffms2.Source( cache=False, source="same.jpg", fpsnum=60, format=vs.RGB24 )[0] * 100

rgb24.set_output()

Resize error 1026: RGB color family cannot have YUV matrix coefficients

myrsloik commented 7 years ago

This is example is invalid usage, you can't have matrix_s refers to the output matrix and you can't have a YUV matrix for RGB. Did you really mean matrix_in_s? That'd be a different thing.

yuv444 = c.ffms2.Source( cache=False, source="same.jpg", fpsnum=60 )[0] * 100

by_ffms2 = yuv444.resize.Point( format=vs.RGB24, matrix_s="709" )

yuv444.set_output()

myrsloik commented 7 years ago

The other case is a real bug and I'll try to fix it

myrsloik commented 7 years ago

Fixed in ffms2000 branch, try out test2 once it's available.