Recent Output change - Seeking possible reasons

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
jaydeflix
Posts: 3
Joined: Fri Sep 24, 2021 6:25 pm

Recent Output change - Seeking possible reasons

Post by jaydeflix »

Description of problem or question:

Every week for the past few months, I've been given a 1280x720 MP4 file that I create captions for and then, using HandBrake, I burn in the captions for sharing on LinkedIn (they don't allow a separate upload of the captions).

Over the past two weeks, HandBrake has behaved differently by spitting out a 1280x362 MKV file.

I don't think this is a HandBrake issue, but I'd like to get some theories as to what the person creating the MP4 could be doing differently to make this happen as I haven't changed any of the settings (afaik). Unfortunately the 1280x362 file is not usable.

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.4.1 (2021081500)


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):




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

Code: Select all

HandBrake 1.4.1 (2021081500)
OS: Microsoft Windows NT 10.0.22463.0
CPU: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
Ram: 15970 MB, 
GPU Information:
  Intel(R) Iris(R) Plus Graphics - 27.20.100.8681
Screen: 2496x1664
Temp Dir: C:\Users\jayde\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\jayde\AppData\Roaming\HandBrake

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


# Starting Encode ...
[11:10:20] base preset: Fast 1080p30
Remote Process started with Process ID: 27632 using port: 8037. Max Allowed Instances: 1
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[11:10:20] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
[11:10:21] hb_init: starting libhb thread
[11:10:21] Starting work at: Fri Sep 24 11:10:21 2021
[11:10:21] 1 job(s) to process
[11:10:21] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "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": "C:\\Users\\jayde\\Videos\\Boris-Zalkin-Short-1.m4v",
    "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": "178",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "180",
          "height": "362",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Name": "boris-zalkin-short"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\jayde\\Downloads\\boris-zalkin-short.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": true,
        "Default": false,
        "Forced": false,
        "ID": 0,
        "Offset": 0,
        "Track": -1,
        "Import": {
          "Codeset": "UTF-8",
          "Filename": "C:\\Users\\jayde\\Downloads\\boris-zalkin-short.en_US.srt",
          "Language": "eng",
          "Format": "SRT"
        }
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22,
    "QSV": {
      "Decode": false
    }
  }
}
[11:10:21] CPU: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
[11:10:21]  - Intel microarchitecture Ice Lake
[11:10:21]  - logical processor count: 8
[11:10:21] Intel Quick Sync Video support: yes, gpu list: 0
[11:10:21] Intel Quick Sync Video integrated adapter with index 0
[11:10:21]  - Intel Media SDK hardware: API 1.33 (minimum: 1.3)
[11:10:21]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[11:10:21]  - H.264 encoder: yes
[11:10:21]     - preferred implementation: hardware (1) via D3D11
[11:10:21]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[11:10:21]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[11:10:21]     - preferred implementation: hardware (1) via D3D11
[11:10:21]     - capabilities (hardware):  lowpower bpyramid icq vsinfo opt1
[11:10:21] hb_scan: path=C:\Users\jayde\Downloads\boris-zalkin-short.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Users\jayde\Downloads\boris-zalkin-short.mp4
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(C:\Users\jayde\Downloads\boris-zalkin-short.mp4\) failed
[11:10:21] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: Calibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
n't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[11:10:21] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\jayde\Downloads\boris-zalkin-short.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : boris-zalkin-short
    encoder         : Lavf58.76.100
    keywords        : iMovie
  Duration: 00:00:16.32, start: 0.000000, bitrate: 1141 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1005 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : Core Media Video
      vendor_id       : [0][0][0][0]
      timecode        : 00:00:00:00
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]
  Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
    Metadata:
      handler_name    : Core Media Video
      timecode        : 00:00:00:00
[11:10:21] scan: decoding previews for title 1
[11:10:21] scan: audio 0x1: aac, rate=48000Hz, bitrate=128480 English (AAC LC) (2.0 ch) (128 kbps)
[11:10:21] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 180/178/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[11:10:21] scan: supported video decoders: avcodec qsv
[11:10:21] libhb: scan thread found 1 valid title(s)
[11:10:21] Skipping subtitle scan.  No suitable subtitle tracks.
[11:10:21] Starting Task: Encoding Pass
[11:10:21] [ass] libass API version: 0x1501000
[11:10:21] [ass] libass source: tarball: 0.15.1
[11:10:21] [ass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.1 (COMPLEX)
[11:10:21] [ass] Using font provider directwrite
[11:10:21] work: track 1, dithering not supported by codec
[11:10:21] work: only 1 chapter, disabling chapter markers
[11:10:21] job configuration:
[11:10:21]  * source
[11:10:21]    + C:\Users\jayde\Downloads\boris-zalkin-short.mp4
[11:10:21]    + title 1, chapter(s) 1 to 1
[11:10:21]    + container: mov,mp4,m4a,3gp,3g2,mj2
[11:10:21]    + data rate: 1141 kbps
[11:10:21]  * destination
[11:10:21]    + C:\Users\jayde\Videos\Boris-Zalkin-Short-1.m4v
[11:10:21]    + container: MPEG-4 (libavformat)
[11:10:21]      + align initial A/V stream timestamps
[11:10:21]  * video track
[11:10:21]    + decoder: h264 8-bit
[11:10:21]      + bitrate 1005 kbps
[11:10:21]    + filters
[11:10:21]      + 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)
[11:10:21]      + Decomb (mode=39)
[11:10:21]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:10:21]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[11:10:21]      + Subtitle renderer ()
[11:10:21]      + Crop and Scale (width=1280:height=362:crop-top=180:crop-bottom=178:crop-left=0:crop-right=0)
[11:10:21]        + source: 1280 * 720, crop (180/178/0/0): 1280 * 362, scale: 1280 * 362
[11:10:21]    + Output geometry
[11:10:21]      + storage dimensions: 1280 x 362
[11:10:21]      + pixel aspect ratio: 1 : 1
[11:10:21]      + display dimensions: 1280 x 362
[11:10:21]    + encoder: H.264 (libx264)
[11:10:21]      + preset:  fast
[11:10:21]      + profile: main
[11:10:21]      + level:   4.0
[11:10:21]      + quality: 22.00 (RF)
[11:10:21]      + color profile: 1-1-1
[11:10:21]  * subtitle track 1, English [SRT] (track 0, id 0xff000000, Text) -> Render/Burn-in, offset: 0, charset: UTF-8
[11:10:21]  * audio track 1
[11:10:21]    + decoder: English (AAC LC) (2.0 ch) (128 kbps) (track 1, id 0x1)
[11:10:21]      + bitrate: 128 kbps, samplerate: 48000 Hz
[11:10:21]    + mixdown: Stereo
[11:10:21]    + encoder: AAC (libavcodec)
[11:10:21]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:10:21] sync: expecting 408 video frames
[11:10:21] encx264: encoding at constant RF 22.000000
[11:10:21] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[11:10:21] sync: first pts video is 0
[11:10:21] sync: "Chapter 1" (1) at frame 1 time 0
[11:10:21] sync: first pts audio 0x1 is 0
[11:10:21] sync: first pts subtitle 0xff000000 is 0
[11:10:21] [ass] fontselect: (sans-serif, 400, 0) -> ArialMT, 0, ArialMT
[11:10:25] reader: done. 1 scr changes
[11:10:26] work: average encoding speed for job is 0.000000 fps
[11:10:26] comb detect: heavy 7 | light 17 | uncombed 384 | total 408
[11:10:26] decomb: deinterlaced 7 | blended 17 | unfiltered 384 | total 408
[11:10:26] vfr: 408 frames output, 0 dropped and 0 duped for CFR/PFR
[11:10:26] vfr: lost time: 0 (0 frames)
[11:10:26] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:10:26] aac-decoder done: 765 frames, 0 decoder errors
[11:10:26] h264-decoder done: 408 frames, 0 decoder errors
[11:10:26] sync: got 408 frames, 408 expected
[11:10:26] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:4     Avg QP:15.06  size: 44546
x264 [info]: frame P:119   Avg QP:20.65  size:  7124
x264 [info]: frame B:285   Avg QP:24.47  size:   854
x264 [info]: consecutive B-frames:  2.5% 11.8%  4.4% 81.4%
x264 [info]: mb I  I16..4: 41.6%  0.0% 58.4%
x264 [info]: mb P  I16..4:  4.3%  0.0%  2.3%  P16..4: 24.5% 10.6%  6.1%  0.0%  0.0%    skip:52.2%
x264 [info]: mb B  I16..4:  0.8%  0.0%  0.1%  B16..8:  9.8%  2.2%  0.2%  direct: 2.9%  skip:84.0%  L0:43.6% L1:46.9% BI: 9.5%
x264 [info]: coded y,uvDC,uvAC intra: 33.7% 49.3% 27.3% inter: 5.4% 9.4% 0.4%
x264 [info]: i16 v,h,dc,p: 69% 20%  5%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 25% 13%  5%  6%  6%  6%  6%  5%
x264 [info]: i8c dc,h,v,p: 54% 21% 19%  6%
x264 [info]: Weighted P-Frames: Y:4.2% UV:2.5%
x264 [info]: ref P L0: 77.1% 22.9%
x264 [info]: ref B L0: 87.6% 12.4%
x264 [info]: ref B L1: 97.0%  3.0%
x264 [info]: kb/s:622.18
[11:10:26] mux: track 0, 408 frames, 1269129 bytes, 620.60 kbps, fifo 512
[11:10:26] mux: track 1, 766 frames, 330377 bytes, 161.55 kbps, fifo 1024
[11:10:26] Finished work at: Fri Sep 24 11:10:26 2021
[11:10:26] libhb: work result = 0

# Job Completed!

User avatar
JohnAStebbins
HandBrake Team
Posts: 5709
Joined: Sat Feb 09, 2008 7:21 pm

Re: Recent Output change - Seeking possible reasons

Post by JohnAStebbins »

Code: Select all

[11:10:21]        + source: 1280 * 720, crop (180/178/0/0): 1280 * 362, scale: 1280 * 362
You appear to have auto-crop enabled and your source must have black bars top and bottom that HandBrake is cropping since they are not "useful image data".
jaydeflix
Posts: 3
Joined: Fri Sep 24, 2021 6:25 pm

Re: Recent Output change - Seeking possible reasons

Post by jaydeflix »

Hm. And seeing how that's not a change (he's always done the letterbox for two people on screen) that means somehow auto-crop got enabled at some point (unless that was a change in the last update... I honestly didn't notice if this happened immediately after it or not).

Regardless, thanks! I might feel dumb now, but at least I understand the program more =D
jaydeflix
Posts: 3
Joined: Fri Sep 24, 2021 6:25 pm

Re: Recent Output change - Seeking possible reasons

Post by jaydeflix »

WAIT! Is auto-crop's decision based on the first frame? It looks the past two weeks he's switched the start from a single person full screen to the letterboxed version.
Deleted User 11865

Re: Recent Output change - Seeking possible reasons

Post by Deleted User 11865 »

Auto-crop is enabled by default. Presumably your previous sources didn't have as much letterboxing as these ones (though the autocrop values here do seem very high for any content; most likely, something in the input is confusing automatic letterbox detection into removing too much, for whatever reason).

And no, it's not based on the first frame only, but on all scanned previews (by default, 10 of them spread evenly across the input). You can improve the reliability of autocrop by increasing the numbers of previews being created during source scan (in the Settings panel somewhere, you can ask for up to 60 previews; I find 30 to 40 is generally quite reliable, although there are always exceptions).
Post Reply