How to preserve 1080p?

HandBrake for Mac 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
ericoisom
Posts: 2
Joined: Fri May 17, 2019 12:10 am

How to preserve 1080p?

Post by ericoisom » Fri May 17, 2019 3:17 am

Description of problem or question:
I created a video using Screenflow on a 1080p screen. Then, on a different machine, a MacBook with a 1296 × 728 screen, I compress it using HandBrake, and it comes out 1296 × 728 instead of 1080p. How do I do this and preserve the 1080p dimensions of the video?



Steps to reproduce the problem (If Applicable):
See above.



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):
macOS 10.14.3 Mojave



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

Code: Select all

[21:07:57] macgui: QueueCore prevented sleep
[21:07:57] macgui: QueueCore scanning specifically for title: 1
[21:07:57] CPU: Intel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz
[21:07:57]  - Intel microarchitecture Skylake
[21:07:57]  - logical processor count: 4
[21:07:57] hb_scan: path=/Users/bellaisom/Downloads/ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/bellaisom/Downloads/ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:07:57] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
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
[21:07:57] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/bellaisom/Downloads/ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2019-05-16T18:12:39.000000Z
  Duration: 00:02:28.47, start: 0.000000, bitrate: 1466 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 102 kb/s (default)
    Metadata:
      creation_time   : 2019-05-16T18:12:39.000000Z
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1359 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc (default)
    Metadata:
      creation_time   : 2019-05-16T18:12:39.000000Z
      encoder         : JVT/AVC Coding
[21:07:57] scan: decoding previews for title 1
[21:07:57] scan: audio 0x0: aac, rate=44100Hz, bitrate=102955 Unknown (AAC LC) (2.0 ch)
[21:07:58] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 176/176/312/312, aspect 16:9, PAR 1:1
[21:07:58] libhb: scan thread found 1 valid title(s)
[21:07:58] macgui: QueueCore scan done
[21:07:58] 1 job(s) to process
[21:07:58] starting job
[21:07:58] macgui: QueueCore started encoding ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4
[21:07:58] macgui: QueueCore with preset ZH 1080p RF26 AUD128 (Modified)
[21:07:58] decomb filter thread started for segment 0
[21:07:58] decomb filter thread started for segment 1
[21:07:58] decomb filter thread started for segment 2
[21:07:58] decomb filter thread started for segment 3
[21:07:58] decomb check thread started for segment 0
[21:07:58] decomb check thread started for segment 1
[21:07:58] decomb check thread started for segment 2
[21:07:58] decomb check thread started for segment 3
[21:07:58] mask filter thread started for segment 0
[21:07:58] mask filter thread started for segment 1
[21:07:58] mask filter thread started for segment 2
[21:07:58] mask filter thread started for segment 3
[21:07:58] mask erode thread started for segment 0
[21:07:58] mask erode thread started for segment 1
[21:07:58] mask erode thread started for segment 2
[21:07:58] mask erode thread started for segment 3
[21:07:58] mask dilate thread started for segment 0
[21:07:58] mask dilate thread started for segment 1
[21:07:58] mask dilate thread started for segment 3
[21:07:58] mask dilate thread started for segment 2
[21:07:58] yadif thread started for segment 0
[21:07:58] yadif thread started for segment 1
[21:07:58] yadif thread started for segment 3
[21:07:58] yadif thread started for segment 2
[21:07:58] work: only 1 chapter, disabling chapter markers
[21:07:58] job configuration:
[21:07:58]  * source
[21:07:58]    + /Users/bellaisom/Downloads/ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4
[21:07:58]    + title 1, chapter(s) 1 to 1
[21:07:58]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:07:58]    + data rate: 1466 kbps
[21:07:58]  * destination
[21:07:58]    + /Users/bellaisom/Downloads/Compressed Files/ZH PMR EMC Costs EV Part 1 SHORT TEST.mp4
[21:07:58]    + container: MPEG-4 (libavformat)
[21:07:58]      + align initial A/V stream timestamps
[21:07:58]  * video track
[21:07:58]    + decoder: h264
[21:07:58]      + bitrate 1359 kbps
[21:07:58]    + filters
[21:07:58]      + 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)
[21:07:58]      + Decomb (mode=39)
[21:07:58]      + Framerate Shaper (mode=2:rate=27000000/900000)
[21:07:58]        + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[21:07:58]      + Crop and Scale (width=1296:height=730:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:07:58]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1296 * 730
[21:07:58]    + Output geometry
[21:07:58]      + storage dimensions: 1296 x 730
[21:07:58]      + pixel aspect ratio: 730 : 729
[21:07:58]      + display dimensions: 1297 x 730
[21:07:58]    + encoder: H.264 (libx264)
[21:07:58]      + preset:  fast
[21:07:58]      + profile: main
[21:07:58]      + level:   4.0
[21:07:58]      + quality: 26.00 (RF)
[21:07:58]      + color profile: 1-1-1
[21:07:58]  * audio track 1
[21:07:58]    + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x0)
[21:07:58]      + bitrate: 102 kbps, samplerate: 44100 Hz
[21:07:58]    + mixdown: Stereo
[21:07:58]    + dither: triangular
[21:07:58]    + encoder: AAC (Apple AudioToolbox)
[21:07:58]      + bitrate: 128 kbps, samplerate: 44100 Hz
[21:07:58] sync: expecting 4453 video frames
[21:07:58] encx264: min-keyint: 30, keyint: 300
[21:07:58] encx264: encoding at constant RF 26.000000
[21:07:58] 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=730/729
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
[21:07:58] sync: first pts video is 0
[21:07:58] sync: "Chapter 1" (1) at frame 1 time 0
[21:07:58] sync: first pts audio 0x0 is 0
[21:10:15] reader: done. 1 scr changes
[21:10:18] work: average encoding speed for job is 32.069271 fps
[21:10:18] comb detect: heavy 0 | light 1 | uncombed 4453 | total 4454
[21:10:18] decomb: deinterlaced 0 | blended 1 | unfiltered 4453 | total 4454
[21:10:18] vfr: 4454 frames output, 0 dropped and 0 duped for CFR/PFR
[21:10:18] vfr: lost time: 0 (0 frames)
[21:10:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:10:18] aac-decoder done: 6393 frames, 0 decoder errors
[21:10:18] h264-decoder done: 4454 frames, 0 decoder errors
[21:10:18] sync: got 4454 frames, 4453 expected
[21:10:18] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
x264 [info]: frame I:15    Avg QP:14.68  size: 91331
x264 [info]: frame P:1166  Avg QP:16.25  size:   734
x264 [info]: frame B:3273  Avg QP:16.80  size:    40
x264 [info]: consecutive B-frames:  1.6%  1.0%  1.1% 96.4%
x264 [info]: mb I  I16..4: 57.7%  0.0% 42.3%
x264 [info]: mb P  I16..4:  0.1%  0.0%  0.1%  P16..4:  2.6%  0.2%  0.3%  0.0%  0.0%    skip:96.7%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0:36.3% L1:48.9% BI:14.8%
x264 [info]: coded y,uvDC,uvAC intra: 41.7% 39.9% 29.6% inter: 0.3% 0.3% 0.0%
x264 [info]: i16 v,h,dc,p: 84%  6%  6%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 20% 16%  8%  8%  7%  8%  8%  8%
x264 [info]: i8c dc,h,v,p: 74% 13% 10%  3%
x264 [info]: Weighted P-Frames: Y:3.0% UV:2.4%
x264 [info]: ref P L0: 71.5% 28.5%
x264 [info]: ref B L0: 69.4% 30.6%
x264 [info]: ref B L1: 96.9%  3.1%
x264 [info]: kb/s:126.95
[21:10:18] mux: track 0, 4454 frames, 2355287 bytes, 126.88 kbps, fifo 8192
[21:10:18] mux: track 1, 6396 frames, 1863306 bytes, 100.38 kbps, fifo 8192
[21:10:18] libhb: work result = 0
[21:10:18] macgui: QueueCore work done
[21:10:18] macgui: Queue Done, there are no more pending encodes
[21:10:18] macgui: QueueCore stopped preventing sleep

ericoisom
Posts: 2
Joined: Fri May 17, 2019 12:10 am

Re: How to preserve 1080p?

Post by ericoisom » Fri May 17, 2019 3:16 pm

I figured this out. The Screenflow source file was created on a 1296 × 728 screen. The video was recorded on a 1080p screen. The export was created on a 1080p screen, and the result was a 1080p video. However, HandBrake apparently finds some metadata about the 1296 × 728 screen, and creates a compressed file with these dimensions. The solution is that when I export from Screenflow, I need to specifically set the document properties to the 1080p dimensions. Although it doesn't seem to make any difference in the output from Screenflow, it keeps HandBrake from picking up the 1296 × 728 metadata, and now I'm getting 1080p compressed files. Maybe this is just because I'm new at this. Or maybe it's a minor, obscure bug.

mduell
Veteran User
Posts: 6547
Joined: Sat Apr 21, 2007 8:54 pm

Re: How to preserve 1080p?

Post by mduell » Fri May 17, 2019 3:58 pm

Code: Select all

[21:07:58] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 176/176/312/312, aspect 16:9, PAR 1:1
HB found a 1920x1080 source, but with black bars on all sides. By default, HB crops off black bars.

Not sure why you want to stretch the picture out to 1080p when you don't have that much information. Stretching should be done at playback time.

rollin_eng
Veteran User
Posts: 3100
Joined: Wed May 04, 2011 11:06 pm

Re: How to preserve 1080p?

Post by rollin_eng » Fri May 17, 2019 4:37 pm

Looks like cropping was set to 0 but HB kept the cropped resolution. Possibly a bug?

Just set cropping to 0 and then set the resolution back to 1080 and it should be ok.

Post Reply