Black bars on top and bottom of screen

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
dilbertprof
Posts: 2
Joined: Thu Oct 17, 2019 11:59 am

Black bars on top and bottom of screen

Post by dilbertprof »

Description of problem or question:
I have a MakeMKV file which I then encode in Handbrake. When I look at the preview window, I don't see any black bars on the top or bottom of the screen. However, when I play it on my laptop, the bars appear. How do I remove them. The source video is from an Anomorphic DVD with aspect ratio of 2.35:1

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
1.2.2



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



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

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
Ram: 65471 MB, 
GPU Information:
  Citrix Indirect Display Adapter - 12.40.44.247
  NVIDIA GeForce GTX 1070 - 26.21.14.3630
Screen: 1920x1080
Temp Dir: C:\Users\Asus\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Asus\AppData\Roaming\HandBrake

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


# Starting Encode ...

[15:43:25] hb_init: starting libhb thread
[15:43:25] 1 job(s) to process
[15:43:25] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.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"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "F:\\Videos\\Star_Wars_Episode_One_The_Phantom_Menace\\Title_t03.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "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": 11,
        "Settings": {
          "crop-bottom": "58",
          "crop-left": "2",
          "crop-right": "2",
          "crop-top": "50",
          "height": "374",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 65535,
    "Den": 55306
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "F:\\Videos\\Star_Wars_Episode_One_The_Phantom_Menace\\title_t03.mkv"
  },
  "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.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[15:43:25] CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
[15:43:25]  - Intel microarchitecture Skylake
[15:43:25]  - logical processor count: 8
[15:43:25] Intel Quick Sync Video support: no
[15:43:25] hb_scan: path=F:\Videos\Star_Wars_Episode_One_The_Phantom_Menace\title_t03.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\Videos\Star_Wars_Episode_One_The_Phantom_Menace\title_t03.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[15:43:25] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:43:25] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'F:\Videos\Star_Wars_Episode_One_The_Phantom_Menace\title_t03.mkv':
  Metadata:
    encoder         : libmakemkv v1.14.5 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2019-10-16T00:47:33.000000Z
  Duration: 00:02:02.99, start: 0.000000, bitrate: 6969 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, smpte170m, top first), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 6771160
      DURATION-eng    : 00:02:02.989533333
      NUMBER_OF_FRAMES-eng: 3686
      NUMBER_OF_BYTES-eng: 104097276
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-16 00:47:33
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:02:03.008000000
      NUMBER_OF_FRAMES-eng: 3844
      NUMBER_OF_BYTES-eng: 2952192
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-16 00:47:33
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[15:43:25] scan: decoding previews for title 1
[15:43:25] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[15:43:25] scan: 10 previews, 720x480, 29.970 fps, autocrop = 50/58/2/2, aspect 16:9, PAR 32:27
[15:43:25] libhb: scan thread found 1 valid title(s)
[15:43:25] Skipping subtitle scan.  No suitable subtitle tracks.
[15:43:25] starting job
[15:43:25] decomb filter thread started for segment 1
[15:43:25] decomb filter thread started for segment 0
[15:43:25] decomb filter thread started for segment 2
[15:43:25] decomb filter thread started for segment 3
[15:43:25] decomb filter thread started for segment 4
[15:43:25] decomb filter thread started for segment 5
[15:43:25] decomb filter thread started for segment 6
[15:43:25] decomb check thread started for segment 6
[15:43:25] decomb check thread started for segment 1
[15:43:25] decomb check thread started for segment 2
[15:43:25] mask filter thread started for segment 3
[15:43:25] decomb check thread started for segment 3
[15:43:25] mask filter thread started for segment 7
[15:43:25] decomb check thread started for segment 5
[15:43:25] mask erode thread started for segment 1
[15:43:25] decomb check thread started for segment 7
[15:43:25] mask filter thread started for segment 0
[15:43:25] mask filter thread started for segment 1
[15:43:25] mask filter thread started for segment 2
[15:43:25] mask dilate thread started for segment 1
[15:43:25] mask filter thread started for segment 4
[15:43:25] mask dilate thread started for segment 4
[15:43:25] mask filter thread started for segment 6
[15:43:25] decomb check thread started for segment 4
[15:43:25] mask erode thread started for segment 0
[15:43:25] decomb filter thread started for segment 7
[15:43:25] mask erode thread started for segment 2
[15:43:25] yadif thread started for segment 6
[15:43:25] mask erode thread started for segment 4
[15:43:25] mask erode thread started for segment 5
[15:43:25] mask erode thread started for segment 6
[15:43:25] work: only 1 chapter, disabling chapter markers
[15:43:25] job configuration:
[15:43:25] mask erode thread started for segment 7
[15:43:25]  * source
[15:43:25]    + F:\Videos\Star_Wars_Episode_One_The_Phantom_Menace\title_t03.mkv
[15:43:25]    + title 1, chapter(s) 1 to 1
[15:43:25]    + container: matroska,webm
[15:43:25]    + data rate: 6969 kbps
[15:43:25]  * destination
[15:43:25]    + F:\Videos\Star_Wars_Episode_One_The_Phantom_Menace\Title_t03.mp4
[15:43:25]    + container: MPEG-4 (libavformat)
[15:43:25]      + align initial A/V stream timestamps
[15:43:25]  * video track
[15:43:25]    + decoder: mpeg2video
[15:43:25]    + filters
[15:43:25] mask dilate thread started for segment 0
[15:43:25]      + 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:43:25]      + Decomb (mode=39)
[15:43:25] decomb check thread started for segment 0
[15:43:25]      + Framerate Shaper (mode=2:rate=27000000/900000)
[15:43:25]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[15:43:25] mask dilate thread started for segment 2
[15:43:25]      + Crop and Scale (width=720:height=374:crop-top=50:crop-bottom=58:crop-left=2:crop-right=2)
[15:43:25]        + source: 720 * 480, crop (50/58/2/2): 716 * 372, scale: 720 * 374
[15:43:25]    + Output geometry
[15:43:25]      + storage dimensions: 720 x 374
[15:43:25]      + pixel aspect ratio: 65535 : 55306
[15:43:25]      + display dimensions: 853 x 374
[15:43:25] mask dilate thread started for segment 3
[15:43:25]    + encoder: H.264 (libx264)
[15:43:25]      + preset:  fast
[15:43:25]      + profile: main
[15:43:25]      + level:   4.0
[15:43:25]      + quality: 22.00 (RF)
[15:43:25]      + color profile: 6-1-6
[15:43:25]  * audio track 1
[15:43:25]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x1)
[15:43:25]      + bitrate: 192 kbps, samplerate: 48000 Hz
[15:43:25] mask filter thread started for segment 5
[15:43:25]    + mixdown: Stereo
[15:43:25]    + dither: none
[15:43:25]    + encoder: AAC (libavcodec)
[15:43:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:43:25] mask dilate thread started for segment 5
[15:43:25] mask dilate thread started for segment 6
[15:43:25] mask dilate thread started for segment 7
[15:43:25] yadif thread started for segment 0
[15:43:25] yadif thread started for segment 1
[15:43:25] yadif thread started for segment 2
[15:43:25] yadif thread started for segment 3
[15:43:25] yadif thread started for segment 4
[15:43:25] yadif thread started for segment 5
[15:43:25] mask erode thread started for segment 3
[15:43:25] yadif thread started for segment 7
[15:43:25] sync: expecting 3685 video frames
[15:43:25] encx264: min-keyint: 30, keyint: 300
[15:43:25] encx264: encoding at constant RF 22.000000
[15:43:25] 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=65535/55306
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[15:43:25] sync: first pts video is 0
[15:43:25] sync: "Chapter 1" (1) at frame 1 time 0
[15:43:25] sync: first pts audio 0x1 is 0
[15:43:39] reader: done. 1 scr changes
[15:43:39] work: average encoding speed for job is 271.312897 fps
[15:43:39] comb detect: heavy 920 | light 329 | uncombed 2437 | total 3686
[15:43:39] decomb: deinterlaced 920 | blended 329 | unfiltered 2437 | total 3686
[15:43:39] vfr: 3686 frames output, 0 dropped and 0 duped for CFR/PFR
[15:43:39] vfr: lost time: 0 (0 frames)
[15:43:39] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:43:39] ac3-decoder done: 3844 frames, 0 decoder errors
[15:43:39] mpeg2video-decoder done: 3686 frames, 0 decoder errors
[15:43:39] sync: got 3686 frames, 3685 expected
[15:43:39] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:29    Avg QP:14.88  size: 22413
x264 [info]: frame P:972   Avg QP:20.34  size:  4428
x264 [info]: frame B:2685  Avg QP:22.42  size:   818
x264 [info]: consecutive B-frames:  1.6%  2.3%  4.4% 91.7%
x264 [info]: mb I  I16..4: 42.6%  0.0% 57.4%
x264 [info]: mb P  I16..4:  0.6%  0.0%  3.3%  P16..4: 27.3% 12.9%  7.8%  0.0%  0.0%    skip:48.1%
x264 [info]: mb B  I16..4:  0.5%  0.0%  0.3%  B16..8: 12.6%  3.8%  0.3%  direct: 4.3%  skip:78.1%  L0:37.3% L1:49.1% BI:13.6%
x264 [info]: coded y,uvDC,uvAC intra: 61.5% 66.9% 36.2% inter: 6.8% 10.2% 0.5%
x264 [info]: i16 v,h,dc,p: 62% 14% 12% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 12% 14%  5%  7% 10%  5%  8%  4%
x264 [info]: i8c dc,h,v,p: 55% 13% 26%  6%
x264 [info]: Weighted P-Frames: Y:16.8% UV:2.2%
x264 [info]: ref P L0: 69.4% 30.6%
x264 [info]: ref B L0: 86.7% 13.3%
x264 [info]: ref B L1: 96.8%  3.2%
x264 [info]: kb/s:465.07
[15:43:39] mux: track 0, 3686 frames, 7148492 bytes, 464.86 kbps, fifo 4096
[15:43:39] mux: track 1, 5767 frames, 2367382 bytes, 153.95 kbps, fifo 8192
[15:43:39] libhb: work result = 0

# Encode Completed ...


Deleted User 11865

Re: Black bars on top and bottom of screen

Post by Deleted User 11865 »

The preview window adjusts to whatever the video dimensions are, so you'll never see black bars there (unless you disable autocrop).

The black bars (letterboxing) are there because your video is 2.35:1 (as you pointed out) but your laptop display is most likely 1.78:1 (a.k.a. 16:9) -> the video is wider than your display.

In order to not have any black bars, you would have to cut off the sides of the video, losing part of the picture. Software media players can usually do this at playback time, which is better than discarding the information during the re-encode with HandBrake (with the playback time option, you're allowed to change your mind without having to go back to the Blu-ray and encoding the movie again).

Whatever software you're using for playback presumably has documentation available somewhere.
dilbertprof
Posts: 2
Joined: Thu Oct 17, 2019 11:59 am

Re: Black bars on top and bottom of screen

Post by dilbertprof »

Thanks for the help. I will look into this again when I have time. I appreciate your response.

Chuck Nailen
Post Reply