Colors desaturated on export

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
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Colors desaturated on export

Post by RyanGraham »

I have a load of screenflow files that are taking up a lot of space so I want to compress them, I've exported the files from screenflow as animation files with the highest quality and then using handbrake converted them to h265 and the space savings are great as well as the detail but when comparing the two the colors are more vibrant on the animation export. Even when converting it to h264 it is still a bit pale, the only way to get the colors correct is to export it from screenflow as a h264 and then convert it to h265 with handbrake but when I do this everything appears a bit soft obviously cause the double compression. I know this is a well documented issue as I’ve googled it and googled it but cant find an answer to the problem, when I go to windows I can fix the issue by changing the settings in the nvidia control panel from 16-235 to full range or by changing the hardware supported yuv to rgb in the settings for vlc but unfortunately there are no such settings for mac. Clearly there is something that screenflow is doing when it exports as h264 that tells the computer to show the colors properly and there must be a way to do this in handbrake but I haven’t found the answer. Even looking at the mediainfo for the files doesn’t help I’ve tried cabac=no and the chroma offset to 0 and it makes no difference. As I’m going to delete the original screenflow files to save space I would like these files to be correct before I irreversibly delete the originals.

I'm running handbrake 1.07 on mavericks

Here is the log of the export as requisted
[12:55:21] macgui: trying to open a folder or file
[12:55:21] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[12:55:21] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[12:55:21] - Intel microarchitecture Sandy Bridge
[12:55:21] - logical processor count: 8
[12:55:21] hb_scan: path=/Volumes/Main storage/ScreenFlow compressions/Input.mov, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Volumes/Main storage/ScreenFlow compressions/Input.mov
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[12:55:21] 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
[12:55:21] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Main storage/ScreenFlow compressions/Input.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2017-07-07 08:39:06
Duration: 00:02:52.03, start: 0.000000, bitrate: 478789 kb/s
Stream #0:0(eng): Audio: pcm_s16be [twos / 0x736F7774]
44100 Hz, 2 channels, s16, 1411 kb/s (default)
Metadata:
creation_time : 2017-07-07 08:39:06
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: qtrle [rle / 0x20656C72]
bgra, 1920x1080, 477375 kb/s
30 fps, 3k tbn (default)
Metadata:
creation_time : 2017-07-07 08:39:06
handler_name : Apple Alias Data Handler
encoder : Animation
[12:55:21] scan: decoding previews for title 1
[12:55:21] scan: audio 0x0: pcm_s16be, rate=44100Hz, bitrate=1411200 English (pcm_s16be) (2.0 ch)
[12:55:21] scan: 10 previews, 1920x1080, 28.407 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 1:1
[12:55:21] libhb: scan thread found 1 valid title(s)
[12:55:21] macgui: ScanCore scan done
[12:56:00] macgui: QueueCore scanning specifically for title: 1
[12:56:00] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[12:56:00] - Intel microarchitecture Sandy Bridge
[12:56:00] - logical processor count: 8
[12:56:00] hb_scan: path=/Volumes/Main storage/ScreenFlow compressions/Input.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Volumes/Main storage/ScreenFlow compressions/Input.mov
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[12:56:00] 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
[12:56:00] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Main storage/ScreenFlow compressions/Input.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2017-07-07 08:39:06
Duration: 00:02:52.03, start: 0.000000, bitrate: 478789 kb/s
Stream #0:0(eng): Audio: pcm_s16be [twos / 0x736F7774]
44100 Hz, 2 channels, s16, 1411 kb/s (default)
Metadata:
creation_time : 2017-07-07 08:39:06
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Video: qtrle [rle / 0x20656C72]
bgra, 1920x1080, 477375 kb/s
30 fps, 3k tbn (default)
Metadata:
creation_time : 2017-07-07 08:39:06
handler_name : Apple Alias Data Handler
encoder : Animation
[12:56:00] scan: decoding previews for title 1
[12:56:00] scan: audio 0x0: pcm_s16be, rate=44100Hz, bitrate=1411200 English (pcm_s16be) (2.0 ch)
[12:56:01] scan: 10 previews, 1920x1080, 28.407 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 1:1
[12:56:01] libhb: scan thread found 1 valid title(s)
[12:56:01] macgui: QueueCore scan done
[12:56:01] 1 job(s) to process
[12:56:01] macgui: QueueCore started encoding outputh265.mp4
[12:56:01] macgui: QueueCore with preset Custom
[12:56:01] starting job
[12:56:01] decomb filter thread started for segment 0
[12:56:01] decomb filter thread started for segment 1
[12:56:01] decomb filter thread started for segment 2
[12:56:01] decomb filter thread started for segment 3
[12:56:01] decomb filter thread started for segment 4
[12:56:01] decomb filter thread started for segment 5
[12:56:01] decomb filter thread started for segment 6
[12:56:01] decomb filter thread started for segment 7
[12:56:01] decomb check thread started for segment 0
[12:56:01] decomb check thread started for segment 1
[12:56:01] decomb check thread started for segment 2
[12:56:01] decomb check thread started for segment 3
[12:56:01] decomb check thread started for segment 4
[12:56:01] decomb check thread started for segment 5
[12:56:01] decomb check thread started for segment 6
[12:56:01] decomb check thread started for segment 7
[12:56:01] mask filter thread started for segment 0
[12:56:01] mask filter thread started for segment 1
[12:56:01] mask filter thread started for segment 2
[12:56:01] mask filter thread started for segment 3
[12:56:01] mask filter thread started for segment 4
[12:56:01] mask filter thread started for segment 5
[12:56:01] mask filter thread started for segment 6
[12:56:01] mask filter thread started for segment 7
[12:56:01] mask erode thread started for segment 0
[12:56:01] mask erode thread started for segment 1
[12:56:01] mask erode thread started for segment 2
[12:56:01] mask erode thread started for segment 3
[12:56:01] mask erode thread started for segment 4
[12:56:01] mask erode thread started for segment 5
[12:56:01] mask erode thread started for segment 6
[12:56:01] mask erode thread started for segment 7
[12:56:01] mask dilate thread started for segment 0
[12:56:01] mask dilate thread started for segment 1
[12:56:01] mask dilate thread started for segment 2
[12:56:01] mask dilate thread started for segment 3
[12:56:01] mask dilate thread started for segment 4
[12:56:01] mask dilate thread started for segment 5
[12:56:01] mask dilate thread started for segment 6
[12:56:01] mask dilate thread started for segment 7
[12:56:01] yadif thread started for segment 0
[12:56:01] yadif thread started for segment 1
[12:56:01] yadif thread started for segment 2
[12:56:01] yadif thread started for segment 3
[12:56:01] yadif thread started for segment 4
[12:56:01] yadif thread started for segment 5
[12:56:01] yadif thread started for segment 6
[12:56:01] yadif thread started for segment 7
[12:56:01] work: only 1 chapter, disabling chapter markers
[12:56:01] job configuration:
[12:56:01] * source
[12:56:01] + /Volumes/Main storage/ScreenFlow compressions/Input.mov
[12:56:01] + title 1, chapter(s) 1 to 1
[12:56:01] + container: mov,mp4,m4a,3gp,3g2,mj2
[12:56:01] + data rate: 478789 kbps
[12:56:01] * destination
[12:56:01] + /Volumes/Main storage/ScreenFlow compressions/outputh265.mp4
[12:56:01] + container: MPEG-4 (libavformat)
[12:56:01] * video track
[12:56:01] + decoder: qtrle
[12:56:01] + bitrate 477375 kbps
[12:56:01] + filters
[12:56:01] + 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)
[12:56:01] + Decomb (mode=39)
[12:56:01] + Framerate Shaper (mode=2:rate=27000000/900000)
[12:56:01] + frame rate: 28.407 fps -> peak rate limited to 30.000 fps
[12:56:01] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:56:01] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[12:56:01] + Output geometry
[12:56:01] + storage dimensions: 1920 x 1080
[12:56:01] + pixel aspect ratio: 1 : 1
[12:56:01] + display dimensions: 1920 x 1080
[12:56:01] + encoder: H.265 (libx265)
[12:56:01] + preset: fast
[12:56:01] + profile: main
[12:56:01] + quality: 22.00 (RF)
[12:56:01] * audio track 1
[12:56:01] + decoder: English (pcm_s16be) (2.0 ch) (track 1, id 0x0)
[12:56:01] + bitrate: 1411 kbps, samplerate: 44100 Hz
[12:56:01] + mixdown: Stereo
[12:56:01] + encoder: AAC (Apple AudioToolbox)
[12:56:01] + bitrate: 320 kbps, samplerate: 44100 Hz
[12:56:01] sync: expecting 4887 video frames
x265 [info]: HEVC encoder version 2.1
x265 [info]: build info [Mac OS X][clang 8.1.0][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut : 28 / 280 / 40
x265 [info]: Lookahead / bframes / badapt : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-22.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=6 deblock sao
[12:56:02] sync: first pts video is 0
[12:56:02] sync: "Chapter 1" (1) at frame 1 time 0
[12:56:02] sync: first pts audio 0x0 is 0
[13:02:46] reader: done. 1 scr changes
[13:02:52] work: average encoding speed for job is 11.966933 fps
[13:02:52] comb detect: heavy 9 | light 134 | uncombed 4744 | total 4887
[13:02:52] decomb: deinterlaced 9 | blended 134 | unfiltered 4744 | total 4887
[13:02:52] vfr: 4887 frames output, 0 dropped and 0 duped for CFR/PFR
[13:02:52] vfr: lost time: 0 (0 frames)
[13:02:52] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:02:52] pcm_s16be-decoder done: 7570 frames, 0 decoder errors
[13:02:52] qtrle-decoder done: 4887 frames, 0 decoder errors
[13:02:52] sync: got 4887 frames, 4887 expected
[13:02:52] sync: framerate min 7.500 fps, max 30.000 fps, avg 28.414 fps
x265 [info]: frame I: 33, Avg QP:21.04 kb/s: 12729.97
x265 [info]: frame P: 980, Avg QP:21.27 kb/s: 7136.02
x265 [info]: frame B: 3874, Avg QP:25.89 kb/s: 2463.87
x265 [info]: Weighted P-Frames: Y:1.7% UV:1.5%
x265 [info]: consecutive B-frames: 3.4% 0.9% 0.6% 0.3% 94.9%

encoded 4887 frames in 411.25s (11.88 fps), 3470.11 kb/s, Avg QP:24.93
[13:02:52] mux: track 0, 4887 frames, 74641397 bytes, 3470.31 kbps, fifo 2048
[13:02:52] mux: track 1, 7409 frames, 7038646 bytes, 327.25 kbps, fifo 4096
[13:02:52] libhb: work result = 0
[13:02:52] macgui: QueueCore work done
[13:02:52] macgui: Queue Done, there are no more pending encodes
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

What formats can Screenflow export? I would try something like ProRes, that usually signals the color space or full range correctly.
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Hi, unfortunatly ProRes isint an option, theres animation, Apple intermediate code (which I've tried), DV-PAL, DV/DVCPRO - NTSC, DV/DVCPRO - PAL, DVCPRO50 - NTSC, DVCPRO50 - PAL, H.264, MPEG-4 Video and Photo - JPEG, it seems like the only apropraite option is animation but Im left with this issue so
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

I managed to update Screenflow and ProRes is an option so I exported in both 444 and 422 now the 444 was just a green screen but the 422 as well as the 422 converted to h265 and the 444 converted to h265 are ale slightly dark while the colours are alright, what could be causing this?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Colors desaturated on export

Post by BradleyS »

Definitely sounds like the Screenflow export isn't signaling color or range properly.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

Can you upload some samples so we can check?
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

em are you meaning the actual files or screenshots cause even a minute long is around 10gb for some of them so Id have to just cut one second of the video, and which specific ones I assume the animation, h265, h264 from screenflow and a ProRes 444 from screenflow are they fine?
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

sorry to bump this thread but I'm still having this issue and its really frustrating, I would really appreciate if we could somehow fix this.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

actual file, 20 seconds are enough.
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

thanks for replying, ok which formats do you want? is h265, the animation, the correct h264 from screenflow and the proress 444 fine?
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

Yes.
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Im just doing the proress one now which might take a while but for the meantime heres the other 3, animation: https://drive.google.com/open?id=0B6k61 ... TFLRDRIMWs h264: https://drive.google.com/open?id=0B6k61 ... Vd0eU5fbk0 and h265: https://drive.google.com/open?id=0B6k61 ... 2VqU1pnUk0
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

Can you recap what are the files with the right colours in QuickTime? All of them?
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Sure, the animation and h264 directly from screenflow both have the correct colours however the animation converted to h265 in handbrake has slightly lighter colours, if I convert the h264 to h265 its fine but its not ideal obviously and then the proress I'm doing now the colours seem fine but just everythings darker.

Here's a comparison between the 4 showing what I mean, I know its subtle but would love if it were to be fixed, the thing Im noticing it most with is the purple subscribe http://imgur.com/a/W9v83

theres the ProRes 444 now, https://drive.google.com/open?id=0B6k61 ... WhMN0ttR0E
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

The animation file has got no color space tag, so HandBrake guesses one and it's probably not the one Screenflow meant. The prores one as you saw is darker, again is not properly tagged and so every app guess something different, and there is no way yet to manually set the input color space yet in HandBrake.

Can you export one in ProRes 422 too?

By the way, some useful links if you want to report the bug to Screenflow developers:
https://developer.apple.com/library/con ... index.html
https://developer.apple.com/library/con ... index.html
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Thanks for investigating what the issue is, I can do ProRes 422 but thats just a green screen when I play it and when converted I think its dark still, I will report it to them thanks for the link. Obviously its not something that could be done over night but in future versions of handbrake could manual colour space selection be added? Im not sure if you have any control over features but since your part of the handbrake I assume you could tell the appropriate person if not, just as a workaround for this issue it would be good and much appreciated.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Colors desaturated on export

Post by BradleyS »

We've discussed adding manual color space controls in the future. No firm plans but it will probably happen when we have time.
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Ah ok thats good to hear, I look forward to it potentially coming, thanks a lot again for helping :)
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

You can use another screen recorder too, for example QuickTime Player sets the right color space on the files it records.
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

Ah yeah thanks for that its a few clicks and its much easier, although it is h264 and the h264 export from screenflow is fine colour wise but by exporting to animation then to h265 in handbrake there should be less quality loss although it doesn't really matter for screen recordings but obviously it would more ideal if it worked, in september I'm probably getting the new iPhone and with that updating to high sierra so everything's compatible and then hopefully quicktime records in h265. It's just I've got a quarter of a TB of these raw screenflow files and when compressed they're only around 7 percent of the original so the savings are huge but in future Ill probably just record with quicktime to save all the messing.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Colors desaturated on export

Post by Ritsuka »

Another way could be to use Automator to tag the files: http://www.tiliam.com/Blog/2013/08/26/c ... time-video
RyanGraham
Posts: 12
Joined: Sat Jul 08, 2017 11:36 am

Re: Colors desaturated on export

Post by RyanGraham »

I actually had a look at that exact article before when you said about the colour space tag, I didn't actually convert it once putting it through that so maybe it'll be fine but I thought the issue when looking at media info was that the colour space was rgba and not yuv, also thats the settings in vlc on windows that seem to fix it, I will try adding the 709 tag and converting it but I have a feeling it wont work.

Edit: yeah I tried it with all three, 709, 601 and rgb and it didn't make a difference thanks for the suggestion though
Post Reply