16.0.b7 bypass re-encode

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

16.0.b7 bypass re-encode

PostFri Jul 26, 2019 7:08 pm

i test this in b5, and it worked as expected
today i have a film to drop QCfixes into

- master is DCi2kFlat, DNxHR444/10b / 10Ch / constant
- project is YRGB / DCi2kFlat / no color managment
- fixes are rendered the same: DCi2kFlat, DNxHR444/10b / 10Ch / constant
- new 10ch audio tracks
- target is DCi2kFlat, DNxHR444/10b / 10Ch / constant

i was expecting to see bypass re-encode run the timeline through without re-encodeing, but it's not...

is this becuase of the changed audio perhaps? or any other reason?

i am doing the same steps as the test i ran a few weeks ago with sucess, but with the real deal it's not a happening thing

i went back to the master project in ACEScct and used the timeline there, rendered that instead as i do not want another needless de/re encode cycle, definatly takes a bit longer (understatment)

any thoughts?
Offline

Jim Simon

  • Posts: 36105
  • Joined: Fri Dec 23, 2016 1:47 am

Re: 16.0.b7 bypass re-encode

PostSat Jul 27, 2019 4:19 am

It's my understanding that any changes will force a new encoding.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: 16.0.b7 bypass re-encode

PostSat Jul 27, 2019 6:04 am

but there's no changes to the raster and codec that the export would know about, audio is the same number of tracks, picture has 7 shots changed in a film with 1,126 shots in it that did not change

scratch my head on this one, esp as it worked amazingly well when i tested it a few weeks ago under what i think are identical conditions
Offline

Jim Simon

  • Posts: 36105
  • Joined: Fri Dec 23, 2016 1:47 am

Re: 16.0.b7 bypass re-encode

PostSat Jul 27, 2019 5:00 pm

You changed the audio, yes?
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

John Paines

  • Posts: 6327
  • Joined: Tue Jul 28, 2015 4:04 pm

Re: 16.0.b7 bypass re-encode

PostSat Jul 27, 2019 7:38 pm

According to the 16 manual (p. 2795), changing only audio should allow for bypass re-encode, for the video. Are you certain there wasn't some other change?
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: 16.0.b7 bypass re-encode

PostSun Jul 28, 2019 3:55 am

really tried not to change anything

workflow:
grade in ACEScct, export a CTM as DNxHR444/10b with 10 ch audio @DCi2kFlat
send to QC
render 7 shots to DNxHR444 @DCi2kFlat
open a new project DCi2kFlat / YRGB
link to the CTM
link to the fixes
link to the revised audio
place the show on v1, fixes on v2
replace the 10ch audio
export to DNxHR444 @DCi2kFlat

and it forces a decode/encode cycle i was wanting to avoid

my answer was to drop the same revisions into the master ACEScct project and export from there, avoiding the unwanted decode/encode cycle

but in theory the workflow should be golden, and i tested it a few weeks ago in b5, and it worked amazingly well, running at the speed of my disks - at 500+ Fps until a revsion poped up, and then it slowed down to a more normal (for this machine) 60-90 fps, and went back to 500+ fps once past the insert

not sure what i could be doing in a sub-optimal manner here. there's not alot of moveing parts
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: 16.0.b7 bypass re-encode

PostSun Jul 28, 2019 4:25 am

continue scratching my head....

i have another film, this one needs a revised credit roll, i dropped the broadcast deliverable DNxHD175x into a new project, and added the 15 seconds of revision at the end of a 97min movie, matched the settings in the render page and hit the go button

it's working for this project... revised broadcast master should be completed in a few min

no idea why this one works and the other one does not

was planning on haveing them render overnight, and it seems i'll have the master done before i'm finished cleaning up the left over coffee cups
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostSun Jul 28, 2019 11:27 am

It should bypass re-encoding. I done some quick test in one of the 16 betas with ProRes and was behaving fine.
I'm not sure about Resolve implementation, but not only it should bypass in cases like yours, but also even if you had some part of the master replaced (re-graded etc). It should basically follow cuts and check if content is the same or not and re-encode only required bits.
This is the whole point of it and it should work well specially with I frame based codecs (Edius does it nicely).

Faster solution is CineXtools which simply write only new/changed parts in at hex level (also new/replaced audio tracks). If you have eg. 2h master and replacing 10 seconds it takes few seconds to finish. Quite expensive thought and works only with some codecs (they have to be strict CBR ones). DNxHD/HR is one of them. This is next step- they already have plugin for Premiere and worked with BM to have CBR ProRes export from Resolve.
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostMon Aug 05, 2019 12:20 pm

Which Timeline Color Space do you use? For me everything is fine with "Rec.709 Gamma 2.4", but when I change the Color Space, bypass won't work on ProRes4444.
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostMon Aug 05, 2019 3:02 pm

Looks like there is a bug.
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: 16.0.b7 bypass re-encode

PostMon Aug 05, 2019 7:26 pm

for packageing i use YRGB, no color managment

bypass re-encode works well with DNxHD175x

does not appear to work with:
- DNxHR444@DCi2k_Flat
- DNxHR444@DCi4k_Flat
- DNxHR444@DCi2k_Scope
- DNxHR444@DCi4k_Scope
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostTue Aug 06, 2019 7:15 am

Dermot Shane wrote:for packageing i use YRGB, no color managment

Nevertheless you have to choose a "Timeline Color Space"?
Offline

Dermot Shane

  • Posts: 2923
  • Joined: Tue Nov 11, 2014 6:48 pm
  • Location: Vancouver, Canada

Re: 16.0.b7 bypass re-encode

PostWed Aug 07, 2019 3:50 am

timeline color space is set to default (709/2.4) for packageing
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostWed Aug 07, 2019 4:39 pm

Thanks. The bottom line is, bypass re-encode is limited to certain codecs (of cource, but which one), certain resolutions and it works in Rec709 Gamma 2.4 only, which means wrong metadata in renderes files if you want to work in other color spaces.
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostWed Aug 07, 2019 4:48 pm

Color spaces tagging is problematic with bypass option.
Maybe this is why it's failing. Maybe all has to match.
For some codecs (without private headers, so eg. all uncompressed options) it should always work as container flagging is always newly written in exported file. For eg. ProRes, DNxHR, Jpeg2000 it's not so easy as private headers will keep original flagging and at the end you may have mismatched flagging.
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 9:40 am

Thats right. But even an exported file with a new header written (when nothing is bypassed) will show the same behaviour when you try to export it again with the same settings.
Did someone try 16.1 yet?
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 7:13 pm

Don't understand.
When you export new file without bypass then private codec headers and container are newly written and should be aligned and follow project setting.
Offline

Oyvind Stiauren

  • Posts: 84
  • Joined: Mon Mar 06, 2017 11:31 pm
  • Location: Mexico City

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 9:24 pm

jan_berlin wrote:Did someone try 16.1 yet?


Yes, and it still is a problem with 16.1b1

I have a "Rec.2100 ST2084" master in ProRes 444 that I want to patch and re-export using the "Bypass re-encode when possible" feature. I've imported the master to a new project configured with "DaVinci YRGB" color science, and the Timeline Color Space is set to "Rec.2100 ST2084". I've then added a entry to the render queue matching the original codec. When I render out with the Timeline Color Space set to "Rec.2100 ST2084", Resolve will re-encode all the frames. However, if I set the Timeline Color Space set to "Rec.709 Gamma 2.4", it will bybass the re-encode, but of course my new file will have the wrong metadata. This is obviosuly not how you'd expect this feature to work.
--
Oyvind Stiauren, C.S.I.
Senior Colorist
Terminal, Mexico City
www.terminalmx.com
www.imdb.com/name/nm1008209/
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 10:18 pm

Clearly a bug. Maybe next version will fix it.
I assume your original file is properly flagged for ST2084.
Offline

Oyvind Stiauren

  • Posts: 84
  • Joined: Mon Mar 06, 2017 11:31 pm
  • Location: Mexico City

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 10:43 pm

Andrew Kolakowski wrote:Clearly a bug. Maybe next version will fix it.
I assume your original file is properly flagged for ST2084.


Yes, it's properly flagged. That's why it don't make sense that Resolve will re-wrap it in a new Rec.709 flagged file, but not in a new ST2084 flagged file like the original.
--
Oyvind Stiauren, C.S.I.
Senior Colorist
Terminal, Mexico City
www.terminalmx.com
www.imdb.com/name/nm1008209/
Offline

Andrew Kolakowski

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

Re: 16.0.b7 bypass re-encode

PostFri Aug 09, 2019 10:57 pm

Sounds like a bug. Well, I would like to see a proper implementation, including patching private codec headers if there is a mismatch. It's not that difficult (and Resolve re-writes whole file anyway). Could be done at lest for ProRes and DNxHR (maybe Jpeg2000).
For ProRes you can always change it later with BBC tool, but why not have it patched during main export. It's just few bits at every frame. If DNxHR is strictly CBR then it will be constant offset, so very easy.
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostMon Aug 12, 2019 10:19 am

Andrew Kolakowski wrote:Sounds like a bug. Well, I would like to see a proper implementation, including patching private codec headers if there is a mismatch. It's not that difficult (and Resolve re-writes whole file anyway). Could be done at lest for ProRes and DNxHR (maybe Jpeg2000).
For ProRes you can always change it later with BBC tool, but why not have it patched during main export. It's just few bits at every frame. If DNxHR is strictly CBR then it will be constant offset, so very easy.

+1
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostWed Feb 05, 2020 3:04 pm

Nothing new on that, right? I still have to reencode, nothing is bypassed on the latest version.
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostFri Apr 23, 2021 11:40 am

Old topic but.. does this work in v17 now? Bypass re-reencoding with any other color space then Rec709?
Offline

jan_berlin

  • Posts: 58
  • Joined: Mon May 06, 2019 2:24 pm
  • Real Name: Jan Wiechmann

Re: 16.0.b7 bypass re-encode

PostMon Apr 26, 2021 12:46 pm

I was able to do some tests: ProRes will still be re-encoded on export, but IMF (P3D65/PQ) for example won't.

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], guy0nthec0uch, panos_mts, sharp36 and 343 guests