Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: gnarr on July 05, 2013, 05:40:43 PM

Title: Are there any 16bit 4:4:4 video codecs?
Post by: gnarr on July 05, 2013, 05:40:43 PM
As the topic says, is there any (preferably free) 16bit 4:4:4 codec that we can use for storing and working with our ML Raw footage? If so, do you know what compression algorithms they use and what programs they are compatible with?

I know of cDNG, but I would like to know of all options :)
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: dariSSight#1 on July 05, 2013, 06:58:00 PM
I don't know if this is the same question from gnarr but In the same fashion of the native H.264 from canon, is there anyway way ML firmware could allow ProRes 4444 or ProRes 422?
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: Redrocks on July 05, 2013, 08:17:51 PM
http://www.authorityfx.com/encoding-videos-in-prores-4444-on-windows/


http://www.magiclantern.fm/forum/index.php?topic=5557.0


http://www.magiclantern.fm/forum/index.php?topic=6021.0
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: gnarr on July 08, 2013, 02:46:37 AM
Quote from: Redrocks on July 05, 2013, 08:17:51 PM
http://www.authorityfx.com/encoding-videos-in-prores-4444-on-windows/


http://www.magiclantern.fm/forum/index.php?topic=5557.0


http://www.magiclantern.fm/forum/index.php?topic=6021.0

Thanks for the links Redrrocks :)

However, isn't ProRes 4444 only 12bits?

Is cDNG maybe the only 16bit 4:4:4 format available ?

@dariSSight#1
If I've understood correctly what I've read, the CPU in our cameras are pretty much stuck at 96% while recording RAW, so we don't have any headroom for in camera compression. The H.264 compression is probably done using an onchip encoder instead of the CPU.
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: iaremrsir on July 08, 2013, 08:50:09 PM
I'm pretty sure OpenEXR fits the bill. But's an image sequence. Don't know what your preference is, but there are a few 16-bit 4:4:4 image sequence formats. If you don't have Adobe CC, here is a plug-in for 16-bit DPX support in the Adobe suites.

http://fnordware.blogspot.com/2012/06/dpx-plus.html

In another thread http://www.magiclantern.fm/forum/index.php?topic=6799.0 someone was looking for a raw -> exr workflow. I suggested this tool

http://www.nullmedium.de/dev/cine/

The guy talked to the dev about adding dng support already, so if more people ask, he'd probably be more inclined to add it.
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: deleted.account on July 09, 2013, 09:30:44 AM
ffmpeg provides free 16bit RGB and YCbCr video codecs including 4:4:4.

dng to exr is trivial. raw2dng -> dng via dcraw piped to imagemagick hdri.

If it were possible to pipe straight from raw2dng then wouldn't have to create dngs at all going to tif, exr or 16bit video codecs etc.
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: gnarr on July 10, 2013, 01:06:01 PM
I just found out about the Cineform 16bit RGB codec. It is the only 16bit 4:4:4 "movie file" format that I have found yet, the rest seems to be image sequence based formats. I'm going to do some tests with Cineform 16bit tonight and I'll try to post something here.
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: gnarr on July 27, 2013, 02:45:04 PM
Apparently H.264 has a "High 4:4:4 Predictive Profile":
QuoteHigh 4:4:4 Predictive Profile (Hi444PP)
This profile builds on top of the High 4:2:2 Profile, supporting up to 4:4:4 chroma sampling, up to 14 bits per sample, and additionally supporting efficient lossless region coding and the coding of each picture as three separate color planes.
For camcorders, editing, and professional applications, the standard contains four additional Intra-frame-only profiles, which are defined as simple subsets of other corresponding profiles. These are mostly for professional (e.g., camera and editing system) applications:

And also "High" and "CAVLC 4:4:4 Intro Profile":
QuoteHigh 4:4:4 Intra Profile
The High 4:4:4 Profile constrained to all-Intra use.
CAVLC 4:4:4 Intra Profile
The High 4:4:4 Profile constrained to all-Intra use and to CAVLC entropy coding (i.e., not supporting CABAC).
As a result of the Scalable Video Coding (SVC) extension, the standard contains five additional scalable profiles, which are defined as a combination of a H.264/AVC profile for the base layer (identified by the second word in the scalable profile name) and tools that achieve the scalable extension:

http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: Africashot on July 27, 2013, 02:51:34 PM
Quote from: gnarr on July 10, 2013, 01:06:01 PM
I just found out about the Cineform 16bit RGB codec. It is the only 16bit 4:4:4 "movie file" format that I have found yet, the rest seems to be image sequence based formats. I'm going to do some tests with Cineform 16bit tonight and I'll try to post something here.

True but to get the 4:4:4 version it will run you about 300$ too right?
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: chmee on July 27, 2013, 10:38:42 PM
saying "dng/cdng is 4:4:4" is not accurate! because dng is as well a bayer-field array, the choice of debayering-algorithm is giving the "best possible" resolution - and being sarcastic, every debayered picture has in every pixel only one component (r g or b) native, the two other are calculated/synthetic as it is in 4:2:2 with the chroma-values as well :D

so, the truth is somewhere between. and there are enough codecs giving full resolution in all channels, rgb or yuv, they compress for example) in other manner, not in quadrants/arrays.

regards chmee
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: iaremrsir on July 29, 2013, 06:22:22 AM
Quote from: Africashot on July 27, 2013, 02:51:34 PM
True but to get the 4:4:4 version it will run you about 300$ too right?

Yes, $250 at video guys.
Title: Re: Are there any 16bit 4:4:4 video codecs?
Post by: iaremrsir on July 29, 2013, 06:29:45 AM
I think Blackmagic Design has a 16-bit Uncompressed QT codec. All you have to do is install the Desktop Video thingy from their website.