Aspect scaling

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
LouF2
Posts: 7
Joined: Sun Aug 29, 2021 6:05 pm

Aspect scaling

Post by LouF2 »

Description of problem or question:
Aspect scaling, cropping



Steps to reproduce the problem (If Applicable):
I have come across a broadcast where it seems their output is 16:9. The TV display was 16:9 (had black bars with station insignia in the bar), however, the program was squished. I am trying to convert its recording. If I watch it in VLC, aspect ration 2.39 seems correct (measured the program display on the computer screen for 4:3).

I have tried to understand aspect ratio before and never really could understand what to do; have been wrecklessly geeting along in the meantime.

So...I have 1 16:9 recording with a squished 4:3 embedded program; 2.39 aspect ration "fixes" it on VLC playback. What dimension settings do I make in Handbrake when converting it ?


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



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



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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19043.0
CPU: AMD Phenom(tm) II X6 1045T Processor
Ram: 8191 MB, 
GPU Information:
  AMD Radeon HD 6450 - 15.201.1151.1008
Screen: 1280x1024
Temp Dir: C:\Users\User\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\User\AppData\Roaming\HandBrake

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


# Starting Encode ...

[13:38:11] hb_init: starting libhb thread
[13:38:11] Starting work at: Sun Nov 28 13:38:11 2021
[13:38:11] 1 job(s) to process
[13:38:11] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 192,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 44100,
        "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": "C:\\Users\\User\\Videos\\Blizzard of '78.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "3"
        }
      },
      {
        "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": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "60",
          "crop-right": "60",
          "crop-top": "0",
          "height": "470",
          "width": "518"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 37,
    "Den": 13
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 302400000,
      "End": 306360000
    },
    "Title": 1,
    "Path": "C:\\Users\\User\\Videos\\Blizzard of '78_20211128_0100.ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[13:38:11] CPU: AMD Phenom(tm) II X6 1045T Processor
[13:38:11]  - logical processor count: 6
[13:38:11] Intel Quick Sync Video support: no
[13:38:11] hb_scan: path=C:\Users\User\Videos\Blizzard of '78_20211128_0100.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\User\Videos\Blizzard of '78_20211128_0100.ts
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
src/libbluray/bluray.c:2585: nav_get_title_list(C:\Users\User\Videos\Blizzard of '78_20211128_0100.ts\) failed
[13:38:11] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[13:38:11] dvd: not a dvd - trying as a stream/file instead
[13:38:11] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:38:11] Found the following PIDS
[13:38:11]     Video PIDS :
[13:38:11]       0x41 type MPEG2 (0x2) (PCR)
[13:38:11]     Audio PIDS :
[13:38:11]       0x44 type AC3 (0x81)
[13:38:11]     Subtitle PIDS :
[13:38:11]     Other PIDS :
[13:38:11] stream id 0x44 (type 0x81 substream 0x0) audio 0x44
[13:38:11] scan: decoding previews for title 1
[13:38:11] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:38:11] scan: audio 0x44: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[13:38:11] stream: 19 good frames, 0 errors (0%)
[13:38:11] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/10/42/160, aspect 16:9, PAR 32:27
[13:38:11] libhb: scan thread found 1 valid title(s)
[13:38:11] Starting Task: Encoding Pass
[13:38:11] work: only 1 chapter, disabling chapter markers
[13:38:11] job configuration:
[13:38:11]  * source
[13:38:11]    + C:\Users\User\Videos\Blizzard of '78_20211128_0100.ts
[13:38:11]    + title 1, start 00:56:0.00 stop 00:56:44.00
[13:38:11]  * destination
[13:38:11]    + C:\Users\User\Videos\Blizzard of '78.mp4
[13:38:11]    + container: MPEG-4 (libavformat)
[13:38:11]      + align initial A/V stream timestamps
[13:38:11]  * video track
[13:38:11]    + decoder: mpeg2video
[13:38:11]      + bitrate 200 kbps
[13:38:11]    + filters
[13:38:11]      + 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)
[13:38:11]      + Deinterlace (mode=35)
[13:38:11]      + Framerate Shaper (mode=2:rate=27000000/900000)
[13:38:11]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[13:38:11]      + Crop and Scale (width=518:height=470:crop-top=0:crop-bottom=0:crop-left=60:crop-right=60)
[13:38:11]        + source: 720 * 480, crop (0/0/60/60): 600 * 480, scale: 518 * 470
[13:38:11]    + Output geometry
[13:38:11]      + storage dimensions: 518 x 470
[13:38:11]      + pixel aspect ratio: 37 : 13
[13:38:11]      + display dimensions: 1474 x 470
[13:38:11]    + encoder: H.264 (libx264)
[13:38:11]      + preset:  fast
[13:38:11]      + profile: main
[13:38:11]      + level:   3.1
[13:38:11]      + quality: 20.00 (RF)
[13:38:11]      + color profile: 6-6-6
[13:38:11]  * subtitle track 1, English, Closed Caption [CC608] (track 0, id 0xfe000000, Text) -> Passthrough
[13:38:11]  * audio track 1
[13:38:11]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x44)
[13:38:11]      + bitrate: 192 kbps, samplerate: 48000 Hz
[13:38:11]    + mixdown: Stereo
[13:38:11]    + dither: none
[13:38:11]    + encoder: AAC (libavcodec)
[13:38:11]      + bitrate: 192 kbps, samplerate: 44100 Hz
[13:38:11] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:38:11] sync: expecting 1348 video frames
[13:38:11] encx264: min-keyint: 30, keyint: 300
[13:38:11] encx264: encoding at constant RF 20.000000
[13:38:11] encx264: unparsed options: level=3.1:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=30
x264 [info]: using SAR=37/13
x264 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[13:39:15] sync: first pts video is 0
[13:39:15] sync: first pts audio 0x44 is 0
[swscaler @ 0000026243d48040] Warning: data is not aligned! This can lead to a speed loss
[13:39:22] sync: reached video pts 3960957, exiting early
[13:39:22] sync: reached audio 0x44 pts 3961897, exiting early
[13:39:23] work: average encoding speed for job is 180.865723 fps
[13:39:23] comb detect: heavy 284 | light 606 | uncombed 429 | total 1319
[13:39:23] vfr: 1319 frames output, 0 dropped and 0 duped for CFR/PFR
[13:39:23] vfr: lost time: 0 (0 frames)
[13:39:23] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:39:23] stream: 102540 good frames, 0 errors (0%)
[13:39:23] ac3-decoder done: 106909 frames, 0 decoder errors
[13:39:23] mpeg2video-decoder done: 102521 frames, 0 decoder errors
[13:39:23] sync: got 1319 frames, 1348 expected
[13:39:23] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
[aac @ 0000026243b61cc0] Qavg: 265.066
x264 [info]: frame I:5     Avg QP:14.20  size: 19709
x264 [info]: frame P:372   Avg QP:19.15  size:  3307
x264 [info]: frame B:942   Avg QP:21.46  size:   396
x264 [info]: consecutive B-frames:  1.2%  9.9%  2.5% 86.4%
x264 [info]: mb I  I16..4: 48.8%  0.0% 51.2%
x264 [info]: mb P  I16..4:  1.3%  0.0%  0.7%  P16..4: 38.5%  9.4%  6.1%  0.0%  0.0%    skip:44.1%
x264 [info]: mb B  I16..4:  0.9%  0.0%  0.0%  B16..8:  6.7%  0.7%  0.0%  direct:10.0%  skip:81.7%  L0:35.3% L1:62.0% BI: 2.6%
x264 [info]: coded y,uvDC,uvAC intra: 36.1% 58.1% 11.1% inter: 6.1% 19.5% 0.0%
x264 [info]: i16 v,h,dc,p: 52% 17% 18% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 13% 19%  6%  5%  7%  4%  8%  5%
x264 [info]: i8c dc,h,v,p: 58% 16% 25%  1%
x264 [info]: Weighted P-Frames: Y:3.2% UV:0.0%
x264 [info]: ref P L0: 63.8% 36.2%
x264 [info]: ref B L0: 67.0% 33.0%
x264 [info]: ref B L1: 88.7% 11.3%
x264 [info]: kb/s:309.33
[13:39:23] mux: track 0, 1319 frames, 1701513 bytes, 309.06 kbps, fifo 2048
[13:39:23] mux: track 1, 1896 frames, 1061028 bytes, 192.72 kbps, fifo 2048
[13:39:23] mux: track 2, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[13:39:23] Finished work at: Sun Nov 28 13:39:23 2021
[13:39:23] libhb: work result = 0

# Encode Completed ...


Post Reply