This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] AviSynth Imagestream - Unable to export H264 4:4:4 lossless for TV Luma Range
#1
Bug 
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. Tongue

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:

[Image: 1YgdI8L.png]

I export with the following lossless settings for H264:

[Image: cvadm0G.png]

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:

[Image: pPmkMwk.png]

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. Tongue

(Source is on the left.)

[Image: 4vmgQYj.png][Image: u6o2NRT.png]

I attached debug files with the image stream source set to TV (crash) and PC (no crash).


.zip   HybridDebugOutput.zip (Size: 25,88 KB / Downloads: 3)

Here's a zip of the image stream:

https://www67.zippyshare.com/v/a3vg0LOZ/file.html
Reply
#2
Will look at it on Monday after work got no access to a pc over the weekend.
Reply
#3
Fixed in dev version 2020.07.20.1!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)