.MOV files issues

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
patdiddy
Posts: 4
Joined: Thu Jan 17, 2019 10:06 am

.MOV files issues

Post by patdiddy »

sometimes, when I try to convert a file ending in .MOV, the video is rotated 90 degrees to the left. is there a way to fix that before converting it to MP4?




Save a video in quicktime player 7, then bring it into handbrake. once it gets scanned, it's 90 degrees to the left.




HandBrake version (1.2.0)




macOS 10.11.6

Code: Select all

[02:00:45] macgui: Handbrake Version: 1.2.0  (2018122200)
[02:00:46] hb_init: starting libhb thread
[02:00:46] hb_init: starting libhb thread
[02:00:56] macgui: trying to open a folder or file
[02:00:56] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[02:00:56] CPU: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
[02:00:56]  - logical processor count: 2
[02:00:56] hb_scan: path=/Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[02:00:56] 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
[02:00:57] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2019-01-17T10:00:20.000000Z
    com.apple.quicktime.player.movie.visual.brightness: 0.000000
    com.apple.quicktime.player.movie.visual.color: 1.000000
    com.apple.quicktime.player.movie.visual.tint: 0.000000
    com.apple.quicktime.player.movie.visual.contrast: 1.000000
    com.apple.quicktime.player.version: 7.6.6 (7.6.6)
    com.apple.quicktime.version: 7.7.3 (2943.14) 0x7738000 (Mac OS X, 10.11.6, 15G22010)
  Duration: 00:00:40.07, start: 0.000000, bitrate: 122 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 119 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      rotate          : 0
      creation_time   : 2019-01-17T10:00:20.000000Z
      handler_name    : Apple Video Media Handler
    Side data:
      displaymatrix: rotation of -0.00 degrees
[02:00:57] scan: decoding previews for title 1
[02:00:58] scan: 10 previews, 1080x1920, 29.970 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[02:00:58] libhb: scan thread found 1 valid title(s)
[02:00:58] macgui: ScanCore scan done
[02:02:55] macgui: QueueCore prevented sleep
[02:02:55] macgui: QueueCore scanning specifically for title: 1
[02:02:55] CPU: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
[02:02:55]  - logical processor count: 2
[02:02:55] hb_scan: path=/Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[02:02:55] 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
[02:02:55] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2019-01-17T10:00:20.000000Z
    com.apple.quicktime.player.movie.visual.brightness: 0.000000
    com.apple.quicktime.player.movie.visual.color: 1.000000
    com.apple.quicktime.player.movie.visual.tint: 0.000000
    com.apple.quicktime.player.movie.visual.contrast: 1.000000
    com.apple.quicktime.player.version: 7.6.6 (7.6.6)
    com.apple.quicktime.version: 7.7.3 (2943.14) 0x7738000 (Mac OS X, 10.11.6, 15G22010)
  Duration: 00:00:40.07, start: 0.000000, bitrate: 122 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 119 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      rotate          : 0
      creation_time   : 2019-01-17T10:00:20.000000Z
      handler_name    : Apple Video Media Handler
    Side data:
      displaymatrix: rotation of -0.00 degrees
[02:02:55] scan: decoding previews for title 1
[02:02:56] scan: 10 previews, 1080x1920, 29.970 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[02:02:56] libhb: scan thread found 1 valid title(s)
[02:02:56] macgui: QueueCore scan done
[02:02:56] macgui: QueueCore started encoding Double Dare 2018 30 second timer round 1.mp4
[02:02:56] macgui: QueueCore with preset Fast 1080p30
[02:02:56] 1 job(s) to process
[02:02:56] starting job
[02:02:56] decomb filter thread started for segment 0
[02:02:56] decomb filter thread started for segment 1
[02:02:56] decomb check thread started for segment 0
[02:02:56] decomb check thread started for segment 1
[02:02:56] mask filter thread started for segment 0
[02:02:56] mask filter thread started for segment 1
[02:02:56] mask erode thread started for segment 0
[02:02:56] mask erode thread started for segment 1
[02:02:56] mask dilate thread started for segment 0
[02:02:56] mask dilate thread started for segment 1
[02:02:56] yadif thread started for segment 0
[02:02:56] yadif thread started for segment 1
[02:02:56] work: only 1 chapter, disabling chapter markers
[02:02:56] job configuration:
[02:02:56]  * source
[02:02:56]    + /Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mov
[02:02:56]    + title 1, chapter(s) 1 to 1
[02:02:56]    + container: mov,mp4,m4a,3gp,3g2,mj2
[02:02:56]    + data rate: 122 kbps
[02:02:56]  * destination
[02:02:56]    + /Users/patdiddy/Movies/Double Dare 2018 30 second timer round 1.mp4
[02:02:56]    + container: MPEG-4 (libavformat)
[02:02:56]      + align initial A/V stream timestamps
[02:02:56]  * video track
[02:02:56]    + decoder: h264
[02:02:56]      + bitrate 119 kbps
[02:02:56]    + filters
[02:02:56]      + 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)
[02:02:56]      + Decomb (mode=39)
[02:02:56]      + Framerate Shaper (mode=2:rate=27000000/900000)
[02:02:56]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[02:02:56]      + Crop and Scale (width=1080:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[02:02:56]        + source: 1080 * 1920, crop (0/0/0/0): 1080 * 1920, scale: 1080 * 1080
[02:02:56]    + Output geometry
[02:02:56]      + storage dimensions: 1080 x 1080
[02:02:56]      + pixel aspect ratio: 9 : 16
[02:02:56]      + display dimensions: 607 x 1080
[02:02:56]    + encoder: H.264 (libx264)
[02:02:56]      + preset:  fast
[02:02:56]      + profile: main
[02:02:56]      + level:   4.0
[02:02:56]      + quality: 22.00 (RF)
[02:02:56]      + color profile: 1-1-1
[02:02:56] sync: expecting 1201 video frames
[02:02:56] encx264: min-keyint: 30, keyint: 300
[02:02:56] encx264: encoding at constant RF 22.000000
[02:02:56] 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=9/16
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[02:02:56] sync: first pts video is 0
[02:02:56] sync: "Chapter 1" (1) at frame 1 time 0
[02:04:10] reader: done. 1 scr changes
[02:04:15] work: average encoding speed for job is 15.516333 fps
[02:04:15] comb detect: heavy 0 | light 6 | uncombed 1195 | total 1201
[02:04:15] decomb: deinterlaced 0 | blended 6 | unfiltered 1195 | total 1201
[02:04:15] vfr: 1201 frames output, 0 dropped and 0 duped for CFR/PFR
[02:04:15] vfr: lost time: 0 (0 frames)
[02:04:15] vfr: gained time: 0 (0 frames) (0 not accounted for)
[02:04:15] h264-decoder done: 1201 frames, 0 decoder errors
[02:04:15] sync: got 1201 frames, 1201 expected
[02:04:15] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:5     Avg QP:13.78  size: 40572
x264 [info]: frame P:323   Avg QP:14.70  size:   706
x264 [info]: frame B:873   Avg QP:16.74  size:   102
x264 [info]: consecutive B-frames:  2.1%  2.5%  1.5% 93.9%
x264 [info]: mb I  I16..4: 72.4%  0.0% 27.6%
x264 [info]: mb P  I16..4:  1.2%  0.0%  0.1%  P16..4:  2.1%  0.2%  0.1%  0.0%  0.0%    skip:96.2%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.5%  0.0%  0.0%  direct: 0.3%  skip:99.2%  L0:39.0% L1:60.8% BI: 0.2%
x264 [info]: coded y,uvDC,uvAC intra: 14.9% 30.7% 21.6% inter: 0.1% 0.6% 0.1%
x264 [info]: i16 v,h,dc,p: 71% 28%  1%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 43% 15%  1%  1%  1%  3%  0%  1%
x264 [info]: i8c dc,h,v,p: 37% 34% 28%  1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 81.9% 18.1%
x264 [info]: ref B L0: 82.5% 17.5%
x264 [info]: ref B L1: 94.2%  5.8%
x264 [info]: kb/s:103.83
[02:04:15] mux: track 0, 1201 frames, 519859 bytes, 103.70 kbps, fifo 2048
[02:04:16] libhb: work result = 0
[02:04:16] macgui: QueueCore work done
[02:04:16] macgui: Queue Done, there are no more pending encodes
[02:04:16] macgui: QueueCore stopped preventing sleep
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: .MOV files issues

Post by mduell »

HB doesn't support the rotation flags in the MOV container, but you can use the rotate filter to rotate it the way it should be.
Deleted User 11865

Re: .MOV files issues

Post by Deleted User 11865 »

mduell wrote: Thu Jan 17, 2019 9:50 pm HB doesn't support the rotation flags in the MOV container, but you can use the rotate filter to rotate it the way it should be.
Actually rotation flags should be supported now, but it seems like the rotation flag is incorrect in this source (or incorrectly parsed?) -- manually configuring the rotation filter can be used to work around the issue.
patdiddy wrote: Thu Jan 17, 2019 10:17 am

Code: Select all

  Duration: 00:00:40.07, start: 0.000000, bitrate: 122 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 119 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      rotate          : 0
      creation_time   : 2019-01-17T10:00:20.000000Z
      handler_name    : Apple Video Media Handler
    Side data:
      displaymatrix: rotation of -0.00 degrees
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: .MOV files issues

Post by JohnAStebbins »

Version 1.2.0 has a bug where it misinterprets rotation 0. Any other rotation value works as expected, but if the flag is present and it indicates 0 rotation, HandBrake is rotating by 90. It's fixed in the nightly builds.
patdiddy
Posts: 4
Joined: Thu Jan 17, 2019 10:06 am

Re: .MOV files issues

Post by patdiddy »

JohnAStebbins wrote: Fri Jan 18, 2019 6:28 pm Version 1.2.0 has a bug where it misinterprets rotation 0. Any other rotation value works as expected, but if the flag is present and it indicates 0 rotation, HandBrake is rotating by 90. It's fixed in the nightly builds.
where are these nightly builds?
Deleted User 11865

Re: .MOV files issues

Post by Deleted User 11865 »

We're at 1.2.2 now, just update to the latest version.
Post Reply