Very high resolution 22600 x 2520 pixels MP4

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
Lee Harper
Posts: 2
Joined: Sat Jun 25, 2022 2:46 pm

Very high resolution 22600 x 2520 pixels MP4

Post by Lee Harper »

Description of problem or question:
I'm trying to create a very high resolution mp4 file (22600 x 2520 pixels) for a huge LED display screen and Handbrake doesn't seem to be able to encode it at that size. Am I at the limit of the Handbrake or mp4 sizing?

I've made a Quicktime file (Animation codec) at the correct resolution, output from After Effects. When this comes in to Handbrake, in the Dimensions tab it shows:

'Source Dimensions'
'Storage size 22600 x 2520 Display size 22600x2520'

'Final Dimensions'
'Storage size 20480 x 2520 Display size 22600'

Nothing I can do changes the Final Dimensions to be the same as the Source Dimensions. When I encode with the settings above, Handbrake fails. I've included the log file.

I'd just like to make a mp4 version of the Quicktime file, with the same dimension settings as the original.

Any advice or help would be very much appreciated, many thanks
Lee

Steps to reproduce the problem (If Applicable):


HandBrake version (e.g., 1.0.0):
HandBrake 1.5.1 (2022011000)

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Pro
Version 21H1
OS build 19043.1766

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.5.1 (2022011000)
OS: Microsoft Windows NT 10.0.19043.0
CPU: Intel(R) Core(TM) i9-7980XE CPU @ 2.60GHz
Ram: 65208 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 Ti - 27.21.14.5730
Screen: 1920x1080
Temp Dir: C:\Users\Gizmo Animation\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Gizmo Animation\AppData\Roaming\HandBrake

-------------------------------------------

 # Starting Encode ...

[15:38:49] base preset: 22600x2520 Hamleys Hangzhou
[15:38:50] Remote Process started with Process ID: 15520 using port: 8037. Max Allowed Instances: 1
[15:38:50] Worker: Starting HandBrake Engine ...
[15:38:50] Worker: Starting Web Server on port 8037 ...
[15:38:51] Worker: Disconnected worker monitoring enabled!
[15:38:51] Compile-time hardening features are enabled
[15:38:51] hb_init: starting libhb thread
[15:38:51] Starting work at: Sat Jun 25 15:38:51 2022
[15:38:51] 1 job(s) to process
[15:38:51] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd",
      "copy:mp2"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Work\\Jellycat\\Hamleys Hangzhou\\Visuals\\swimdontswim Hamleys Hangzhou 2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 13,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "2520",
          "width": "20480"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 565,
    "Den": 512
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Work\\Jellycat\\Jellycat underwater scene\\Visuals\\swimdontswim Hamleys Hangzhou.mov"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22,
    "QSV": {
      "Decode": false
    }
  }
}
[15:38:51] CPU: Intel(R) Core(TM) i9-7980XE CPU @ 2.60GHz
[15:38:51]  - logical processor count: 36
[15:38:51] Intel Quick Sync Video support: no
[15:38:51] hb_scan: path=E:\Work\Jellycat\Jellycat underwater scene\Visuals\swimdontswim Hamleys Hangzhou.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image E:\Work\Jellycat\Jellycat underwater scene\Visuals\swimdontswim Hamleys Hangzhou.mov
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(E:\Work\Jellycat\Jellycat underwater scene\Visuals\swimdontswim Hamleys Hangzhou.mov\) failed
[15:38:51] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrealibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
d: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[15:38:51] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Work\Jellycat\Jellycat underwater scene\Visuals\swimdontswim Hamleys Hangzhou.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2022-06-25T13:26:31.000000Z
  Duration: 00:00:12.00, start: 0.000000, bitrate: 24404781 kb/s
  Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24(progressive), 22600x2520, 24404082 kb/s, SAR 1:1 DAR 565:63, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2022-06-25T13:26:31.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : appl
      encoder         : Animation
      timecode        : 00:00:00:00
  Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2022-06-25T13:26:31.000000Z
      handler_name    : Time Code Media Handler
      timecode        : 00:00:00:00
[15:38:51] scan: decoding previews for title 1
[15:39:08] scan: 10 previews, 22600x2520, 25.000 fps, autocrop = 0/0/0/0, aspect 8.97:1, PAR 1:1, color profile: 1-1-1, chroma location: unspecified
[15:39:08] libhb: scan thread found 1 valid title(s)
[15:39:08] Skipping subtitle scan.  No suitable subtitle tracks.
[15:39:08] Starting Task: Encoding Pass
[15:39:08] Skipping vfr filter
[15:39:08] work: only 1 chapter, disabling chapter markers
[15:39:08] job configuration:
[15:39:08]  * source
[15:39:08]    + E:\Work\Jellycat\Jellycat underwater scene\Visuals\swimdontswim Hamleys Hangzhou.mov
[15:39:08]    + title 1, chapter(s) 1 to 1
[15:39:08]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:39:08]    + data rate: -1365022 kbps
[15:39:08]  * destination
[15:39:08]    + E:\Work\Jellycat\Hamleys Hangzhou\Visuals\swimdontswim Hamleys Hangzhou 2.mp4
[15:39:08]    + container: MPEG-4 (libavformat)
[15:39:08]      + align initial A/V stream timestamps
[15:39:08]  * video track
[15:39:08]    + decoder: qtrle 8-bit (yuv420p)
[15:39:08]      + bitrate -1365721 kbps
[15:39:08]    + filters
[15:39:08]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[15:39:08]      + Decomb (mode=39)
[15:39:08]      + Crop and Scale (width=20480:height=2520:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:39:08]        + source: 22600 * 2520, crop (0/0/0/0): 22600 * 2520, scale: 20480 * 2520
[15:39:08]    + Output geometry
[15:39:08]      + storage dimensions: 20480 x 2520
[15:39:08]      + pixel aspect ratio: 565 : 512
[15:39:08]      + display dimensions: 22600 x 2520
[15:39:08]    + encoder: H.264 (libx264)
[15:39:08]      + preset:  fast
[15:39:08]      + profile: main
[15:39:08]      + level:   4.0
[15:39:08]      + quality: 22.00 (RF)
[15:39:08]      + color profile: 1-1-1
[15:39:08]      + chroma location: unspecified
[15:39:08] sync: expecting 300 video frames
[15:39:08] encx264: encoding at constant RF 22.000000
[15:39:08] apply_h264_level [warning]: frame size (20480x2528, 202240 macroblocks) too high for level 4.0 (max. 8192 macroblocks)
[15:39:08] apply_h264_level [warning]: frame too wide (20480) for level 4.0 (max. 4096)
[15:39:08] encx264: unparsed options: level=4.0:ref=1:bframes=0:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [error]: invalid width x height (20480x2520)
encx264: x264_encoder_open failed.
Failure to initialise thread 'H.264/AVC encoder (libx264)'
[15:39:08] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:39:08] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[15:39:08] qtrle-decoder done: 0 frames, 0 decoder errors
[15:39:08] sync: got 0 frames, 300 expected
[15:39:08] Finished work at: Sat Jun 25 15:39:08 2022
[15:39:08] libhb: work result = 3

 # Job Failed to Initialise. Check log and input settings (3)

User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Very high resolution 22600 x 2520 pixels MP4

Post by s55 »

Your past the limits of H.264 standard

8,192×4,320 is the maximum for H.264 level 6.2
Lee Harper
Posts: 2
Joined: Sat Jun 25, 2022 2:46 pm

Re: Very high resolution 22600 x 2520 pixels MP4

Post by Lee Harper »

Thanks s55 for the reply. We received initial information saying that we had to make the file at 22600 pixels wide, but it turns out they actually want an mp4 at 8000 pixels wide - they sent us a previous mp4 file they've used on the screen. So we're within range of the mp4 maximum pixel resolution.
Lesson learned... for unusual screens like this, it's really useful to either get a spec sheet or a previous sample file to refer to!

Thanks again
Lee
Post Reply