I have a few recordings I made using an iPhone shooting in Log mode. Now that I am finished editing the videos I would like to archive the original source footage for potential future use, but since I am not really expecting to ever need it again I would like to shrink the footage from 4K to 2K/FHD resolution. However, everytime I try to transcode the image, I seem to be slightly shifting the color information. I realize that this makes sense considering I am shrinking the resolution.

My question would be how I can be certain that I am not damaging the log color information in case I would want to reuse this footage again in the future? Do I just need to pay attention that the video still looks washed out or is there anything I can specifically test to check if the footage is still in log format after transcoding?

I have below attached both a ffprobe and Mediainfo readout of the original footage:

ffprobe
ffprobe -hide_banner iphone-20250412.mov 
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'iphone-20250412.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2025-04-12T12:59:47.000000Z
    com.apple.quicktime.full-frame-rate-playback-intent: 1
    com.apple.proapps.manufacturer: Apple Inc.
    com.apple.proapps.clipID: C's iPhone001_04120859_C001
    com.apple.proapps.reel: 1
    com.apple.proapps.scene: 1
    com.apple.proapps.shot: 1
    com.apple.proapps.isGood: 0
    com.apple.proapps.logNote: 
    com.apple.proapps.customgamma: com.apple.rec2020.apple-log
    com.blackmagic-design.camera.dayNight: Day
    com.blackmagic-design.camera.environment: Interior
    com.blackmagic-design.camera.dateRecorded: 2025-04-12T08:59:47-0400
    com.blackmagic-design.shutterMode: Speed
    com.blackmagic-design.shutterSpeed: 1/40
    com.blackmagic-design.camera.iso: 157
    com.blackmagic-design.camera.whiteBalanceKelvin: 3530
    com.blackmagic-design.camera.whiteBalanceTint: 6
    com.blackmagic-design.camera.aperture: f1.8
    com.blackmagic-design.camera.lensType: iPhone 16 Pro 24mm
    com.blackmagic-design.sensorFPS: 30
    com.blackmagic-design.camera.projectName: Code SSH Studios
    com.apple.quicktime.title: Code SSH Studios
    com.blackmagic-design.camera.director: Code SSH
    com.apple.quicktime.director: Code SSH
    com.apple.proapps.cameraName: C's iPhone
    com.blackmagic-design.camera.cameraOp: Code SSH
    com.apple.quicktime.location.ISO6709: +39.15022-086.52144/
    com.apple.quicktime.software: Blackmagic Cam 2.3.000047
    com.apple.quicktime.model: Apple iPhone 16 Pro 24mm
    com.apple.quicktime.creationdate: 2025-04-12T08:59:47-0400
  Duration: 00:58:18.85, start: 0.000000, bitrate: 794358 kb/s
  Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt2020nc/bt2020/unknown, progressive), 3840x2160, 790587 kb/s, 29.99 fps, 30 tbr, 600 tbn (default)
    Metadata:
      creation_time   : 2025-04-12T12:59:47.000000Z
      handler_name    : Core Media Video
      vendor_id       : [0][0][0][0]
      encoder         : Apple ProRes 422 HQ
      timecode        : 08:59:47:00
  Stream #0:1[0x2](und): Audio: pcm_s16le (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s16, 1536 kb/s, start 0.003333 (default)
    Metadata:
      creation_time   : 2025-04-12T12:59:47.000000Z
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2025-04-12T12:59:47.000000Z
      handler_name    : Core Media Time Code
      timecode        : 08:59:47:00
Unsupported codec with id 0 for input stream 2
Mediainfo
General
Complete name                            : /clip.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.00 (qt  )
File size                                : 324 GiB
Duration                                 : 58 min 18 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 794 Mb/s
Frame rate                               : 30.000 FPS
Recorded date                            : 2025-04-12 08:59:47-04:00
Encoded date                             : 2025-04-12 12:59:47 UTC
Tagged date                              : 2025-04-12 13:58:06 UTC
Recorded location                        : 39.15022°N 86.52144°W
Writing application                      : Blackmagic Cam 2.3.000047
Writing library                          : Apple QuickTime
Writing hardware                         : Apple iPhone 16 Pro 24mm
com.apple.quicktime.full-frame-rate-play : 1
com.apple.proapps.manufacturer           : Apple Inc.
com.apple.proapps.clipID                 : XXX' iPhone001_04120859_C001
com.apple.proapps.reel                   : 1
com.apple.proapps.scene                  : 1
com.apple.proapps.shot                   : 1
com.apple.proapps.isGood                 : 0
com.apple.proapps.customgamma            : com.apple.rec2020.apple-log
com.blackmagic-design.camera.dayNight    : Day
com.blackmagic-design.camera.environment : Interior
com.blackmagic-design.camera.dateRecorde : 2025-04-12T08:59:47-0400
com.blackmagic-design.shutterMode        : Speed
com.blackmagic-design.shutterSpeed       : 1/40
com.blackmagic-design.camera.iso         : 157
com.blackmagic-design.camera.whiteBalanc : 3530
com.blackmagic-design.camera.whiteBalanc : 6
com.blackmagic-design.camera.aperture    : f1.8
com.blackmagic-design.camera.lensType    : iPhone 16 Pro 24mm
com.blackmagic-design.sensorFPS          : 30
com.blackmagic-design.camera.projectName : XXX
com.apple.quicktime.title                : XXX
com.blackmagic-design.camera.director    : XXX
com.apple.quicktime.director             : XXX
com.apple.proapps.cameraName             : XXX
com.blackmagic-design.camera.cameraOp    : XXX

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 HQ
Codec ID                                 : apch
Duration                                 : 58 min 18 s
Bit rate mode                            : Variable
Bit rate                                 : 791 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Minimum frame rate                       : 28.571 FPS
Maximum frame rate                       : 31.579 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 3.178
Stream size                              : 322 GiB (100%)
Title                                    : Core Media Video
Writing library                          : Apple
Encoded date                             : 2025-04-12 12:59:47 UTC
Tagged date                              : 2025-04-12 13:58:06 UTC
Color primaries                          : BT.2020
Matrix coefficients                      : BT.2020 non-constant

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : lpcm
Duration                                 : 58 min 18 s
Source duration                          : 58 min 18 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 641 MiB (0%)
Source stream size                       : 641 MiB (0%)
Title                                    : Core Media Audio
Encoded date                             : 2025-04-12 12:59:47 UTC
Tagged date                              : 2025-04-12 13:58:06 UTC

Other
ID                                       : 3
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 32 ms
Frame rate                               : 30.000 FPS
Time code of first frame                 : 08:59:47:00
Time code of last frame                  : 08:59:47:00
Time code, stripped                      : Yes
Title                                    : Core Media Time Code
Encoded date                             : 2025-04-12 12:59:47 UTC
Tagged date                              : 2025-04-12 13:58:06 UTC
  • A_norny_mousse@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    2 个月前

    So you made a video of a scrolling log? For text to remain readable, that requires loads of data, less compression. Video codecs are not really built for this.

    Mr Hindsight says you should’ve stored it as text right from the start.

    Anyhow, the washed out colors are basically lack of detail, right?

    The whole video needs maximum motion detection. Reduce the resolution, but make sure the bitrate is not (relatively) reduced.

    Original:

    3840x2160, 790587 kb/s, 29.99 fps

    Let’s say you want 1920x1080, that’s a quarter of the original, so you should make sure the transcoding process stays at +/- a quarter the original bitrate (also be aware the difference of kb vs kB) and same framerate.

    This should make sure the detail is the same.

    Don’t expect the result to be satisfactory after the first try, you probably need to tweak settings more. https://ffmpeg.org/ffmpeg-all.html

    • SiruOP
      link
      fedilink
      arrow-up
      1
      ·
      2 个月前

      Thank you for the reply. I guess I didn’t make myself entirely clear in the original text, but I am talking about logarithmic color information, for better post production color grading. Not a text log.

      The actual video is actually a frontal shot of a person talking like you would see in a newsroom. There is no text present in the video.

      But yes, I absolutely agree with you, storing a text log as a video would be very inefficient and would require a huge amount of bitrate.

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 个月前

        I am talking about logarithmic color information, for better post production color grading. Not a text log.

        Right. Well, essentially my reply stands: that’s a lot of fine-grained information, the video codec thinks it’s a movie and it should be reduced.

        edit: considering the video is more diverse than I assumed you should also look into 2-step encoding.

  • SiruOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 个月前

    I asked this same question on Reddit as well and figured I would copy over the answers that were given there so that Lemmy starts building up more searchable content/information.

    Reply from @bobbster574@reddit.com

    So the log data is just the way the luminance is stored in the image. It is the reason it is washed out; the image is being interpreted as a standard rec.709 SDR video when it isn’t. Log is often completely unlabelled leaving you to make sure youre using the correct operations for that specific log format.

    Ffmpeg shouldn’t affect the log gamma unless you apply a lut or perform tonemapping to transform the image. That said, I’m not sure if ffmpeg will pass through all your original metadata about shooting settings which may or may not affect the processing in your editing software.

    If you’re seeing significant colour shifts, something has potentially gone wrong but it’s also worth making sure that you check with your full processing pipeline rather than just a standard video player as it might be differences in interpretation between formats/metadata/etc rather than differences in pixel data.

    This is also worth doing to make sure that your downsampling and compression retain enough quality for your purposes.

    As the file is encoded in ProRes, it may actually be worth keeping the original resolution but compressing to high bitrate HEVC/H.265 which will generally not present any notable artefacts but still allow you to compress down to ¼-½ the size.

    Reply from @ThiccBruhMoment@reddit.com

    If they use av1, they should be able to hit ⅒ size and still have perfect quality. svtav1 preset 4 crf 20 should work.