Rotate video no longer updates the x/y dimensions

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
TurntableUcom
New User
Posts: 1
Joined: Thu May 28, 2020 3:32 am

Rotate video no longer updates the x/y dimensions

Post by TurntableUcom »

Description of problem or question:
Samsung 10 videos often are taken in a rotated mode, which when played back on Windows, show them rotated 90 degrees. Prior to my updating to Handbrake 1.3.1, I could use the rotate 270 degrees option to rotate the videos back to normal. After updating however, this no longer works properly. The videos gets rotated, but it's vertical orientation remains the same, meaning the video is now squished horizontally and stretched vertically.

Before rotate:
https://1drv.ms/u/s!ArCKhGGxbN0Hjv5w2wzUnor9HVsxFw

After rotate:
https://1drv.ms/u/s!ArCKhGGxbN0Hjv5ulIK-BlTtLqgmig


Steps to reproduce the problem (If Applicable):
Attempt to rotate a video taken in Samsung 10 rotated mode 270 degrees to be horizontal again.



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



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 [url=https://handbrake.fr/docs/en/latest/hel ... y-log.html] How-to get an activity https://1drv.ms/t/s!ArCKhGGxbN0Hjv5xbNc8wr0m9Vo62Q

Code: Select all

HandBrake 1.3.2 (2020050300)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Ram: 16283 MB, 
GPU Information:
  Intel(R) HD Graphics 630 - 26.20.100.7263
  NVIDIA GeForce GTX 1070 - 23.21.13.9125
Screen: 2560x1440
Temp Dir: C:\Users\gnaso\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\gnaso\AppData\Roaming\HandBrake

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


# Starting Encode ...

[08:46:22] base preset: Fast 1080p30 (Modified)
[20:46:22] hb_init: starting libhb thread
[20:46:22] Starting work at: Wed May 27 20:46:22 2020
[20:46:22] 1 job(s) to process
[20:46:22] 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": "C:\\Users\\gnaso\\Videos\\20200527.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "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": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1080"
        }
      },
      {
        "ID": 15,
        "Settings": {
          "angle": "270",
          "hflip": "0"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 135,
    "Den": 286
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\gnaso\\Desktop\\dcim\\unaudited vid\\20200527_112243.mp4"
  },
  "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
    }
  }
}
[20:46:22] CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
[20:46:22]  - Intel microarchitecture Kaby Lake
[20:46:22]  - logical processor count: 8
[20:46:22] Intel Quick Sync Video support: yes
[20:46:22]  - Intel Media SDK hardware: API 1.30 (minimum: 1.3)
[20:46:22]  - H.264 encoder: yes
[20:46:22]     - preferred implementation: hardware (any) via D3D11
[20:46:22]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[20:46:22]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[20:46:22]     - preferred implementation: hardware (any) via D3D11
[20:46:22]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[20:46:22] hb_scan: path=C:\Users\gnaso\Desktop\dcim\unaudited vid\20200527_112243.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\gnaso\Desktop\dcim\unaudited vid\20200527_112243.mp4
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\gnaso\Desktop\dcim\unaudited vid\20200527_112243.mp4\) failed
[20:46:22] 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
[20:46:22] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\gnaso\Desktop\dcim\unaudited vid\20200527_112243.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-05-27T18:22:53.000000Z
    com.android.version: 10
    com.android.capture.fps: 30.000000
  Duration: 00:00:08.96, start: 0.000000, bitrate: 8822 kb/s
    Stream #0:0(eng): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 2288x1080, 8571 kb/s, SAR 1:1 DAR 286:135, 30.06 fps, 30 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2020-05-27T18:22:53.000000Z
      handler_name    : VideoHandle
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      creation_time   : 2020-05-27T18:22:53.000000Z
      handler_name    : SoundHandle
[20:46:22] scan: decoding previews for title 1
[20:46:22] scan: audio 0x1: aac, rate=48000Hz, bitrate=256145 English (AAC LC) (2.0 ch) (256 kbps)
[20:46:22] Auto-Rotating video 270 degrees
[20:46:23] scan: 10 previews, 1080x2288, 30.058 fps, autocrop = 0/0/0/0, aspect 1:2.12, PAR 1:1
[20:46:23] scan: supported video decoders: avcodec qsv
[20:46:23] libhb: scan thread found 1 valid title(s)
[20:46:23] Skipping subtitle scan.  No suitable subtitle tracks.
[20:46:23] Starting Task: Encoding Pass
[20:46:23] work: only 1 chapter, disabling chapter markers
[20:46:23] job configuration:
[20:46:23]  * source
[20:46:23]    + C:\Users\gnaso\Desktop\dcim\unaudited vid\20200527_112243.mp4
[20:46:23]    + title 1, chapter(s) 1 to 1
[20:46:23]    + container: mov,mp4,m4a,3gp,3g2,mj2
[20:46:23]    + data rate: 8822 kbps
[20:46:23]  * destination
[20:46:23]    + C:\Users\gnaso\Videos\20200527.mp4
[20:46:23]    + container: MPEG-4 (libavformat)
[20:46:23]      + optimized for HTTP streaming (fast start)
[20:46:23]      + align initial A/V stream timestamps
[20:46:23]  * video track
[20:46:23]    + decoder: hevc
[20:46:23]      + bitrate 8571 kbps
[20:46:23]    + filters
[20:46:23]      + 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)
[20:46:23]      + Decomb (mode=39)
[20:46:23]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:46:23]        + frame rate: 30.058 fps -> peak rate limited to 30.000 fps
[20:46:23]      + Crop and Scale (width=1080:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:46:23]        + source: 1080 * 2288, crop (0/0/0/0): 1080 * 2288, scale: 1080 * 1080
[20:46:23]      + Rotate (angle=270:hflip=0)
[20:46:23]    + Output geometry
[20:46:23]      + storage dimensions: 1080 x 1080
[20:46:23]      + pixel aspect ratio: 135 : 286
[20:46:23]      + display dimensions: 509 x 1080
[20:46:23]    + encoder: H.264 (libx264)
[20:46:23]      + preset:  fast
[20:46:23]      + profile: main
[20:46:23]      + level:   4.0
[20:46:23]      + quality: 22.00 (RF)
[20:46:23]      + color profile: 9-16-9
[20:46:23]  * audio track 1
[20:46:23]    + decoder: English (AAC LC) (2.0 ch) (256 kbps) (track 1, id 0x1)
[20:46:23]      + bitrate: 256 kbps, samplerate: 48000 Hz
[20:46:23]    + mixdown: Stereo
[20:46:23]    + dither: none
[20:46:23]    + encoder: AAC (libavcodec)
[20:46:23]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:46:23] sync: expecting 269 video frames
[20:46:23] encx264: min-keyint: 30, keyint: 300
[20:46:23] encx264: encoding at constant RF 22.000000
[20:46:23] 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=135/286
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
[20:46:23] Auto-Rotating video 270 degrees
[20:46:23] sync: first pts video is 0
[20:46:23] sync: "Chapter 1" (1) at frame 1 time 0
[20:46:23] sync: first pts audio 0x1 is 0
[20:46:28] reader: done. 1 scr changes
[20:46:31] work: average encoding speed for job is 43.400845 fps
[20:46:31] comb detect: heavy 72 | light 159 | uncombed 38 | total 269
[20:46:31] decomb: deinterlaced 72 | blended 159 | unfiltered 38 | total 269
[20:46:31] vfr: 269 frames output, 0 dropped and 0 duped for CFR/PFR
[20:46:31] vfr: lost time: 0 (0 frames)
[20:46:31] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:46:31] aac-decoder done: 420 frames, 0 decoder errors
[20:46:31] hevc-decoder done: 269 frames, 0 decoder errors
[20:46:31] sync: got 269 frames, 269 expected
[20:46:31] sync: framerate min 30.058 fps, max 30.058 fps, avg 30.058 fps
x264 [info]: frame I:1     Avg QP:22.28  size: 74071
x264 [info]: frame P:71    Avg QP:21.69  size: 26072
x264 [info]: frame B:197   Avg QP:22.92  size:  4369
x264 [info]: consecutive B-frames:  1.9%  0.0%  4.5% 93.7%
x264 [info]: mb I  I16..4: 32.5%  0.0% 67.5%
x264 [info]: mb P  I16..4:  4.0%  0.0%  2.9%  P16..4: 40.9% 19.4% 12.9%  0.0%  0.0%    skip:19.9%
x264 [info]: mb B  I16..4:  3.1%  0.0%  0.1%  B16..8: 29.9%  6.1%  0.1%  direct: 5.5%  skip:55.1%  L0:40.1% L1:52.7% BI: 7.2%
x264 [info]: coded y,uvDC,uvAC intra: 23.0% 44.3% 2.5% inter: 8.4% 10.8% 0.0%
x264 [info]: i16 v,h,dc,p: 45% 24% 23%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 22%  4%  3%  4%  3%  3%  8%
x264 [info]: i8c dc,h,v,p: 73% 13% 13%  1%
x264 [info]: Weighted P-Frames: Y:7.0% UV:0.0%
x264 [info]: ref P L0: 76.9% 23.1%
x264 [info]: ref B L0: 87.1% 12.9%
x264 [info]: ref B L1: 94.4%  5.6%
x264 [info]: kb/s:2485.46
[20:46:31] mux: track 0, 269 frames, 2785743 bytes, 2476.22 kbps, fifo 512
[20:46:31] mux: track 1, 421 frames, 209636 bytes, 186.34 kbps, fifo 512
[20:46:31] Finished work at: Wed May 27 20:46:31 2020
[20:46:31] libhb: work result = 0

# Encode Completed ...
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Rotate video no longer updates the x/y dimensions

Post by mduell »

Code: Select all

[20:46:23][08:46:22] base preset: Fast 1080p30 (Modified)

        + source: 1080 * 2288, crop (0/0/0/0): 1080 * 2288, scale: 1080 * 1080
You picked a preset that is limited to 1080 tall, and didn't choose preserve aspect ratio, so it was scaled to maintain the horizontal dimension and crush the vertical. Pick a preset with a higher resolution or no resolution limit.
Post Reply