Intermediate CODEC question

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Intermediate CODEC question

PostTue Jan 29, 2019 6:00 pm

When the source material is 1080 25p 4:2:0 8bit h.264 and the delivery is the same, is there any benefit by using intermediate CODEC of 4:2:2 and/or 10bit for the sake of better color correction/grading?
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostThu Jan 31, 2019 10:49 am

Yes of course ! You can have different formats/containers/codecs/specs for capture, intermediate (post production) and final diffusion but you need to understand what your hardware and software stack is doing at every step and why you would need better quality.

For example if you do "8 bpc input -> multiple color grading in 8 bpc -> 8 bpc" output you can have weird artifact popping up and doing "8 bpc input -> multiple color grading in 16 bpc -> 8 bpc" instead can remove them. All depends on your actual content / editing / special effects of course.
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Intermediate CODEC question

PostThu Jan 31, 2019 1:59 pm

Joshua is asking if there is any difference in having 8bit source converted to 10bit intermediate file vs. using original 8bit. Not a difference between 8 vs 10bit real source.
Answer is- no. Your 10bit intermediate file will hold same usable 8bit data. There is no magic (until you use some spacial tool which would try to increase bit depth, which is not easy).
Only difference is that intermediate codecs will make your editing smoother as they are way less compressed and easier to decode (and I frame based). When it comes to usable data for grading it won't give you anything above your original source.
10$ is 10$ regardless if you have it in big wallet or small one :D
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: Intermediate CODEC question

PostFri Feb 01, 2019 11:52 am

Thanks, Antoine and Andrew.
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline

David Baud

  • Posts: 29
  • Joined: Fri Aug 24, 2012 6:20 pm
  • Location: Denver - Paris

Re: Intermediate CODEC question

PostMon Feb 04, 2019 11:30 pm

Another consideration is the software you use for color correction: the internal operations need to happen in higher bit-depth if you don’t want to introduce any new artifacts especially with 8-bit footage during decode/encode. Many modern software like DaVinci will operate in 32-bit floating point, so you should not to worry working with lower bit footage in terms of image quality.


Sent from my iPad using Tapatalk
David Baud, CSI | Colorist & finishing editor | KOSMOS PRODUCTIONS | Denver-Paris | www.kosmos-productions.com | vimeo/davidbaud
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: Intermediate CODEC question

PostTue Feb 05, 2019 10:34 am

Thanks, David.
I use DaVinci Resolve for both editing and color correction/grading.
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostSat Feb 09, 2019 5:49 am

Andrew Kolakowski wrote:Joshua is asking if there is any difference in having 8bit source converted to 10bit intermediate file vs. using original 8bit. Not a difference between 8 vs 10bit real source.
Answer is- no.

The answer is "it depends" -- cf. David's answer and mine

Andrew Kolakowski wrote:Your 10bit intermediate file will hold same usable 8bit data. There is no magic

The magic comes from the fact that you loose quality each time you store the results of an operation on the data. If your logic was true then filmmakers could shoot in 8 bpc, edit and grade in 8bpc and have a great 8 bpc output...
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Intermediate CODEC question

PostSat Feb 09, 2019 12:10 pm

Looks like you don't really understand original question. It's not about shooting 8bit vs 10bit (or editing/grading in higher than source bit depth), but about converting 8bit source into 10bit in hope for gaining usable data during this process.

Resolve will convert any source to 32bit float straight after decoding. So if you have 8bit file or previously converted 8bit to 10bit your usable data in Resolve will be the same and end results as well. Where does "your magic" happens here? Where will Resolve find more data in this 10bit source (coming from 8bit) file compared to original 8bit? In many cases it's same date with padding zeros (in others just converted 8bit into 10bit, which adds nothing new/usable). It's plain math. In order to get something more you need to have advanced algorithm added to bit depth conversion process, but not a single common tool does such a thing. There are some open source tools for this, but this is very specific topic.
10$ is 10$ regardless if it's in small or big wallet :)
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: Intermediate CODEC question

PostSun Feb 10, 2019 10:29 am

Thanks, Andrew.
Andrew Kolakowski wrote: … In order to get something more you need to have advanced algorithm added to bit depth conversion process, but not a single common tool does such a thing. There are some open source tools for this, but this is very specific topic. …

What are those open source tools?
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Intermediate CODEC question

PostSun Feb 10, 2019 1:52 pm

avisynth, vapoursynth with filters GradFun3, f3kdb 2.0, dither tools etc. Those filters can remove banding quite well in some cases (= increased bit depth), but when you encode to low bitrate then banding will be back. I don't think it's worth the hassle until you really have special case (eg 8bit source footage which needs to go to high quality end master).
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: Intermediate CODEC question

PostMon Feb 11, 2019 10:19 am

Thanks, Andrew.
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostFri Jun 28, 2019 11:01 am

Andrew Kolakowski wrote:Looks like you don't really understand original question. It's not about shooting 8bit vs 10bit (or editing/grading in higher than source bit depth), but about converting 8bit source into 10bit in hope for gaining usable data during this process.

Resolve will convert any source to 32bit float straight after decoding. So if you have 8bit file or previously converted 8bit to 10bit your usable data in Resolve will be the same and end results as well. Where does "your magic" happens here? Where will Resolve find more data in this 10bit source (coming from 8bit) file compared to original 8bit? In many cases it's same date with padding zeros (in others just converted 8bit into 10bit, which adds nothing new/usable). It's plain math. In order to get something more you need to have advanced algorithm added to bit depth conversion process, but not a single common tool does such a thing. There are some open source tools for this, but this is very specific topic.
10$ is 10$ regardless if it's in small or big wallet :)

I hold what I'm saying. If one doesn't know the inner workings of the software, one cannot infer anything about the end quality. For example maybe converting to 10bpc forces the host software to do everything in 16bpc, hence better quality. Maybe not and it's a user option to force the host software to have high quality conversion / filters
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline
User avatar

JPOwens

  • Posts: 1511
  • Joined: Fri Apr 12, 2013 8:04 pm
  • Location: Victoria, British Columbia, Canada

Re: Intermediate CODEC question

PostFri Jun 28, 2019 4:09 pm

antoine wrote:If one doesn't know the inner workings of the software, one cannot infer anything about the end quality. For example maybe converting to 10bpc forces the host software to do everything in 16bpc, hence better quality. Maybe not


There is no "maybe." Resolve does everything in 32Float and input bit depth is irrelevant with regard to processing strategy.

Given Andrew's money analogy you're asking for a $7.49 bill which might exist in 10-bit and better, but does not in 8-bit. That's all there is to it. (I realized USA still has $1 bills... we don't in Canada, anymore, nor 1-cent "pennies".) If you want exact change, you're going to have to operate in a higher original bit-density or dither like hell.

There are cheats, but 8-bit is like hoping the black flies won't get into your tent when what you are using for a screen is a tennis net.

jPo, CSI
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostMon Jul 01, 2019 7:59 am

You're probably right if we restrict ourselves to DaVinci Resolve yes
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Intermediate CODEC question

PostMon Jul 01, 2019 10:39 am

antoine wrote:I hold what I'm saying. If one doesn't know the inner workings of the software, one cannot infer anything about the end quality. For example maybe converting to 10bpc forces the host software to do everything in 16bpc, hence better quality. Maybe not and it's a user option to force the host software to have high quality conversion / filters


This is a very different matter. You worked too much with Premiere :)
If you don't tick Maximum Bit Depth Premiere will decode even 10bit codecs to 8bit pixel format for speed, no?
It all doesn't change fact that converting 8bit to 10bit doesn't add magically any more usable data.
It's all about knowing your app.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostWed Sep 18, 2019 3:38 pm

Andrew Kolakowski wrote:
If you don't tick Maximum Bit Depth Premiere will decode even 10bit codecs to 8bit pixel format for speed, no?

In theory yes but in practice it depends on the actual Format/Codec chosen
Andrew Kolakowski wrote:It all doesn't change fact that converting 8bit to 10bit doesn't add magically any more usable data.
It's all about knowing your app.

Indeed! Also, there might be a "gain of data" if you're doing a RGB -> YUV transformation, I would need to study this more in depth
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Intermediate CODEC question

PostWed Sep 18, 2019 4:30 pm

antoine wrote:
Andrew Kolakowski wrote:
If you don't tick Maximum Bit Depth Premiere will decode even 10bit codecs to 8bit pixel format for speed, no?

In theory yes but in practice it depends on the actual Format/Codec chosen
Andrew Kolakowski wrote:It all doesn't change fact that converting 8bit to 10bit doesn't add magically any more usable data.
It's all about knowing your app.

Indeed! Also, there might be a "gain of data" if you're doing a RGB -> YUV transformation, I would need to study this more in depth


Interesting?
They come from where the 2 bits to go from 8 to 10 bits?
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostThu Sep 19, 2019 8:26 am

Jean Claude wrote:Interesting?
They come from where the 2 bits to go from 8 to 10 bits?

Salut Jean Claude,

It's not really that we "gain" 2 bits but more that we "loose" information by restricting the operations in a 8 bit space. Using bit depth as a measure for image quality is good -- up to a certain point. It's especially good to explain to the professional public. I'm sure better indicators are to be found in mathematics if ones really wants to maximize quality in its software.

If you want an example of what I'm talking about suppose you have a,b,c,d variables such as :
Code: Select all
a=0 ou 1 (1 bit)
b=0 ou 1 (1 bit)

c=a+b -> 0, 1 ou 2 (1.58 bits)
d=a-b -> -1, 0 ou 1 (1.58 bits)


To store "properly" (without loosing quality doing the reverse function) c and d you need more bits (4 bit because 2*log_2(3)=3.16 bits). But c and d "transport" only 2 bits of information (they are the result of a reversible function from a 2 bit space), the space of 4 bits will not always be used as its maximum as values are intertwined.

That's why I'm saying each step in a pipeline can lower quality and it's a huge mess. This was just an example, I'm not saying it actually happens in Premiere Pro or DaVinci Resolve
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostThu Sep 19, 2019 8:32 am

I guess my previous example answers Andrew's reformulation of the OP question

It's not about shooting 8bit vs 10bit, but about converting 8bit source into 10bit in hope for gaining usable data during this process

Answer is, it depends
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: Intermediate CODEC question

PostThu Sep 19, 2019 8:52 am

antoine wrote:I guess my previous example answers Andrew's reformulation of the OP question

It's not about shooting 8bit vs 10bit, but about converting 8bit source into 10bit in hope for gaining usable data during this process

Answer is, it depends


No, it doesn't depend. You're not going to gain anything by converting 8 bit source into 10 bit source before you feed it in into resolve. In fact, you actually lose quality because most codecs are lossy.
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostThu Sep 19, 2019 9:06 am

Dan Sherman wrote:No, it doesn't depend. You're not going to gain anything by converting 8 bit source into 10 bit source before you feed it in into resolve. In fact, you actually lose quality because most codecs are lossy.


If you're unable to read previous comments and assess / criticize arguments we can't have a discussion and move forward. Yes, it does depend (and yes of course in some cases you can also loose quality in the process)
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: Intermediate CODEC question

PostThu Sep 19, 2019 12:47 pm

antoine wrote:
Dan Sherman wrote:No, it doesn't depend. You're not going to gain anything by converting 8 bit source into 10 bit source before you feed it in into resolve. In fact, you actually lose quality because most codecs are lossy.


If you're unable to read previous comments and assess / criticize arguments we can't have a discussion and move forward. Yes, it does depend (and yes of course in some cases you can also loose quality in the process)


I can read just fine, you're the one that doesn't seem to be able to!

I'm a software developer by trade, and I went to college to be a physicist specializing in software and math. No simple transcode is going to make your footage better.
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Intermediate CODEC question

PostThu Sep 19, 2019 2:04 pm

Dan Sherman wrote:I'm a software developer by trade, and I went to college to be a physicist specializing in software and math. No simple transcode is going to make your footage better.


Having a science and engineering background is not a valid argument against my claims. And no transcode is ever "simple", you just don't know what happens behind the hood
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: Intermediate CODEC question

PostThu Sep 19, 2019 11:37 pm

antoine wrote:
Dan Sherman wrote:I'm a software developer by trade, and I went to college to be a physicist specializing in software and math. No simple transcode is going to make your footage better.


Having a science and engineering background is not a valid argument against my claims. And no transcode is ever "simple", you just don't know what happens behind the hood


Yeah, okay I can see you're not worth wasting a single moment on!
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline
User avatar

Marc Wielage

  • Posts: 10901
  • Joined: Fri Oct 18, 2013 2:46 am
  • Location: Hollywood, USA

Re: Intermediate CODEC question

PostMon Sep 23, 2019 3:30 am

JPOwens wrote:There are cheats, but 8-bit is like hoping the black flies won't get into your tent when what you are using for a screen is a tennis net.

Sorry I missed this question a few months ago when it was first asked.

I agree with Joe: the way I would put it is, trying to get more out of converting 8-bit video to 10-bit is kind of like taking 8 gallons of water and pouring it into a 10-gallon drum. You don't really get any more out of it.

The right answer is not to shoot with 8-bit cameras, whenever possible. The more extreme the color-correction (or the processing), the more the image will tend to fall apart.

I am not a fan of 8-bit video, especially for post. I get that a lot of broadcast video winds up as 8-bit for delivery, though the hope is that 4K HDR (particularly Dolby Vision) allows for 10-bit or even 12-bit.
marc wielage, csi • VP/color & workflow • chroma | hollywood
Offline
User avatar

Uli Plank

  • Posts: 21281
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Intermediate CODEC question

PostMon Sep 23, 2019 7:11 am

HDR is already driving the change, more and more cameras even in the lower segment are getting 10 bit.
No, an iGPU is not enough, and you can't use HEVC 10 bit 4:2:2 in the free version.

Studio 18.6.5, MacOS 13.6.5
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G, iMac 2017, eGPU

Return to Post Production

Who is online

Users browsing this forum: No registered users and 39 guests