DPReview.com is closing April 10th - Find out more

finally have what we always wanted: HEVC support in Adobe Premiere!

Started Dec 2, 2015 | Discussions
Melidonia Regular Member • Posts: 296
Re: Crushed Blacks ..

MikeDPR wrote:

Setting output levels doesn't help because it's already clipped in its buggy reading of input levels (unless you export to H.265).

Indeed. So, in order to conserve dynamic range, we must export to H265. But if we want to edit our videos, we can't see the final result before encoding. What a shame ...

 Melidonia's gear list:Melidonia's gear list
Sony a7 II Panasonic Lumix DC-S5 Panasonic Lumix DC-GH6 Sony FE 35mm F1.4 Panasonic Leica DG 50-200mm F2.8-4 +3 more
Melidonia Regular Member • Posts: 296
Re: Crushed Blacks ..

tecnoworld wrote:

I got this reply on eoshd:

http://www.eoshd.com/comments/topic/18717-adobe-premiere-pro-cc-now-supports-h265-nx1-files/?do=findComment&comment=124800

Sadly, the highlights are clipped, lifting the level doesn't help.

 Melidonia's gear list:Melidonia's gear list
Sony a7 II Panasonic Lumix DC-S5 Panasonic Lumix DC-GH6 Sony FE 35mm F1.4 Panasonic Leica DG 50-200mm F2.8-4 +3 more
zipcode Regular Member • Posts: 312
Re: Crushed Blacks ..

MikeDPR wrote:

zipcode wrote:

neosushi wrote:

I don't have this problem with Premiere Pro.
My videos are exactly the same if I open them with MPLAYERX or with Premiere Pro. No conversion applied just the "raw" H265 file.

Same here. mpc-hc playback and premiere imported h265 look exactly the same.

Interesting. What are your nx1 settings? I used 0-255, gamma DR and blacks are crushed when imported to PP. No problem with MPC-HC. I wonder if it's specific to the camera settings.

Sorry, I wasn't very clear. I have an nx500. Where I don't have any options but I think it's 0-255 (as should be normal). I tried more than 1 clip, and I'm very sure they are exactly the same.

Also, I think native support is overrated tbh. Everybody was complaining about the extra transcoding step, but actually it could save time.

My workflow: avisynth directshowsource + encoding to lossless utvideo 4:2:0 in virtualdub(there's 4:2:2 too if you want, but will take more space). This operation is Fast, realtime encoding at 1080p50. Of course, you'll need some good hdd space. So where is the time saving you ask? It's the instant seeking in the stream. With the native hevc, seeking will be damn slow. With lossless it's instant. Depending on what you do with the footage, this can save lots of actual work time. And it's lossless. Why would anyone encode to slower and not lossless prores is beyond me.

MikeDPR Regular Member • Posts: 241
Re: Crushed Blacks ..

Melidonia wrote:

MikeDPR wrote:

Setting output levels doesn't help because it's already clipped in its buggy reading of input levels (unless you export to H.265).

Indeed. So, in order to conserve dynamic range, we must export to H265. But if we want to edit our videos, we can't see the final result before encoding. What a shame ...

Right. For now it looks like recording with the 16-235 level setting may be the way to go to work around the white and black clipping issue.

From some reading into this matter, it sounds like Premiere just prefers the 16-235 input range (not only for NX1) for reasons unclear to me. And there are guys (including one Tecno linked to and this one) suggesting clipped info (0-15 & 236-255) is actually there to be recovered if you mess with the edits. Haven't explored that path yet...

 MikeDPR's gear list:MikeDPR's gear list
Samsung NX300 Samsung NX1 Samsung NX 30mm F2 Pancake Samsung NX 20-50mm F3.5-5.6 ED Samsung NX 85mm F1.4 ED SSA +2 more
MikeDPR Regular Member • Posts: 241
Re: Crushed Blacks ..

zipcode wrote:

MikeDPR wrote:

zipcode wrote:

neosushi wrote:

I don't have this problem with Premiere Pro.
My videos are exactly the same if I open them with MPLAYERX or with Premiere Pro. No conversion applied just the "raw" H265 file.

Same here. mpc-hc playback and premiere imported h265 look exactly the same.

Interesting. What are your nx1 settings? I used 0-255, gamma DR and blacks are crushed when imported to PP. No problem with MPC-HC. I wonder if it's specific to the camera settings.

Sorry, I wasn't very clear. I have an nx500. Where I don't have any options but I think it's 0-255 (as should be normal). I tried more than 1 clip, and I'm very sure they are exactly the same.

Also, I think native support is overrated tbh. Everybody was complaining about the extra transcoding step, but actually it could save time.

My workflow: avisynth directshowsource + encoding to lossless utvideo 4:2:0 in virtualdub(there's 4:2:2 too if you want, but will take more space). This operation is Fast, realtime encoding at 1080p50. Of course, you'll need some good hdd space. So where is the time saving you ask? It's the instant seeking in the stream. With the native hevc, seeking will be damn slow. With lossless it's instant. Depending on what you do with the footage, this can save lots of actual work time. And it's lossless. Why would anyone encode to slower and not lossless prores is beyond me.

That's an interesting approach I haven't seen mentioned before. I might give it a try later.

Regarding NX500, hmm, I wonder what it is about NX500 that gives you the same look from MPC-HC and Premiere. It's quite different for my NX1 and others here.

 MikeDPR's gear list:MikeDPR's gear list
Samsung NX300 Samsung NX1 Samsung NX 30mm F2 Pancake Samsung NX 20-50mm F3.5-5.6 ED Samsung NX 85mm F1.4 ED SSA +2 more
Melidonia Regular Member • Posts: 296
Re: Crushed Blacks ..

MikeDPR wrote:

Melidonia wrote:

MikeDPR wrote:

Setting output levels doesn't help because it's already clipped in its buggy reading of input levels (unless you export to H.265).

Indeed. So, in order to conserve dynamic range, we must export to H265. But if we want to edit our videos, we can't see the final result before encoding. What a shame ...

Right. For now it looks like recording with the 16-235 level setting may be the way to go to work around the white and black clipping issue.

From some reading into this matter, it sounds like Premiere just prefers the 16-235 input range (not only for NX1) for reasons unclear to me. And there are guys (including one Tecno linked to and this one) suggesting clipped info (0-15 & 236-255) is actually there to be recovered if you mess with the edits. Haven't explored that path yet...

I tried to recover highlights with the "White Output Level" as you can see with my pics (in the sky) but i can't recover as much as my native file.

 Melidonia's gear list:Melidonia's gear list
Sony a7 II Panasonic Lumix DC-S5 Panasonic Lumix DC-GH6 Sony FE 35mm F1.4 Panasonic Leica DG 50-200mm F2.8-4 +3 more
Happy Daze Contributing Member • Posts: 565
Re: Crushed Blacks, a temporary solution?
1

I refer back to the original post when I first discovered this problem:

I have found that applying the brightness and contrast filter to all clips using these settings brings it back fairly close to the original exposure: brightness -3, contrast -15. (Video Effects, Color Correction, Brightness & Contrast), I use these settings on an adjustment layer.

I have found that "Brightness & Contrast" is the only filter that actually makes the difference and returns the clip to almost original settings, please try it and report, thanks.

Melidonia Regular Member • Posts: 296
Re: Crushed Blacks, a temporary solution?

Happy Daze wrote:

I refer back to the original post when I first discovered this problem:

I have found that applying the brightness and contrast filter to all clips using these settings brings it back fairly close to the original exposure: brightness -3, contrast -15. (Video Effects, Color Correction, Brightness & Contrast), I use these settings on an adjustment layer.

I have found that "Brightness & Contrast" is the only filter that actually makes the difference and returns the clip to almost original settings, please try it and report, thanks.

Thank you, with your settings, i can recover the burned highlights.

 Melidonia's gear list:Melidonia's gear list
Sony a7 II Panasonic Lumix DC-S5 Panasonic Lumix DC-GH6 Sony FE 35mm F1.4 Panasonic Leica DG 50-200mm F2.8-4 +3 more
Happy Daze Contributing Member • Posts: 565
Re: Crushed Blacks, a temporary solution?

Melidonia wrote:

Happy Daze wrote:

I refer back to the original post when I first discovered this problem:

I have found that applying the brightness and contrast filter to all clips using these settings brings it back fairly close to the original exposure: brightness -3, contrast -15. (Video Effects, Color Correction, Brightness & Contrast), I use these settings on an adjustment layer.

I have found that "Brightness & Contrast" is the only filter that actually makes the difference and returns the clip to almost original settings, please try it and report, thanks.

Thank you, with your settings, i can recover the burned highlights.

It's my pleasure, I'm happy that it worked for you.

zipcode Regular Member • Posts: 312
Re: Crushed Blacks, a temporary solution?
1

I'm coming back to this thread to post what I found out in the meantime.

The 0-255 files on nx1/nx500 are odd. At least on nx500, since that's all I have. Yes, they are flagged as fullrange, but not in the correct way I think. It's basically like having a 16-235 played back as 0-255, so it is indeed blackcrashed. My current guess is that no decoder currently actually looks for any flags, it is all default to 16-235.

Now the funny thing is, I said files look the same played back as in premiere imported. And it's true. But that's because the playback is crushed too, in VLC, or mphc. I just didn't realize it until now.

So basically so many people having problems with playback and encoding was actually to their benefit, because by some lucky coincidence ffmpeg converts 0-255 with a pc>tv level conversion by default.

I can't yet find a way to properly play it back yet. Selecting 16-235 output in LAV doesn't change anything, it's confusing, there is something I don't understand here. But I will find a way.

Also importing directly in premiere shows the footage crushed as on playback, but can be recovered for some reason with highlight/HDR white, contrast etc, but not sure it can be made to the exact same look.

So for people who want to use lossless footage before grading do a ffms or dss2 in avisynth and absolutely add a ColorYUV(levels="PC->TV"), or else you get a permanently crushed lossless file.

EDIT after some more trying around: the only way I find currently to playback correctly is  to use madvr renderer. EVR definitely is crushed, and so are all the other renderers. I think madvr is the only one that has source range detection. Press ctrl+j and you can see that it says: fullrange(says upstream). For blurays etc it is detected as limited range and they are also displayed correctly of course.

But it's still odd to me that ffms2 decodes it crushed as well considering it detects correctly it's fullrange.

More EDIT: in VLC, unchecking the option use hardware YUV>RGB conversions solves the problem. So it may be somewhat related to video card as well (I have nvidia)? BTW, range is correct with that setting even on other 16-235 clips.

Also, unrelated, using NVIDIA cuvid in lav decoding options is the best speed for my card (gtx 970 which has the so called hybrid accelerated decoding) with about 30% cpu usage vs the 35 of DXVA2 and 70% of pure software (none).

So the conclusion for now is to absolutely not use 0-255 if you have an nx1, I seriously doubt you actually get any benefit, besides the massive headache of handling it properly.

Kisaha Senior Member • Posts: 2,300
Re: Crushed Blacks, a temporary solution?

I'm coming back to this thread to post what I found out in the meantime.

The 0-255 files on nx1/nx500 are odd. At least on nx500, since that's all I have. Yes, they are flagged as fullrange, but not in the correct way I think. It's basically like having a 16-235 played back as 0-255, so it is indeed blackcrashed. My current guess is that no decoder currently actually looks for any flags, it is all default to 16-235.

Now the funny thing is, I said files look the same played back as in premiere imported. And it's true. But that's because the playback is crushed too, in VLC, or mphc. I just didn't realize it until now.

So basically so many people having problems with playback and encoding was actually to their benefit, because by some lucky coincidence ffmpeg converts 0-255 with a pc>tv level conversion by default.

I can't yet find a way to properly play it back yet. Selecting 16-235 output in LAV doesn't change anything, it's confusing, there is something I don't understand here. But I will find a way.

Also importing directly in premiere shows the footage crushed as on playback, but can be recovered for some reason with highlight/HDR white, contrast etc, but not sure it can be made to the exact same look.

So for people who want to use lossless footage before grading do a ffms or dss2 in avisynth and absolutely add a ColorYUV(levels="PC->TV"), or else you get a permanently crushed lossless file.

EDIT after some more trying around: the only way I find currently to playback correctly is  to use madvr renderer. EVR definitely is crushed, and so are all the other renderers. I think madvr is the only one that has source range detection. Press ctrl+j and you can see that it says: fullrange(says upstream). For blurays etc it is detected as limited range and they are also displayed correctly of course.

But it's still odd to me that ffms2 decodes it crushed as well considering it detects correctly it's fullrange.

More EDIT: in VLC, unchecking the option use hardware YUV>RGB conversions solves the problem. So it may be somewhat related to video card as well (I have nvidia)? BTW, range is correct with that setting even on other 16-235 clips.

Also, unrelated, using NVIDIA cuvid in lav decoding options is the best speed for my card (gtx 970 which has the so called hybrid accelerated decoding) with about 30% cpu usage vs the 35 of DXVA2 and 70% of pure software (none).

So the conclusion for now is to absolutely not use 0-255 if you have an nx1, I seriously doubt you actually get any benefit, besides the massive headache of handling it properly.

And what do you suggest for the NX500? There is no 0-255 option in camera.

MikeDPR Regular Member • Posts: 241
Re: Crushed Blacks, a temporary solution?

zipcode wrote:

...

So the conclusion for now is to absolutely not use 0-255 if you have an nx1, I seriously doubt you actually get any benefit, besides the massive headache of handling it properly.

It certainly looks like 16-235 is the way to go for Premiere Pro....if you plan to export to H.264.

If you plan to export to H.265/HEVC, I'm less sure. If I playback the output with MPC-HC I get the washed out look that you get when you playback a 16-235 file on a 0-256 setup. But then I get different renderings from different players so I'm confused as to which one (PP? MPC-HC? VLC?) is the culprit. This 0-255 vs 16-235 thing is such a mess. I wish they had standardized on one or made it more foolproof. Judging from interoperability issues we encounter so often, it's obvious software and equipment vendors are confused as well.

 MikeDPR's gear list:MikeDPR's gear list
Samsung NX300 Samsung NX1 Samsung NX 30mm F2 Pancake Samsung NX 20-50mm F3.5-5.6 ED Samsung NX 85mm F1.4 ED SSA +2 more
zipcode Regular Member • Posts: 312
Re: Crushed Blacks, a temporary solution?

Ok, took a file (all files on nx500 are 0-255 and you can't change that), straight to premiere pro, and export. Indeed h265 file is output as 0-255 and to h264 it outputs as 16-235 but without any conversion, so it's just clipped, or at least it's played back as clipped (with any decoder/renderer), because if I do a pc>tv conversion in avisynth it appears correct again (I'm quite confused here, there's something I don't understand about how this range flagging works).

MikeDPR, not sure what you mean by washed out look playing 16-235 on 0-255. That's pretty much the case of every video file until now (like dvd and bluray played back on pc) and they are not washed. You're lucky I think that the 0-255 hevc files show correctly for you. What decoder/renderer combination are you using? As I said, on my nvidia card the only option I found that works is using madvr as renderer or using software YUV>RGB conversion option in VLC (which is very slow).

I think all this 0-255 business is kinda 'new' for consumer video that's why the decoders and renderers simply don't expect it and handle it as 16-235. I'm sure that this will be fixed now that we found out there is a problem here, LAV, VLC and premiere are still actively developed.

The way I'll handle my files for now before importing to premiere is: avisynth file>ffms2>ColorYUV(levels="PC->TV")>save as utvideo 4:2:0 in virtualdubmod. This is about twice as fast and only a bit bigger than using rockymountains and exporting to prores 444 hq, and it's lossless too, and seeking is faster... But using rockymountains or straight ffmpeg will result in correct 16-235 file, same pc>tv conversion seems to be applied.

MikeDPR Regular Member • Posts: 241
Re: Crushed Blacks, a temporary solution?

zipcode wrote:

Ok, took a file (all files on nx500 are 0-255 and you can't change that), straight to premiere pro, and export. Indeed h265 file is output as 0-255 and to h264 it outputs as 16-235 but without any conversion, so it's just clipped, or at least it's played back as clipped (with any decoder/renderer), because if I do a pc>tv conversion in avisynth it appears correct again (I'm quite confused here, there's something I don't understand about how this range flagging works).

Are you running avisynth on the problematic H.264 file? If so, let me get this straight.

NX1/NX500 H.265 0-255 -> Premiere Pro -> H.264 (this renders clipped as we know)

Now you run avisynth on PP's H.264 output and it renders correct again? That means the file itself retains the info on 0-15 and 236-255 range and the player(s) just ignore them due to some flag perhaps. Interesting.

MikeDPR, not sure what you mean by washed out look playing 16-235 on 0-255. That's pretty much the case of every video file until now (like dvd and bluray played back on pc) and they are not washed.

Hmm...other than DVD and BD, are most video files (avi, mp4) played back on PC also in 16-235? What I see is that MPC-HC renders it washed out (grey blacks and whites) which is what you would see if you overlay 16-235 levels directly to 0-255 display without scaling of 16->0 and 235->255. But then if I try it on VLC, it seems to show correct blacks so I'm confused. VLC chokes badly on H.265 files so I get to see only a stalled snapshot or two.

You're lucky I think that the 0-255 hevc files show correctly for you. What decoder/renderer combination are you using? As I said, on my nvidia card the only option I found that works is using madvr as renderer or using software YUV>RGB conversion option in VLC (which is very slow).

HEVC 0-255 files from NX1 renders stunningly on my W10 PC (i7-2600) with MPC-HC as player. All other players I've tried choke badly.

I think all this 0-255 business is kinda 'new' for consumer video that's why the decoders and renderers simply don't expect it and handle it as 16-235. I'm sure that this will be fixed now that we found out there is a problem here, LAV, VLC and premiere are still actively developed.

The way I'll handle my files for now before importing to premiere is: avisynth file>ffms2>ColorYUV(levels="PC->TV")>save as utvideo 4:2:0 in virtualdubmod. This is about twice as fast and only a bit bigger than using rockymountains and exporting to prores 444 hq, and it's lossless too, and seeking is faster... But using rockymountains or straight ffmpeg will result in correct 16-235 file, same pc>tv conversion seems to be applied.

Shoot, I forgot about your suggestion couple weeks ago to try avisynth to forego transcoding. I will try it next time.

 MikeDPR's gear list:MikeDPR's gear list
Samsung NX300 Samsung NX1 Samsung NX 30mm F2 Pancake Samsung NX 20-50mm F3.5-5.6 ED Samsung NX 85mm F1.4 ED SSA +2 more
Jefbak
Jefbak Forum Member • Posts: 55
Re: Crushed Blacks, a temporary solution?

What about AME (Adobe Media Encoder which also opens HEVC natively)? Since I edit in FCPX (and also have Adobe creative cloud) on a MAC, first I encode Samsung NX1 files using a custom 4K to ProRes 4K preset (I use this preset for both my 4K and 120fps footage since AME uses "up to 4K"). I can go through the footage there and in the Effects tab section there are a few interesting tweaks available: Lumetri Look/Lut - I often find Midtones Desaturation helpful (if the color profile has switched back to standard as it likes to do), and there is SDR conform as well as a Video Limiter with quite a few options. I have not tested all these on a scope, but it might be worth a try, especially for FCPX users...

parakalien Contributing Member • Posts: 556
Re: Crushed Blacks, a temporary solution?

Even though Premiere can work with h.265 I still use Adobe Media Encoder to transcode to DNxHD for editing. I find that it plays back much better when editing and stays smooth even with a lot of effects applied and a complex timeline. When editing h.265 or h.264 it starts to stutter when things get more complex.

To help with file size (since DNxHD makes a rather large file) I keep all my h.265 original footage separate and after I've finished a project I'll delete the DNxHD files.  I can always convert it back again if I needed to change a finished project at a later date.  That way I'm not keeping two copies of the same footage.

My rig:

Sager Laptop running windows 10 x64

i7-6820hk (running at 4.0ghz stable)

GTX 970m

16gb ddr4 2133

1 Samsung m.2 SSD (OS/Apps)

2 HyperX SATA SSD (1 project files and source footage, the other Media Cache, Previews, and Exports)

If that can't edit h.265 without any slowdown, I don't know what will.

 parakalien's gear list:parakalien's gear list
Canon EOS Rebel SL1 Samsung NX500 Samyang 24mm F1.4 Samsung NX 45mm F1.8 Canon EF-S 18-55mm f/3.5-5.6 IS STM
Keyboard shortcuts:
FForum MMy threads