Green Tint with Resize - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Green Tint with Resize (/thread-32.html) |
Green Tint with Resize - stimpy2k - 25.06.2017 Hello. I'm using Hybrid with Vapoursynth enabled (my source content is 4:2:2, and Vapoursynth seems to handle it better). I'm having an issue where when I encode the media, everything works as expected. However, if I also resize the media, the resulting video seems to shift slightly green. I suspect color information is being lost. I'm using Windows 10 (x64), and version 2017.05.06.1 of Hybrid. Attached is the debug output. Example of exported file which was NOT resized: https://od.lk/d/M18xNjIzOTg3MzBf/NotResized.mp4 Example of export file which WAS resized: https://od.lk/d/M18xNjIzOTg3MzFf/Resized.mp4 You'll see if you switch back/forth between the two clips, that the resized version has shifted slightly green. Thank you for your help. Hybrid is awesome! -= Brandon. RE: Green Tint with Resize - Selur - 26.06.2017 Can't play around with Vapoursynth to reproduce the issue without a sample of the source. Using: # Imports Might be a problem with a resizer. (iirc there were posts over at doom9s about color issues with some resizers but I thought those were fixed) -> Have you tried other resizers? RE: Green Tint with Resize - stimpy2k - 26.06.2017 Sorry about that. If it's still useful, here's the source: https://od.lk/d/M18xNjI0MjYxODlf/Source.avi Regarding other resizers, I'm not sure what you mean. Is there an option to use other resizers in Hybrid? -= Brandon. RE: Green Tint with Resize - Selur - 26.06.2017 Since I can't reproduce the issue with: # Imports RE: Green Tint with Resize - Selur - 27.06.2017 I encoded the clip with different resizers and created a small compare script, see: https://drive.google.com/open?id=0B_WxUS1XGCPANk5XOENUTVQtTTQ . Download the files, adjust the paths in thte compare.vyp to your setup, open the compare.vpy with vedit and open the preview (Script->Preview) The more I see the result, the more I'm unsure if this is really a bug or if this is just due to the original coloring of the clip and the normal color perception change if you compress an image. Do you also have this effect with a source which doesn't have a green tint to begin with? Cu Selur RE: Green Tint with Resize - stimpy2k - 28.06.2017 Yeah, each of those resizes exhibit the same green tint. I'm hesitant to think the green shift is just the effect of compressing the image. Keep in mind, the AVI I included earlier is the source file. The file named "NotResized.mp4" is still a compressed version of the file, just not resized. If it were the compression causing it, wouldn't we see it on the NotResized version as well? The NotResized file does not show the green tint. It appears identically to the source AVI. The green tinting only occurs when you resize the video, as demonstrated in the Resized.mp4 file. If you're just talking about horizontal compression, rather than just file compression, I don't think that's it either. For example, if you play NotResized.mp4 in MPC-HC, and set the Video Frame Aspect Ratio to 4:3 (horizontally compressing/squishing the image), you'll see the green tint does not occur. It still appears identically to the source AVI, with no green tinting. See the screenshots below... Screenshot from NotResized.mp4 with 4:3 aspect ratio in player (no green tint) https://od.lk/d/M18xNjI1ODU1MjVf/NotResized.png Screenshot from Resized.mp4 (has green tint) https://od.lk/d/M18xNjI1ODU1Mjlf/Resized.png Thanks again. Hopefully we'll be able to get to the bottom of this! -= Brandon. RE: Green Tint with Resize - Selur - 28.06.2017 I'll try a few things over the weekend (busy week) to get to the bottom of this or at least file a proper bug report to the Vapoursynth developers in case I can't figure out why this happens. RE: Green Tint with Resize - Selur - 28.06.2017 send you a link to a Hybrid version which enforces the output color space/sampling of the Vapoursynth script to make sure that ffmpeg doesn't do any color space conversions,.. (couldn't properly test myself, since I'm only using my laptop atm. - which doesn't have a good display) Cu Selur RE: Green Tint with Resize - Selur - 28.06.2017 Also, please a. Try the script from https://forum.selur.net/Thread-Green-Tint-with-Resize?pid=89#pid89 (with adjustments to your environment). To see whether this is a bug in Vapoursynth or a problem with the output handling. b. Try whether this also happens when x265 is used instead of x264? Cu Selur Ps.: probably offline the whole day tomorrow, so I won't probably get to look at it again before Friday after work. RE: Green Tint with Resize - Selur - 28.06.2017 Created another version which avoids the intermediate ffmpeg call, which might fix the issue. Cu Selur |