Jump to content

Attila Bakos

Members
  • Posts

    513
  • Joined

  • Last visited

Posts posted by Attila Bakos

  1. 35 minutes ago, androidlad said:

    Decoding a BT.709 YCbCr signal using BT.601 and BT.709 matrix should produce two different results, so, if Scratch was truly respecting the tags, internal and external should look different. Of course this is all based on the assumption that the camera originated YCbCr data is the same between internal and external.

    That's why I believe that assumption is wrong and the data itself is different.

    EDIT: Forgot to tell you that I experimented with extracting the raw stream and inserting it into another container without any flags. In this case even Scratch shows the difference, so my theory seems to be correct.

    EDIT2: Or just use this script: ffmpeg -i INPUT.MOV -c copy -bsf:v hevc_metadata=matrix_coefficients=1 OUTPUT.MOV
    It only changes the matrix coefficients tag to BT.709, and immediately you can see a difference in Scratch. So it's respecting the tags.

  2. I think the underlying YCbCr data is different in the internal version compared to the ProRes version. Both share the same BT.709 primaries but the internal version requires the BT.601 matrix coefficients to convert to the correct RGB values. Resolve and Premiere seems to ignore this flag and they use the BT.709 matrix. This is perfect for the external recording, but not so much for the internal as we have seen. The LUT and the matrix that's included in that package is basicly a multiplication of two matrices, the first one converts from RGB to YCbCr using the 701 matrix, the second one converts YCbCr to RGB with the 601 matrix. So it basicly undoes the wrong YCbCr->RGB conversion and redoes it correctly. Scratch does one thing that Premiere & Resolve does not, it actually gives a shit about the flags :)

  3. UPDATE: I believe we were looking at this the wrong way. There is only one place for these tags and it's at the stream level, however Premiere and Resolve doesn't even read these flags. Assimilate Scratch does, and if you modify the flags with FFMpeg the footage will look different in Scratch. The difference is also visible with MPC-HC, or FFPlay. At this point I don't think we can do much, maybe tell BM Support that they should care about these flags.

    This also leads me to believe that the Fuji flags are correct, and the bad interpretation is not a result of a confusion.

  4. 16 minutes ago, androidlad said:

    were you able to change metadata tags for both stream and container ? What does ffprobe say for the altered file?

    I can change the stream metadata tags with the commands I posted earlier.
    If I list the streams with ffprobe (ffprobe -v error -show_streams INPUT.MOV), then I get this in the original HEVC stream:
    color_space=smpte170m
    color_transfer=smpte170m
    color_primaries=bt709

    After converting all to bt709 I get this:
    color_space=bt709
    color_transfer=bt709
    color_primaries=bt709

    What I don't know is how I can change things on the container level.

    EDIT:

    ffprobe -show_format actually shows the container tags, and this is what I get for the original file:

    [FORMAT]
    filename=DSCF7556.MOV
    nb_streams=3
    nb_programs=0
    format_name=mov,mp4,m4a,3gp,3g2,mj2
    format_long_name=QuickTime / MOV
    start_time=0.000000
    duration=25.000000
    size=635467264
    bit_rate=203349524
    probe_score=100
    TAG:major_brand=qt
    TAG:minor_version=0
    TAG:compatible_brands=qt
    TAG:creation_time=2019-01-14T16:13:13.000000Z
    TAG:original_format=Digital Camera
    TAG:original_format-eng=Digital Camera
    TAG:comment=FUJIFILM DIGITAL CAMERA X-T3
    TAG:comment-eng=FUJIFILM DIGITAL CAMERA X-T3
    [/FORMAT]

    So there is nothing here about colors. Then it's interesing why changing metadata on the stream level does nothing in Resolve/Premiere.

  5. 14 minutes ago, androidlad said:

    BBC already published a tool to change colour metadata and I tried it, it didn't work because all it does (including recent ffmpeg builds) is changing the metadata tags at container level (QuickTime), while the actual metadata tags are also present at stream level (H.264/H.265), to change metadata tags at stream level you might need to go extremely sophisticated with hex editor.

    I see. So it's theoretically possible but we don't have the tools. Doing this by hand is beyond my skills I'm afraid.

    Btw ffmpeg's manual says, that it modifies headers in the stream: https://ffmpeg.org/ffmpeg-bitstream-filters.html#hevc_005fmetadata

  6. With recent ffmpeg builds you can change HEVC/H.264 flags, and it doesn't solve the issue. There must be something else too.

    If you want to try it, use this command to change all the color related flags to BT.709:

    ffmpeg -i INPUT.MOV -c copy -bsf:v hevc_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 OUTPUT.MOV

    And this to change all to BT.601:

    ffmpeg -i INPUT.MOV -c copy -bsf:v hevc_metadata=colour_primaries=6:transfer_characteristics=6:matrix_coefficients=6 OUTPUT.MOV

  7. 2 hours ago, androidlad said:

    It happens with all fuji camera internal H.264 and H.265 files, with the exception of HLG.

    We had a discussion in another thread but I forgot what the consensus was. I still have those files with the man in red jacket coming from the X-T3 and from the Ninja V. In Assimilate Scratch they look the same, but in Premiere and Resolve they look different. We already have the LUTs to make them look identical, but I don't know which one is correctly displayed.

    Edit: nevermind, just found the thread where you said that the Ninja is showing the correct colours. I think I'll do a DCTL for the Fuji internal files for more precision.

  8. 9 hours ago, thebrothersthre3 said:

     

    Would you use the vingette in a video for that purpose or just still images? 

    It's just a window around the person with a very soft edge, it can be tracked as well. I use this many times to help focusing on the subject. If you don't overdo it can be quite helpful sometimes.

  9. 1 hour ago, ErisC said:

    Thanks for the reply, I don't use Premiere Pro, I use Davinci Resolve and  the h.265(HEVC) is much darker, there is a solution on Mac?

    Try setting both clips to full range in Resolve. Do they show a difference?

  10. 25 minutes ago, BrunoCH said:

    @Attila Bakos

    It's a little bit off topic but not too much because the XT3 can be powered by Anker batteries. Here is the solution I found to hold my battery: 

    https://www.amazon.fr/gp/product/B00X752FNA/ref=ppx_yo_dt_b_asin_title_o00__o00_s00?ie=UTF8&psc=1 + cable tie

    After just attach it to any monitor or LED holder mount.

    Curious to know if someone has found another solution?

    IMG_6561.jpg

    Looks good, I use this phone holder until I get something better: https://m.aliexpress.com/item/32797019174.html?trace=wwwdetail2mobilesitedetail&spider=y&productId=32797019174&productSubject=Ulanzi-IRON-MAN-II-Aluminum-Metal-Smartphone-Tripod-Mount-with-Cold-Shoe-Mount-Cell-Phone-Tripod

  11. If we assume that the HEVC is displayed correctly, then applying this conversion to the Ninja V Prores file will do the trick:

    ffmpeg -i input.mov -vf scale=in_color_matrix=bt709:out_color_matrix=bt601 -colorspace bt709 -c:v prores_ks -profile:v 2 -c:a copy output.mov

    I used level 2 (normal) compression. Use level 3 for HQ. I don't know if you can do this without recompression. Also commented this on youtube.

    EDIT:

    There's also an easier fix, download this LUT pack: http://www.pantarheon.org/601vs709luts.zip
    Then apply Rec601ToRec709.cube on the Ninja footage.

  12. 2 minutes ago, androidlad said:

    I'm beginning to think this issue could be linked to the magenta banding issue as well.

    X-T3 F-log and film sim files (both H.264/H.265) still have BT.709/601/601 tags. HLG mode however has full BT.2020/HLG/BT.2020 tags. This could affect how the files are decoded.

    The magenta banding was horrible on the X-T2, but I didn't see it yet on the X-T3. I remember your post so I know that it's still there, but it might be manageable. Do you have a downloadable MOV with the issue?

  13. Just now, androidlad said:

    But you got an X-T3?

    Yes, but I don't miss 4:2:2 at all with this camera, so I'm not facing issues like this guy does. Just checked the liftgammagain forum and apparently my conclusion was that the latest Resolve & Premiere are fine, there was no difference between in camera and external recordings. But seeing this video this is not true anymore, at least not for the X-T3 & the Ninja V.

  14. Just now, androidlad said:

    What was your solution in the end?

    A simple one, I sold my X-T2 and the Video Assist 4K ? Not for this reason though. Unfortunately I can't remember if I applied a conversion or just ignored the issue.

  15. 10 minutes ago, androidlad said:

    @Attila Bakos This video seems to highlight the colour shift issue you mentioned on liftgammagain forum.

    Ah, so this is still an issue. The guy's conlusion that the shift is caused by less color information in the H265 is off, but I see you already addressed it in the comments.

  16. 2 minutes ago, thebrothersthre3 said:

    I see it. Looks like what you'd get if you had a fluorescent light on and the wrong shutter speed. Looks like natural light though. 

    I thought the same so I played with the shutter speed, didn't make a difference, and when I first saw it it was with natural light.

×
×
  • Create New...