mov is converted to MP4 upside down

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
lamhbriste
Posts: 10
Joined: Fri Jan 09, 2015 10:39 pm

mov is converted to MP4 upside down

Post by lamhbriste »

In HB, my mov video (from an iPhone) is converted to MP4, upside down.

How can I fix this?

My goal is to later use video monkey to convert this mp4 to a wmv file for a friend on windoze.

Thanks.
HB: 1.07
Mac: High Sierra
Source mov file: 271 mb
HB file product: 352 mb

Mac

Code: Select all

[08:18:07] macgui: QueueCore scanning specifically for title: 1
[08:18:07] CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
[08:18:07]  - Intel microarchitecture Skylake
[08:18:07]  - logical processor count: 4
[08:18:07] hb_scan: path=/Users/uai/Desktop/IMG_5295.MOV, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Users/uaine/Desktop/IMG_5295.MOV
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[08:18:07] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[08:18:07] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/uaine/Desktop/IMG_5295.MOV':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2018-03-07 03:29:59
  Duration: 00:02:19.96, start: 0.000000, bitrate: 15529 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      1920x1080, 15436 kb/s
      30 fps, 600 tbn (default)
    Metadata:
      creation_time   : 2018-03-07 03:29:59
      handler_name    : Core Media Data Handler
      encoder         : H.264
    Side data:
      displaymatrix: rotation of -180.00 degrees
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      44100 Hz, mono, fltp, 91 kb/s (default)
    Metadata:
      creation_time   : 2018-03-07 03:29:59
      handler_name    : Core Media Data Handler
    Stream #0:2(und): Data: mebx / 0x7862656D (default)
    Metadata:
      creation_time   : 2018-03-07 03:29:59
      handler_name    : Core Media Data Handler
    Stream #0:3(und): Data: mebx / 0x7862656D (default)
    Metadata:
      creation_time   : 2018-03-07 03:29:59
      handler_name    : Core Media Data Handler
[08:18:07] scan: decoding previews for title 1
[08:18:08] scan: audio 0x1: aac, rate=44100Hz, bitrate=91314 Unknown (AAC) (1.0 ch)
[08:18:09] scan: 10 previews, 1920x1080, 29.983 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:18:09] libhb: scan thread found 1 valid title(s)
[08:18:09] macgui: QueueCore scan done
[08:18:09] macgui: QueueCore started encoding IMG_5295 hb.mp4
[08:18:09] macgui: QueueCore with preset Custom
[08:18:09] 1 job(s) to process
[08:18:09] starting job
[08:18:09] decomb filter thread started for segment 1
[08:18:09] decomb filter thread started for segment 3
[08:18:09] decomb filter thread started for segment 2
[08:18:09] decomb filter thread started for segment 0
[08:18:09] decomb check thread started for segment 0
[08:18:09] decomb check thread started for segment 1
[08:18:09] decomb check thread started for segment 2
[08:18:09] decomb check thread started for segment 3
[08:18:09] mask filter thread started for segment 1
[08:18:09] mask filter thread started for segment 0
[08:18:09] mask filter thread started for segment 2
[08:18:09] mask erode thread started for segment 0
[08:18:09] mask filter thread started for segment 3
[08:18:09] mask erode thread started for segment 1
[08:18:09] mask erode thread started for segment 2
[08:18:09] mask dilate thread started for segment 0
[08:18:09] mask erode thread started for segment 3
[08:18:09] mask dilate thread started for segment 1
[08:18:09] mask dilate thread started for segment 2
[08:18:09] mask dilate thread started for segment 3
[08:18:09] yadif thread started for segment 0
[08:18:09] yadif thread started for segment 1
[08:18:09] yadif thread started for segment 2
[08:18:09] yadif thread started for segment 3
[08:18:09] work: only 1 chapter, disabling chapter markers
[08:18:09] job configuration:
[08:18:09]  * source
[08:18:09]    + /Users/uaine/Desktop/IMG_5295.MOV
[08:18:09]    + title 1, chapter(s) 1 to 1
[08:18:09]    + container: mov,mp4,m4a,3gp,3g2,mj2
[08:18:09]    + data rate: 15529 kbps
[08:18:09]  * destination
[08:18:09]    + /Users/uaine/Desktop/IMG_5295 hb.mp4
[08:18:09]    + container: MPEG-4 (libavformat)
[08:18:09]  * video track
[08:18:09]    + decoder: h264
[08:18:09]      + bitrate 15436 kbps
[08:18:09]    + filters
[08:18:09]      + 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)
[08:18:09]      + Decomb (mode=39)
[08:18:09]      + Framerate Shaper (mode=0:rate=27000000/900504)
[08:18:09]        + frame rate: same as source (around 29.983 fps)
[08:18:09]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[08:18:09]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[08:18:09]    + Output geometry
[08:18:09]      + storage dimensions: 1920 x 1080
[08:18:09]      + pixel aspect ratio: 1 : 1
[08:18:09]      + display dimensions: 1920 x 1080
[08:18:09]    + encoder: H.264 (libx264)
[08:18:09]      + preset:  fast
[08:18:09]      + profile: main
[08:18:09]      + level:   4.0
[08:18:09]      + quality: 0.00 (RF)
[08:18:09]  * audio track 1
[08:18:09]    + decoder: Unknown (AAC) (1.0 ch) (track 1, id 0x1)
[08:18:09]      + bitrate: 91 kbps, samplerate: 44100 Hz
[08:18:09]    + AAC Passthru
[08:18:09] sync: expecting 4196 video frames
[08:18:09] encx264: min-keyint: 30, keyint: 300
[08:18:09] encx264: encoding at constant RF 0.000000
[08:18:09] apply_h264_profile [warning]: lossless requires high444 profile, disabling
[08:18:09] encx264: unparsed options: level=4.0:ref=2:vbv-bufsize=25000:8x8dct=0:subme=6:weightp=1:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[08:18:10] sync: first pts video is 0
[08:18:10] sync: "Chapter 1" (1) at frame 1 time 0
[08:18:10] sync: first pts audio 0x1 is 0
[AVBSFContext @ 0x7ffb1ec39da0] Input packet too small
error: avformatMux: track 1 av_bsf_receive_packet failed
error: avformatMux: track 1 av_bsf_receive_packet failed
[08:21:45] reader: done. 1 scr changes
[08:21:51] work: average encoding speed for job is 19.128279 fps
[08:21:51] comb detect: heavy 1 | light 109 | uncombed 4085 | total 4195
[08:21:51] decomb: deinterlaced 1 | blended 109 | unfiltered 4085 | total 4195
[08:21:51] vfr: lost time: 0 (0 frames)
[08:21:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[08:21:51] aac-decoder done: 6028 frames, 0 decoder errors
[08:21:51] h264-decoder done: 4195 frames, 0 decoder errors
[08:21:51] sync: got 4195 frames, 4196 expected
[08:21:51] sync: framerate min 29.990 fps, max 29.990 fps, avg 29.983 fps
x264 [info]: frame I:15    Avg QP:14.96  size:269165
x264 [info]: frame P:1049  Avg QP:18.50  size:131878
x264 [info]: frame B:3131  Avg QP:20.51  size: 66597
x264 [info]: consecutive B-frames:  0.4%  0.0%  1.0% 98.6%
x264 [info]: mb I  I16..4: 11.9%  0.0% 88.1%
x264 [info]: mb P  I16..4:  6.6%  0.0% 19.0%  P16..4: 32.9% 29.0% 11.8%  0.0%  0.0%    skip: 0.8%
x264 [info]: mb B  I16..4: 12.9%  0.0%  7.7%  B16..8: 35.5% 24.9%  2.3%  direct:10.1%  skip: 6.5%  L0:51.2% L1:31.6% BI:17.2%
x264 [info]: coded y,uvDC,uvAC intra: 81.6% 84.7% 21.5% inter: 47.4% 60.3% 3.8%
x264 [info]: i16 v,h,dc,p: 17% 17% 46% 20%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 18% 23%  7%  8%  6%  7%  5%  5%
x264 [info]: i8c dc,h,v,p: 51% 27% 18%  4%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 54.2% 45.8%
x264 [info]: ref B L0: 84.1% 15.9%
x264 [info]: ref B L1: 94.0%  6.0%
x264 [info]: kb/s:20063.60
[08:21:51] mux: track 0, 4195 frames, 350890726 bytes, 20049.22 kbps, fifo 256
[08:21:51] mux: track 1, 6028 frames, 1597665 bytes, 91.29 kbps, fifo 512
[08:21:51] libhb: work result = 0
[08:21:52] macgui: QueueCore work done
[08:21:52] macgui: Queue Done, there are no more pending encodes
Last edited by Anonymous on Wed Mar 21, 2018 4:07 pm, edited 1 time in total.
Reason: Logs in [code][/code] blocks please
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: mov is converted to MP4 upside down

Post by mduell »

Use the rotate filter to flip it right side up.

Also pick more reasonable quality settings, since RF 0 very likely isn't what you actually want.
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: mov is converted to MP4 upside down

Post by Woodstock »

You need to use the rotate filter, on the Filters page.

The iphone records video in one orientation, then flags which way is up. That flag is not used by most programs, including the release version of handbrake. But the filter page will allow you to rotate the video to the correct orientation.
lamhbriste
Posts: 10
Joined: Fri Jan 09, 2015 10:39 pm

Re: mov is converted to MP4 upside down

Post by lamhbriste »

mduell,
To avoid rf 0, should I click Average Bitrate, and pick something like 6000?
Sorry, I do not see the rotate filter.
My GUI does not have a Filters tab.
Thanks.
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: mov is converted to MP4 upside down

Post by mduell »

lamhbriste wrote: Wed Mar 21, 2018 4:15 pmTo avoid rf 0, should I click Average Bitrate, and pick something like 6000?
No, you should pick a reasonable quality setting, like the default RF 20.
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: mov is converted to MP4 upside down

Post by rollin_eng »

mduell wrote: Wed Mar 21, 2018 9:22 pm No, you should pick a reasonable quality setting, like the default RF 20.
Please read before posting.

The user appears to be using HB to convert his video for use in another program. Using RF 0 is probably the best way of maintaining quality in this case.
Deleted User 11865

Re: mov is converted to MP4 upside down

Post by Deleted User 11865 »

Perhaps RF 1, who knows if this video monkey will decode High 4:4:4 profile correctly…
lamhbriste
Posts: 10
Joined: Fri Jan 09, 2015 10:39 pm

Re: mov is converted to MP4 upside down

Post by lamhbriste »

Thanks for all the replies. No matter what RF I use, the movie comes out upside down.
There appears to be no Filter / Rotate option in my HB GUI.
The rotate option in my destination program (flip4mac) does not work.
mduell
Veteran User
Posts: 8207
Joined: Sat Apr 21, 2007 8:54 pm

Re: mov is converted to MP4 upside down

Post by mduell »

rollin_eng wrote: Thu Mar 22, 2018 10:33 am
mduell wrote: Wed Mar 21, 2018 9:22 pm No, you should pick a reasonable quality setting, like the default RF 20.
Please read before posting.

The user appears to be using HB to convert his video for use in another program. Using RF 0 is probably the best way of maintaining quality in this case.
Please think before posting.

It most certainly is not.
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: mov is converted to MP4 upside down

Post by rollin_eng »

Rodeo wrote: Thu Mar 22, 2018 2:36 pm Perhaps RF 1, who knows if this video monkey will decode High 4:4:4 profile correctly…
Sure, I have no idea either but...
mduell wrote: Thu Mar 22, 2018 3:33 pm
rollin_eng wrote: Thu Mar 22, 2018 10:33 am
mduell wrote: Wed Mar 21, 2018 9:22 pm No, you should pick a reasonable quality setting, like the default RF 20.
Please read before posting.

The user appears to be using HB to convert his video for use in another program. Using RF 0 is probably the best way of maintaining quality in this case.
Please think before posting.

It most certainly is not.
As you are certain RF 0 is not a good idea, perhaps you can enlighten us as to why RF 20 is the way to go.
Post Reply