Reino
13th October 2013, 20:25
Thanks to the_weirdo we have a solution for the moment:
ffmpeg.exe -i <YCgCo-source> -pix_fmt yuv444p -c:v libx264 -preset veryslow -qp 0 -x264-params fullrange=on:colormatrix=YCgCo <output>
For my 10bit-question: http://comments.gmane.org/gmane.comp.video.ffmpeg.user/43262 (http://comments.gmane.org/gmane.comp.video.ffmpeg.user/43262)
Reino
3rd March 2014, 00:36
I'd like to revise my previous statement with the following Fraps sample I used:
Fraps(RGB) --> H.264(YV24 PC-Range,YCgCo) with AviSynth and VUI:
AviSynth-script: FFVideoSource("FPS1(bgr24)_720p30_sample.avi").ConvertToYCgCo()
x264.exe (--preset veryslow) -q 0 --input-range pc (--range pc) --output-csp i444 --colormatrix YCgCo ^
-o "FPS1(bgr24)_720p30_sample(x264(avs,ycgco),q0,vui).mkv" "FPS1(bgr24)_720p30_sample(avs,ycgco).avs"
ffmpeg.exe -i "FPS1(bgr24)_720p30_sample(avs,ycgco).avs" (-pix_fmt yuv444p) -c:v libx264 (-preset veryslow) ^
-qp 0 -color_range 2 -colorspace 8 "FPS1(bgr24)_720p30_sample(ffmpeg(avs,ycgco),q0,vui).mkv"Note: parameters between brackets are unnecessary/optional.
Note2: -color_range 2 -colorspace 8 same as -x264-params fullrange=on:colormatrix=YCgCo).
================================================================
http://screenshotcomparison.com/comparison/65084 (http://screenshotcomparison.com/comparison/65084)
"Fraps(RGB)" is:
FFVideoSource("FPS1(bgr24)_720p30_sample.avi")
"H.264(YV24,PC-Range,YCgCo)-lossless" is:
FFVideoSource("FPS1(bgr24)_720p30_sample(x264(avs,ycgco),q0,vui).mkv").ConvertToYV24("PC.601")
ManualColorMatrix(2,1.0,-1.0,1.0,1.0,1.0,0.0,1.0,-1.0,-1.0,0.0,-128.0,256.0)
FFVideoSource can't put out YV24, so I don't know if the few artifacts you can see are because of ConvertToYV24, but almost lossless nontheless ;). I hope we can expect YCgCo to become a true lossless backup opportunity some day, or has xv abandoned the project?
It was indeed because of the extra conversion.
http://screenshotcomparison.com/comparison/65096 (http://screenshotcomparison.com/comparison/65096)
Now "H.264(YV24,PC-Range,YCgCo)-lossless" is:
LWLibavVideoSource("FPS1(bgr24)_720p30_sample(x264(avs(lsmash),ycgco),q0,vui).mkv") <-- which can open yuv444p
ManualColorMatrix(2,1.0,-1.0,1.0,1.0,1.0,0.0,1.0,-1.0,-1.0,0.0,-128.0,256.0)Still not lossless though.
Just for comparison:
FPS1(bgr24)_720p30_sample.avi - 184MB
FPS1(bgr24)_720p30_sample(x264,q0,rgb).mkv - 25,1MB
FPS1(bgr24)_720p30_sample(x264(avs(lsmash),ycgco),q0,vui).mkv - 17,5MB
Granted, the clip has low motion. ;)
LigH
24th February 2017, 08:46
With the development of AviSynth+ and support for higher bit depths, I wonder if native support would be considered useful, or rather this color space keeping an "exotical" status. Just curious about opinions.
Myrsloik
24th February 2017, 12:54
With the development of AviSynth+ and support for higher bit depths, I wonder if native support would be considered useful, or rather this color space keeping an "exotical" status. Just curious about opinions.
VapourSynth has had native support from the start. It has to my knowledge been used zero times. Just some statistics to help you with the decision there
qyot27
28th February 2017, 16:23
From last July:
https://github.com/AviSynth/AviSynthPlus/issues/85
LDD9O
8th March 2017, 15:07
Could someone please reupload the attachment? I can't seem to download them.
Thank you.
LigH
8th March 2017, 16:36
Which? ConvertToYCgCo_v04.zip in reply #32 (https://forum.doom9.org/showthread.php?p=1565259#post1565259)? Easily downloadable for me.
I am wondering if there are two different Types of this Color Model what Chroma concerns. Some Sites report YCgCo and others YCoCg which would mean that the Chroma is swapped the same as with I420 / IYUV and YV12.
Does anybody have a Idea which Type is the "Normal" one and which the "Inverted" one, in case both exist ? I found many Links and Documents but they where not very helpful in clearing this Question.
Most useful Links on Wikipedia:
YCoCg (English) (https://en.wikipedia.org/wiki/YCoCg)
YCgCo (German) (https://de.wikipedia.org/wiki/YCgCo-Farbmodell)
Thanks in advance for your Answers and Help in this Matter.
Cheers
Mick
Balling
21st March 2021, 07:40
Only YCgCo exists, Mick. They both name the same thing, the same order of the same componenets, see Wikipedia. Y, Cg, Co is in Y, Cb, Cr.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.