18.07.2020, 00:17
I know you're away but I found some issues with image streams and lossless encoding and if I don't post while this is fresh in my head I'm going to lose it.
I have an image stream of PNG files that were processed from a source that has a Luma Range of Limited/TV.
I import with the following settings:
I export with the following lossless settings for H264:
In Vapoursynth, I can export i420, i422, and i444. They all look correct with regard to colors / levels (although I have to set a Levels filter in Vapoursynth to get it to match the source).
In AviSynth, I can export i420, i422, but not i444. I get a CRASHED ERROR with i444:
The AviSynth preview works so this only happens when processing the job to mp4 file.
In AviSynth, if I import the image stream with the Luma Range set to PC, like this:
Then the above crash / error doesn't happen and I can export i444. However, the colors / levels are off from the source due to the "PC" luma range setting. I'm unable to fix it using AviSynth filters (Levels, Smooth Levels, Smooth Curves, etc.)... they all do some level of correction but don't match the source. That defeats the point of lossless encode.
(Source is on the left.)
I attached debug files with the image stream source set to TV (crash) and PC (no crash).
[attachment=941]
Here's a zip of the image stream:
https://www67.zippyshare.com/v/a3vg0LOZ/file.html
I have an image stream of PNG files that were processed from a source that has a Luma Range of Limited/TV.
I import with the following settings:
I export with the following lossless settings for H264:
In Vapoursynth, I can export i420, i422, and i444. They all look correct with regard to colors / levels (although I have to set a Levels filter in Vapoursynth to get it to match the source).
In AviSynth, I can export i420, i422, but not i444. I get a CRASHED ERROR with i444:
-> 2020-07-17@17_47_15_8310_02_video crashed: ERROR: C:\Users\ADMINI~1\AppData\Local\Temp\2020-07-17@17_47_15_8310_02.264 is too small! (byteSize: 0byte)
Aborting '2020-07-17@17_47_15_8310_02_video' due to: ERROR: C:\Users\ADMINI~1\AppData\Local\Temp\2020-07-17@17_47_15_8310_02.264 is too small! (byteSize: 0byte)
The AviSynth preview works so this only happens when processing the job to mp4 file.
In AviSynth, if I import the image stream with the Luma Range set to PC, like this:
Then the above crash / error doesn't happen and I can export i444. However, the colors / levels are off from the source due to the "PC" luma range setting. I'm unable to fix it using AviSynth filters (Levels, Smooth Levels, Smooth Curves, etc.)... they all do some level of correction but don't match the source. That defeats the point of lossless encode.
(Source is on the left.)
I attached debug files with the image stream source set to TV (crash) and PC (no crash).
[attachment=941]
Here's a zip of the image stream:
https://www67.zippyshare.com/v/a3vg0LOZ/file.html