Announcement

Collapse
No announcement yet.

Error 702 with AV1 HDR10+ Content for MKV (The case for upgrading ffmpeg)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Netflix Error 702 with AV1 HDR10+ Content for MKV (The case for upgrading ffmpeg)

    This was discussed with back and forth between Germania and I. Still no resolution, so posting a formal issue.

    AV1 SDR is available on all plans, but Premium has AV1 HDR10+

    If you try to download content in AV1 with a Premium plan, StreamFab is served the version with HDR10+ (if available of course)

    StreamFab downloads it, but doesn't show the HDR10 pill. When it tries to assemble the chunks (Processing) before remuxing to MKV, StreamFab returns error code 702.

    Relevant StreamFab.log entries:

    Code:
    [Info]: Remux show module: "Netflix"
    [Info]: Remux show showname: "Designated Survivor"
    [Info]: Remux show seasontext: "Season 3"
    [Info]: Remux show episodename: "#thesystemisbroken"
    [Info]: Remux show episodetext: "Season 3"
    [Info]: Remux show seasonnumber: 3
    [Info]: Remux show episodenumber: 1
    [Info]: Remux show year: "2019"
    [Info]: Remux show resolution: "1080P"
    [Info]: Remux show videocodec: "AV1"
    [Info]: Remux show videorange: "SDR"
    [Info]: Remux show audiocodec: "EAC3"
    [Info]: Remux show resolutionwidth: 1920
    [Info]: Remux show resolutionheight: 1080
    [Info]: Remux show showname after change:  "Designated Survivor"
    [Info]: Remux show seasontext after change:  "Season 3"
    [Info]: Remux show episodename after change:  "#thesystemisbroken"
    ​...
    ...
    ...
    [Info]: [CefMedia]  Invalid Mastering Display Color Volume box\r\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0000014b239276c0] error reading header\r\nD:/StreamFab/Temp/outputTemp/Netflix/2025_04_30_16_05_09_81015334/video/1392399577: Invalid data found when processing input\r\n
    [Info]: [CefMedia] StartRemuxMultiAudioSrtMetaUtil BROKEN_PIPE exit.
    As you may or may not know, in order to generate an HDR10+ file, you need to pass the metadata, and it looks like the ffmpeg version used doesn't do that for MKV.

    For MP4, it does work, although the metadata for HDR is in triplicate, and other meta is in duplicate:

    Click image for larger version  Name:	image.png Views:	0 Size:	294.2 KB ID:	462461
    If i use MP4, the resulting file has HDR10 metadata but Kodi cannot play the file. MPC-HC does play the file. The extra metadata might be why Kodi fails as it does support HDR10 is trying to play it correctly while MPC-HC does tone mapping...

    If i use MKVToolnix 92 to remux the StreamFab mp4 to mkv, the resulting file is HDR10 and it has proper metadata:

    Click image for larger version  Name:	image.png Views:	0 Size:	58.5 KB ID:	462462

    If i then take the mkvtoolnix file and use ffmpeg to remux back into an mp4, the metadata is fixed and it plays in Kodi

    Observations and findings:
    • When StreamFab remuxes the AV1 HDR10+ file to MP4, the remux progress bar fills up and restarts 3-4 times.
    • Upgrading StreamFab's ffmpeg to ffmpeg version 7.1.1, the remux to MKV now works.
    • Upgrading StreamFab's mp4box to mp4box 2.4-rev0-g5d70253a-master does not fix the metadata or Kodi playback
    All this to say, ffmpeg inside StreamFab needs to be updated ( @Cats4U) ! I was testing as i was writing this so when i actually fixed it, i had written a lot so i just edited it a bit to add ffmpeg info as i didn't want to have wasted my time

    There probably should be a new option added to the Netflix codec selection/settings:
    • Rename AVI to AV1 - SDR
    • Add AV1 - HDR10+

    #2
    In summary: confirmed (not surprising)

    OK, I tried Designated Survivor.s03e01 with unchanged SF 6234
    (btw: I never get the AV1 Standard offer with Premium plan)

    I get the same (Original + changed) values with mp4 created by mp4box:

    Track name + Performer (?) = epi title
    Code:
    HDR format : SMPTE ST 2086, HDR10 compatible / SMPTE ST 2086, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
    MasteringDisplayColorPrimaries_Original + MasteringDisplay_Luminance_Original + MaxCLL_Original + MaxFALL_Original
    with mkv (ffmpeg) I get error 702 "Invalid Mastering Display Color Volume box" (ffmpeg 6.0)
    with mkv (mkvtoolnix) all fine and correct entries (mkvmerge v68)

    After replace ffmpeg with 7.1.1 error 702 is away
    HDR format : SMPTE ST 2086, HDR10 compatible
    and like mp4box (but without MasteringDisplayColorPrimaries_Original)
    MasteringDisplay_Luminance_Original + MaxCLL_Original + MaxFALL_Original
    and new => VENDOR_ID : [0][0][0][0]

    With my standard player mpc-hc it is only slightly darker ..
    .. but I think mkvmerge should be the best choice for Kodi at the moment

    I have never experienced an SF problem with the current ffmpeg​

    Comment

    Working...
    X