Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th May 2007, 15:07   #1  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Need a good 4:4:4 codec

All the codecs I'm finding have 4:2:2 or 4:1:1 or 4:2:0 or similar chroma subsampling.

x264 can get my video (losslessly!) down to 15MB due to the low motion and graphics used, but it converts it to 4:2:0, which causes annoying color bleeding. The YV12 is also annoying--there's tons of banding in the gradients because of the conversion from RGB.

What's a good, modern encoder/codec that supports 4:4:4 subsampling and works well for zero-noise RGB graphics? I tried the MSU screencapture codec and that got it down to 26MB, but it seems to be very CPU-intensive on playback (100% of one of my cores). Additionally most people probably won't have the codec.

Last edited by Dark Shikari; 26th May 2007 at 15:18.
Dark Shikari is offline   Reply With Quote
Old 26th May 2007, 15:18   #2  |  Link
morsa
the dumbest
 
Join Date: Oct 2002
Location: Malvinas
Posts: 494
Have you tried Huffyuv in RGB mode or Lagarith in RGB mode ?
They are both lossless in that Mode.

If you video/graphics is so low motion and noise free (which let me think it is from synthetic origin) you could also try some screen capture codec or even some simple RLE one.
morsa is offline   Reply With Quote
Old 26th May 2007, 16:03   #3  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by morsa View Post
Have you tried Huffyuv in RGB mode or Lagarith in RGB mode ?
They are both lossless in that Mode.

If you video/graphics is so low motion and noise free (which let me think it is from synthetic origin) you could also try some screen capture codec or even some simple RLE one.
I'm looking for a codec that has both inter and intra-frame compression, something I can use for distribution--Lagarith and HuffyUV are far too large because they only have intra-frame compression.

The graphics are of synthetic origin. What's a good screen capture codec? MSU seems extremely effective and can detect fades, but its too slow on playback to be useful.
Dark Shikari is offline   Reply With Quote
Old 26th May 2007, 16:17   #4  |  Link
Awatef
A CORE Media Player User
 
Awatef's Avatar
 
Join Date: May 2002
Location: Africa
Posts: 789
@ Dark
You're doing something wrong somewhere.
Downsampling to YUY2 or YV12 should be (almost) transparent to the human eye.


Check this out:

Original 24-bit RGB picture:


Downsampled to YV12:
__________________
Stereo better than 128kbps MP3? Ogg Vorbis at -q2! (~96kbps) / Get the LANCER releases for max conversion speed (at least twice as fast as Lame 3.97!)

Last edited by Awatef; 26th May 2007 at 16:20.
Awatef is offline   Reply With Quote
Old 26th May 2007, 16:21   #5  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Awatef View Post
@ Dark
You're doing something wrong somewhere.
Downsampling to YUY2 or YV12 should be transparent to the human eye.


Check this out:

Original 24-bit RGB picture:


Downsampled to YV12:


Right = original (mild banding)
Left = ConvertToYV12() in Avisynth (tons of banding)

The banding isn't *that* much worse but its a lot more obvious.
Dark Shikari is offline   Reply With Quote
Old 26th May 2007, 17:28   #6  |  Link
Awatef
A CORE Media Player User
 
Awatef's Avatar
 
Join Date: May 2002
Location: Africa
Posts: 789
Well, I had a hard time telling the difference (putting my LCD under weird viewing angles and stuff), so I don't think it's dramatic.

Either way, I don't know any "main stream" codec that supports 4:4:4, sorry
__________________
Stereo better than 128kbps MP3? Ogg Vorbis at -q2! (~96kbps) / Get the LANCER releases for max conversion speed (at least twice as fast as Lame 3.97!)
Awatef is offline   Reply With Quote
Old 27th May 2007, 01:54   #7  |  Link
Taktaal
Registered User
 
Join Date: May 2003
Posts: 114
First: YUV is notoriously bad at encoding green. Unfortunately your image is mostly green, and that's where the banding happens.

Second: You're encoding a screenshot in a DCT based format. Much like you wouldn't compress a screenshot of a web page in JPG (use PNG instead) you shouldn't do this here either. If your movie consists only of images like your sample, you should use a Flash animation instead.

Third: you're judging the quality of an encode by a still image. If you want any possible screenshot to look as best as possible the only way to do that is to use a codec that only uses intra frames.

As soon as the codec has to save more space by using p-frames it will throw away information that won't be visible in a movie. Pausing the movie and making a screenshot sabotages all that work and will make errors visible that wouldn't be in a realistic environment.
Taktaal is offline   Reply With Quote
Old 27th May 2007, 02:28   #8  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
Quote:
Originally Posted by Taktaal
First: YUV is notoriously bad at encoding green. Unfortunately your image is mostly green, and that's where the banding happens.
source on that? green actually gets priority in all flavours of YUV.

reds have issues because of their relatively high luminance, and blues have it very bad but usually it's not noticable as the eye sucks at picking up blue.

FWIW, on my CRT i didn't see any banding, only mild pixelliness in coloured edges. that doesn't solve your problem, but it implies that it can vary from computer to computer.

give corePNG a try, but it's not a common codec, and is quite slow.

also, bink video might work, as they say there's special consideration given to RGB.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 27th May 2007, 09:34   #9  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Try using the deband filter in ffdshow on it, and see if that makes it look better on playback.
*.mp4 guy is offline   Reply With Quote
Old 27th May 2007, 10:48   #10  |  Link
J_Darnley
Registered User
 
J_Darnley's Avatar
 
Join Date: May 2006
Posts: 957
You could try FFmpeg and it's ZLIB lossess compression. It will compress RGB video so there is no (minute) loss from the colourspace change. I used for storing some movie dumps from ZSNES and it managed 2830 kbit/s for 256x224 50Hz video which I thought wasn't too bad coming from a raw pipe. The raw video was 68 Mbit/s
J_Darnley is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.