Converting MOV to mp4 color changed massively HELP

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Converting MOV to mp4 color changed massively HELP

Post by rachels »

Description of problem or question:

When converting my MOV file to mp4, the color is so bright, it's useless
PLease do tell me how I can avoid that the MOV file changes
I have never had this before and am used to use Handbrake.
I never change the setting, they are standard.


Steps to reproduce the problem (If Applicable):

I use Handbrake weekly and never had this before



HandBrake version (e.g., 1.0.0):

HandBrake 1.2.2 (2019022300)


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

Windows 10


HandBrake Activity Log ***required*** (see How-to get an activity log)
HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Ram: 16205 MB,
GPU Information:
NVIDIA GeForce MX250 - 27.21.14.5763
Intel(R) UHD Graphics 620 - 26.20.100.7926
Screen: 1920x1080

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
If you are unable to do so, please state why so we can help you.
now sure what to do here
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Woodstock »

Does it still happen if you use a current version? 1.2.x is old.

Anything beyond that, we need to see your logs.
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

Hi Woodstuck,
Oh, how can I make sure to have the latest version, can you tell me?
Also, I would love to send you the log, but I can't figure out if I need to paste that entire long code here?
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

PS: just downloaded the new version, but I have serious doubts that will solve the issue on the color change
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
Segfault
Posts: 37
Joined: Sat Jun 17, 2017 3:08 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Segfault »

rachels,

as with everything in life, knowing what you do does help to get best results. You need MP4 instead of MOV, these are containers, wrapping video and audio into one file. In simplest case you do not need to re-encode (convert) anything, just remux your MOV into MP4. Handbrake is not the tool you need in this case. Avidemux allows copying video and audio into a different container, it is a free open source tool.
You should avoid re-encoding video and/or audio, because the codecs are lossy and every time you "convert" some fine details will be lost, for good.
Therefore, your first task should be to check out what's in your MOV. I have an old MOV here, video is 'MPEG-4 part 2' and audio is 'U-Law'. If I wanted to remux it into MP4 I should re-code audio, U-Law is not allowed in MP4 container, but there would be no need to do anything to video, MP4 container will accept it as it is.
There may be other reasons to re-encode instead of copy, for instance if you need a smaller file, some quality loss is inevitable then.
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

I tried again with the updated version of Handbrake.
Same issue.
It looks terrible.
Here's my log if it helps
HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19042.0
CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Ram: 16205 MB,
GPU Information:
NVIDIA GeForce MX250 - 27.21.14.5763
Intel(R) UHD Graphics 620 - 26.20.100.7926
Screen: 1920x1080
Temp Dir: C:\Users\Rachel\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Rachel\AppData\Roaming\HandBrake

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


# Starting Encode ...

[07:27:48] base preset: Fast 1080p30
[19:27:48] hb_init: starting libhb thread
[19:27:48] Starting work at: Mon May 10 19:27:48 2021
[19:27:48] 1 job(s) to process
[19:27:48] 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\\Rachel\\Desktop\\new videos OKT 2020\\new 0171.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"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": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "C:\\Users\\Rachel\\Desktop\\new videos OKT 2020\\IMG_0171.MOV"
},
"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
}
}
}
[19:27:48] CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
[19:27:48] - Intel microarchitecture Kaby Lake
[19:27:48] - logical processor count: 8
[19:27:48] Intel Quick Sync Video support: yes
[19:27:48] - Intel Media SDK hardware: API 1.31 (minimum: 1.3)
[19:27:48] - H.264 encoder: yes
[19:27:48] - preferred implementation: hardware (any) via D3D11
[19:27:48] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[19:27:48] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[19:27:48] - preferred implementation: hardware (any) via D3D11
[19:27:48] - capabilities (hardware): bpyramid icq vsinfo opt1
[19:27:48] hb_scan: path=C:\Users\Rachel\Desktop\new videos OKT 2020\IMG_0171.MOV, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\Rachel\Desktop\new videos OKT 2020\IMG_0171.MOV
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\Rachel\Desktop\new videos OKT 2020\IMG_0171.MOV\) failed
[19:27:48] 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
[19:27:48] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Rachel\Desktop\new videos OKT 2020\IMG_0171.MOV':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2021-05-06T14:18:55.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 12
com.apple.quicktime.software: 14.5
com.apple.quicktime.creationdate: 2021-05-06T16:18:55+0200
Duration: 00:13:43.04, start: 0.000000, bitrate: 8786 kb/s
Stream #0:0(und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 1920x1080, 8516 kb/s, 30 fps, 30 tbr, 600 tbn, 600 tbc (default)
Metadata:
creation_time : 2021-05-06T14:18:55.000000Z
handler_name : Core Media Video
encoder : HEVC
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 190 kb/s (default)
Metadata:
creation_time : 2021-05-06T14:18:55.000000Z
handler_name : Core Media Audio
Stream #0:2(und): Data: none (mebx / 0x7862656D) (default)
Metadata:
creation_time : 2021-05-06T14:18:55.000000Z
handler_name : Core Media Metadata
Stream #0:3(und): Data: none (mebx / 0x7862656D), 23 kb/s (default)
Metadata:
creation_time : 2021-05-06T14:18:55.000000Z
handler_name : Core Media Metadata
Stream #0:4(und): Data: none (mebx / 0x7862656D), 42 kb/s (default)
Metadata:
creation_time : 2021-05-06T14:18:55.000000Z
handler_name : Core Media Metadata
[19:27:48] scan: decoding previews for title 1
[19:27:48] scan: audio 0x1: aac, rate=44100Hz, bitrate=190831 Unknown (AAC LC) (2.0 ch) (190 kbps)
[19:27:49] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:27:49] scan: supported video decoders: avcodec qsv
[19:27:49] libhb: scan thread found 1 valid title(s)
[19:27:49] Skipping subtitle scan. No suitable subtitle tracks.
[19:27:49] Starting Task: Encoding Pass
[19:27:49] Skipping crop/scale filter
[19:27:49] work: only 1 chapter, disabling chapter markers
[19:27:49] job configuration:
[19:27:49] * source
[19:27:49] + C:\Users\Rachel\Desktop\new videos OKT 2020\IMG_0171.MOV
[19:27:49] + title 1, chapter(s) 1 to 1
[19:27:49] + container: mov,mp4,m4a,3gp,3g2,mj2
[19:27:49] + data rate: 8786 kbps
[19:27:49] * destination
[19:27:49] + C:\Users\Rachel\Desktop\new videos OKT 2020\new 0171.mp4
[19:27:49] + container: MPEG-4 (libavformat)
[19:27:49] + align initial A/V stream timestamps
[19:27:49] * video track
[19:27:49] + decoder: hevc
[19:27:49] + bitrate 8516 kbps
[19:27:49] + filters
[19:27:49] + 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)
[19:27:49] + Decomb (mode=39)
[19:27:49] + Framerate Shaper (mode=2:rate=27000000/900000)
[19:27:49] + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[19:27:49] + Output geometry
[19:27:49] + storage dimensions: 1920 x 1080
[19:27:49] + pixel aspect ratio: 1 : 1
[19:27:49] + display dimensions: 1920 x 1080
[19:27:49] + encoder: H.264 (libx264)
[19:27:49] + preset: fast
[19:27:49] + profile: main
[19:27:49] + level: 4.0
[19:27:49] + quality: 22.00 (RF)
[19:27:49] + color profile: 9-18-9
[19:27:49] * audio track 1
[19:27:49] + decoder: Unknown (AAC LC) (2.0 ch) (190 kbps) (track 1, id 0x1)
[19:27:49] + bitrate: 190 kbps, samplerate: 44100 Hz
[19:27:49] + mixdown: Stereo
[19:27:49] + dither: none
[19:27:49] + encoder: AAC (libavcodec)
[19:27:49] + bitrate: 160 kbps, samplerate: 44100 Hz
[19:27:49] sync: expecting 24691 video frames
[19:27:49] encx264: min-keyint: 30, keyint: 300
[19:27:49] encx264: encoding at constant RF 22.000000
[19:27:49] 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=1/1
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
[19:27:50] sync: first pts video is 0
[19:27:50] sync: "Chapter 1" (1) at frame 1 time 0
[19:27:50] sync: first pts audio 0x1 is 0
[19:54:19] reader: done. 1 scr changes
[19:54:26] work: average encoding speed for job is 15.491202 fps
[19:54:26] comb detect: heavy 5701 | light 8779 | uncombed 10210 | total 24690
[19:54:26] decomb: deinterlaced 5701 | blended 8779 | unfiltered 10210 | total 24690
[19:54:26] vfr: 24690 frames output, 0 dropped and 0 duped for CFR/PFR
[19:54:26] vfr: lost time: 0 (0 frames)
[19:54:26] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:54:26] aac-decoder done: 35446 frames, 0 decoder errors
[19:54:26] hevc-decoder done: 24690 frames, 0 decoder errors
[19:54:26] sync: got 24690 frames, 24691 expected
[19:54:26] sync: framerate min 22.222 fps, max 30.000 fps, avg 29.999 fps
x264 [info]: frame I:83 Avg QP:19.15 size:113801
x264 [info]: frame P:6173 Avg QP:21.93 size: 23595
x264 [info]: frame B:18434 Avg QP:22.96 size: 6083
x264 [info]: consecutive B-frames: 0.3% 0.0% 1.0% 98.7%
x264 [info]: mb I I16..4: 29.6% 0.0% 70.4%
x264 [info]: mb P I16..4: 1.6% 0.0% 2.6% P16..4: 40.3% 9.1% 6.4% 0.0% 0.0% skip:40.0%
x264 [info]: mb B I16..4: 2.6% 0.0% 0.3% B16..8: 15.0% 2.3% 0.1% direct: 7.5% skip:72.2% L0:40.8% L1:50.2% BI: 9.0%
x264 [info]: coded y,uvDC,uvAC intra: 32.7% 49.5% 5.6% inter: 5.4% 12.0% 0.0%
x264 [info]: i16 v,h,dc,p: 35% 19% 24% 23%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 16% 17% 6% 7% 7% 7% 6% 5%
x264 [info]: i8c dc,h,v,p: 67% 14% 17% 2%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.0%
x264 [info]: ref P L0: 56.9% 43.1%
x264 [info]: ref B L0: 76.5% 23.5%
x264 [info]: ref B L1: 94.3% 5.7%
x264 [info]: kb/s:2597.59
[19:54:27] mux: track 0, 24690 frames, 267234342 bytes, 2597.45 kbps, fifo 2048
[19:54:27] mux: track 1, 35447 frames, 16817250 bytes, 163.46 kbps, fifo 2048
[19:54:27] Finished work at: Mon May 10 19:54:27 2021
[19:54:27] libhb: work result = 0

# Encode Completed ...
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

Segfault wrote: Mon May 10, 2021 6:04 pm rachels,

as with everything in life, knowing what you do does help to get best results. You need MP4 instead of MOV, these are containers, wrapping video and audio into one file. In simplest case you do not need to re-encode (convert) anything, just remux your MOV into MP4. Handbrake is not the tool you need in this case. Avidemux allows copying video and audio into a different container, it is a free open source tool.
You should avoid re-encoding video and/or audio, because the codecs are lossy and every time you "convert" some fine details will be lost, for good.
Therefore, your first task should be to check out what's in your MOV. I have an old MOV here, video is 'MPEG-4 part 2' and audio is 'U-Law'. If I wanted to remux it into MP4 I should re-code audio, U-Law is not allowed in MP4 container, but there would be no need to do anything to video, MP4 container will accept it as it is.
There may be other reasons to re-encode instead of copy, for instance if you need a smaller file, some quality loss is inevitable then.
Thank you!
This is SUPERB, so I don't need to convert? All I Need is an mp4 file YES
OK< so I will find Avidemux right now
Then, do I need to know some settings there at all?
Segfault
Posts: 37
Joined: Sat Jun 17, 2017 3:08 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Segfault »

Unless you want to change some video or audio parameters - NO. Set video to 'Copy' and audio to 'Copy', then choose your new container (MP4). Avidemux will warn you if there is a compatibility issue.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rollin_eng »

Try a nightly build and turn off all your filters and encode with 265 10 bit.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Woodstock »

Code: Select all

Stream #0:0(und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 1920x1080, 8516 kb/s, 30 fps, 30 tbr, 600
You are starting with a 10-bit color source, and mapping it to 8-bit during the encode. You have a number of parameters that would limit the results of the mapping, one being locking x264 in to level 4.0.

To maintain the 10-bit color, you will need to use the latest beta code (the "Nightly Builds"), which implements a 10-bit color path, so long as you do not use any filters.
Segfault
Posts: 37
Joined: Sat Jun 17, 2017 3:08 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Segfault »

Woodstock,

why should anyone re-encode HEVC to HEVC using same resolution and bitness? There will be negative impact on quality and for high definition video this is enormous load for CPU, when done in software. May help to keep house warm in winter, all that heat coming from your CPU doing this useless, even harmful job.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Ritsuka »

Your files is HLG with Dolby Vision dynamic metadata. Unfortunately there isn't much support for Dolby Vision (and the new profile used by the iPhone) yet.
A nightly build of HandBrake and a 10bit encoder will help to preserve some quality, but the Dolby Vision metadata will be lost.
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

Ritsuka wrote: Mon May 10, 2021 8:13 pm Your files is HLG with Dolby Vision dynamic metadata. Unfortunately there isn't much support for Dolby Vision (and the new profile used by the iPhone) yet.
A nightly build of HandBrake and a 10bit encoder will help to preserve some quality, but the Dolby Vision metadata will be lost.
Thanks. I do realize it's the Dolby Vision that has changed on my end and can I turn that off on the iphone?
Secondly, I have no idea what nightly build means or how to set it up, but I've read it's not needed.

Thanks
rachels
Posts: 7
Joined: Mon May 10, 2021 1:59 pm

Re: Converting MOV to mp4 color changed massively HELP

Post by rachels »

Segfault wrote: Mon May 10, 2021 6:24 pm Unless you want to change some video or audio parameters - NO. Set video to 'Copy' and audio to 'Copy', then choose your new container (MP4). Avidemux will warn you if there is a compatibility issue.
Thanks. I really appreciate you understood my issue so fast.
I've done that last night and I THINK it's working perfectly. It's pretty much all I need.
Though I Haven't made any edits yet so I need to be sure of it.
However, you seem to understand all I need is the mp4 and yes, it comes from the HEVC file from my iPhone, but I really don't understand the 10-bit and 8-bit color part.
Maybe I can turn off the Dolby Vision on my iphone? I'm not sure.

Thanks
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Converting MOV to mp4 color changed massively HELP

Post by Ritsuka »

Yes you should be able to turn it off on the iPhone: https://support.apple.com/en-us/guide/i ... fe2ebc/ios
Post Reply