Page 1 of 1

Color Washed out in Encoded File

Posted: Fri Mar 19, 2010 5:29 am
by wdarkk
I've been working on a project that involves taking an m2ts file, deinterlacing it, and turning it into an mp4. I noticed that the output files seem to have washed out color. I'm using HandBrake 0.9.4 x86_64 (2009112300) on a Mac Pro (1,1 3GHz) running 10.6.2. VLC 1.0.5 is installed if that matters.

Image
That's the original.

Image
Image
Image
These are the decoded video in Movist, Quicktime X, and VLC. VLC seems a bit darker than the source (and oh yeah it also resizes it for no apparent reason when I select "Normal Size").

Image
I tried encoding it with ffmpeg in case it was x264 that was having a problem but no, it distorts color too.

Regular Encode Log:

Code: Select all

HandBrake Activity Log for /Users/asacks/No Backup/20100317_140348.mp4: 2010-03-18 19:27:05 -0400
Handbrake Version: 0.9.4 x86_64 (2009112300)

[19:27:05] macgui: scanning specifically for title: 1
[19:27:05] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[19:27:05] hb_scan: path=/Users/asacks/No Backup/20100317_140348.m2ts, title_index=1
[19:27:05] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:05] dvd: not a dvd - trying as a stream/file instead
[19:27:05] file is MPEG Transport Stream with 188 byte packets offset 188 bytes
[19:27:05] hb_ts_stream_find_pids - found the following PIDS
[19:27:05]     Video PIDS : 
[19:27:05]       0x1011 type H.264 (0x1b)
[19:27:05]     Audio PIDS : 
[19:27:05]       0x1100 type AC-3 (0x81)
[19:27:05] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[19:27:05] scan: decoding previews for title 1
[19:27:05] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch)
[19:27:05] scan: 10 previews, 720x480, 29.970 fps, autocrop = 16/16/40/40, aspect 4:3, PAR 8:9
[19:27:05] scan: title (0) job->width:576, job->height:448
[19:27:05] stream: 3 good frames, 0 errors (0%)
[19:27:05] libhb: scan thread found 1 valid title(s)
[19:27:05] macgui: ScanDone state received from fQueueEncodeLibhb
[19:27:05] macgui: Preset: Custom
[19:27:05] macgui: processNewQueueEncode number of passes expected is: 1
[19:27:05] macgui: prepareJob exiting
[19:27:05] 1 job(s) to process
[19:27:05] starting job
[19:27:05] job configuration:
[19:27:05]  * source
[19:27:05]    + /Users/asacks/No Backup/20100317_140348.m2ts
[19:27:05]    + title 1, chapter(s) 1 to 1
[19:27:05]  * destination
[19:27:05]    + /Users/asacks/No Backup/20100317_140348.mp4
[19:27:05]    + container: MPEG-4 (.mp4 and .m4v)
[19:27:05]  * video track
[19:27:05]    + decoder: h264
[19:27:05]      + bitrate 200 kbps
[19:27:05]    + frame rate: same as source (around 29.970 fps)
[19:27:05]    + strict anamorphic
[19:27:05]      + modulus: 0
[19:27:05]      + storage dimensions: 720 * 480 -> 640 * 448, crop 16/16/40/40
[19:27:05]      + pixel aspect ratio: 8 / 9
[19:27:05]      + display dimensions: 568 * 448
[19:27:05]    + encoder: x264
[19:27:05]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[19:27:05]      + quality: 17.00 (RF)
[19:27:05]  * audio track 0
[19:27:05]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[19:27:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[19:27:05]    + mixdown: Stereo
[19:27:05]    + encoder: ca_aac
[19:27:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:05] dvd: not a dvd - trying as a stream/file instead
[19:27:05] encx264: keyint-min: 30, keyint-max: 300
[19:27:05] encx264: encoding with stored aspect 8/9
[19:27:05] encx264: Encoding at constant RF 17.000000
[19:27:05] reader: first SCR 1499 id 1 DTS 34834
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[19:27:05] sync: expecting 64410 video frames
[19:27:05] sync: first pts is 9009
[19:37:05] hb_ts_stream_decode - eof
[19:37:05] stream: 65534 good frames, 0 errors (0%)
[19:37:05] reader: done. 0 scr changes
[19:37:07] sync: got 65532 frames, 64410 expected
[19:37:07] work: average encoding speed for job is 108.889313 fps
[19:37:07] mux: track 0, 65533 frames, 390181013 bytes, 1427.48 kbps, fifo 64
[19:37:07] mux: track 1, 102498 frames, 44692192 bytes, 163.51 kbps, fifo 1024
[19:37:07] h264-decoder done: 65533 frames, 0 decoder errors, 0 drops
[19:37:07] render: lost time: 0 (0 frames)
[19:37:07] render: gained time: 0 (0 frames) (0 not accounted for)
[19:37:07] encx264: 1 frames had to be split (65532 in, 65584 out)
x264 [info]: frame I:334   Avg QP:13.04  size: 54597  PSNR Mean Y:51.49 U:54.69 V:55.72 Avg:52.35 Global:50.12
x264 [info]: frame P:38734 Avg QP:14.92  size:  7824  PSNR Mean Y:47.61 U:50.12 V:50.58 Avg:48.26 Global:47.41
x264 [info]: frame B:26465 Avg QP:20.64  size:  2604  PSNR Mean Y:47.19 U:49.77 V:50.31 Avg:47.76 Global:46.16
x264 [info]: consecutive B-frames: 37.1%  8.0% 54.9%
x264 [info]: mb I  I16..4: 31.3%  0.0% 68.7%
x264 [info]: mb P  I16..4:  1.1%  0.0%  2.6%  P16..4: 26.1%  7.5%  6.3%  0.0%  0.0%    skip:56.4%
x264 [info]: mb B  I16..4:  1.0%  0.0%  1.1%  B16..8: 11.0%  2.1%  1.6%  direct: 9.2%  skip:73.9%  L0:28.1% L1:40.9% BI:31.0%
x264 [info]: coded y,uvDC,uvAC intra: 77.8% 86.9% 74.8% inter: 15.1% 13.8% 4.6%
x264 [info]: i16 v,h,dc,p: 17% 65% 11%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 51% 13%  3%  3%  3%  5%  3%  5%
x264 [info]: Weighted P-Frames: Y:2.6%
x264 [info]: ref P L0: 81.7%  7.5% 10.8%
x264 [info]: SSIM Mean Y:0.9922015
x264 [info]: PSNR Mean Y:47.456 U:50.002 V:50.500 Avg:48.083 Global:46.872 kb/s:1427.57
[19:37:07] libhb: work result = 0

ffmpeg Encode Log

Code: Select all

HandBrake Activity Log for /Users/asacks/No Backup/20100317_140348a.mp4: 2010-03-18 20:03:43 -0400
Handbrake Version: 0.9.4 x86_64 (2009112300)

[20:03:43] macgui: Rip: Pending queue count is 0
[20:03:43] macgui: scanning specifically for title: 1
[20:03:43] macgui: performNewQueueScan currentQueueEncodeIndex is: 1
[20:03:43] hb_scan: path=/Users/asacks/No Backup/20100317_140348.m2ts, title_index=1
[20:03:43] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:03:43] dvd: not a dvd - trying as a stream/file instead
[20:03:43] file is MPEG Transport Stream with 188 byte packets offset 188 bytes
[20:03:43] hb_ts_stream_find_pids - found the following PIDS
[20:03:43]     Video PIDS : 
[20:03:43]       0x1011 type H.264 (0x1b)
[20:03:43]     Audio PIDS : 
[20:03:43]       0x1100 type AC-3 (0x81)
[20:03:43] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1)
[20:03:43] scan: decoding previews for title 1
[20:03:43] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch)
[20:03:43] scan: 10 previews, 720x480, 29.970 fps, autocrop = 16/16/40/40, aspect 4:3, PAR 8:9
[20:03:43] scan: title (0) job->width:576, job->height:448
[20:03:43] stream: 3 good frames, 0 errors (0%)
[20:03:43] libhb: scan thread found 1 valid title(s)
[20:03:43] macgui: ScanDone state received from fQueueEncodeLibhb
[20:03:43] macgui: Preset: Custom
[20:03:43] macgui: processNewQueueEncode number of passes expected is: 1
[20:03:43] macgui: prepareJob exiting
[20:03:43] 1 job(s) to process
[20:03:43] starting job
[20:03:43] job configuration:
[20:03:43]  * source
[20:03:43]    + /Users/asacks/No Backup/20100317_140348.m2ts
[20:03:43]    + title 1, chapter(s) 1 to 1
[20:03:43]  * destination
[20:03:43]    + /Users/asacks/No Backup/20100317_140348a.mp4
[20:03:43]    + container: MPEG-4 (.mp4 and .m4v)
[20:03:43]  * video track
[20:03:43]    + decoder: h264
[20:03:43]      + bitrate 200 kbps
[20:03:43]    + frame rate: same as source (around 29.970 fps)
[20:03:43]    + strict anamorphic
[20:03:43]      + modulus: 0
[20:03:43]      + storage dimensions: 720 * 480 -> 640 * 448, crop 16/16/40/40
[20:03:43]      + pixel aspect ratio: 8 / 9
[20:03:43]      + display dimensions: 568 * 448
[20:03:43]    + encoder: FFmpeg
[20:03:43]      + quality: 11.00 (QP)
[20:03:43]  * audio track 0
[20:03:43]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 1)
[20:03:43]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:03:43]    + mixdown: Stereo
[20:03:43]    + encoder: ca_aac
[20:03:43]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:03:43] dvd: not a dvd - trying as a stream/file instead
[20:03:43] reader: first SCR 1499 id 1 DTS 34834
[20:03:43] encavcodec: encoding at constant quantizer 1298
[20:03:43] encavcodec: encoding with stored aspect 8/9
No accelerated IMDCT transform found
[20:03:43] sync: expecting 64410 video frames
[20:03:43] sync: first pts is 9009
[20:08:40] hb_ts_stream_decode - eof
[20:08:40] stream: 65534 good frames, 0 errors (0%)
[20:08:40] reader: done. 0 scr changes
[20:08:40] sync: got 65532 frames, 64410 expected
[20:08:40] work: average encoding speed for job is 220.325211 fps
[20:08:40] mux: track 0, 65532 frames, 89550965 bytes, 327.62 kbps, fifo 64
[20:08:40] mux: track 1, 102498 frames, 44692192 bytes, 163.51 kbps, fifo 1024
[20:08:40] h264-decoder done: 65533 frames, 0 decoder errors, 0 drops
[20:08:40] render: lost time: 0 (0 frames)
[20:08:40] render: gained time: 0 (0 frames) (0 not accounted for)
[20:08:40] libhb: work result = 0

Re: Color Washed out in Encoded File

Posted: Fri Mar 19, 2010 6:18 pm
by mduell
What's the color space supposed to be?

Re: Color Washed out in Encoded File

Posted: Mon Mar 22, 2010 12:21 am
by wdarkk
mduell wrote:What's the color space supposed to be?
I'm not actually sure how to get that - is there some way of extracting it from the mt2s file?

EDIT: I don't see any mention of the color space in the capture device's drivers. Plenty of color adjustment sliders, but nothing about color space.

Re: Color Washed out in Encoded File

Posted: Tue Mar 23, 2010 6:02 pm
by wdarkk
I haven't been able to find out what color space the recorder uses, but I did find out that it doesn't include a gamma atom in the files it produces. Could this be the cause?

Re: Color Washed out in Encoded File

Posted: Wed Mar 24, 2010 3:25 pm
by jbrjake
Then how do you even know you're viewing the source correctly?

Re: Color Washed out in Encoded File

Posted: Wed Mar 24, 2010 4:15 pm
by wdarkk
I think it might be the source's problem, I tried other de-interlacing programs and had similar problems. Thanks for the help though.

Re: Color Washed out in Encoded File

Posted: Thu Mar 25, 2010 3:07 pm
by jbrjake
....considering that you weren't even using a deinterlacing filter in HandBrake, I somehow doubt that is relevant.

Re: Color Washed out in Encoded File

Posted: Sat Jun 19, 2010 4:40 am
by wjcdxugb
I believe that I'm experiencing the same problem. Here's what the DVD looks like:
Image
and here's what the file encoded with Handbrake looks like:
Image
If you lay these images one on top of the other, and switch back and forth between them, you can see the difference. I'm using Handbrake for Mac Version 0.9.4 i386 (2009112300) and VLC for Mac Version 1.0.5 (Intel 32bit). I'm using MPEG-4 (FFmpeg) instead of H.264 (x264). Here's the activity log:

Code: Select all

[23:19:07] macgui: trying to open a physical dvd at: /Volumes/RATATOUILLE
[23:19:07] macgui: VLC app found for decrypting physical dvd
[23:19:07] macgui:  32-Bit VLC app found for decrypting physical dvd
[23:19:07] macgui: scanning specifically for title: 1
[23:19:07] hb_scan: path=/dev/disk1, title_index=1
[23:19:07] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
NAME OPEN FAILED
libdvdnav: Unable to find map file '/Users/mini6/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000017e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000027e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000283
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0001e6d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0001e6d9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0005fa1f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0005fa24
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00095c6d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00095c72
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x000d09f1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x000d09f6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x000de1c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x000f3ae4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003a27ad
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003a27b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003a85e6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003a85eb
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003ade74
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003ade79
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003c25be
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003c25c3
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003d30e0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003d30e5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x003de5d2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x003de5d7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x003e1dc3
libdvdread: Elapsed time 0
libdvdread: Found 13 VTS's
libdvdread: Elapsed time 0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[23:19:09] scan: DVD has 29 title(s)
[23:19:09] scan: scanning title 1
[23:19:09] scan: opening IFO for VTS 6
[23:19:09] pgc_id: 1, pgn: 1: pgc: 0x8c50f00
[23:19:09] scan: vts=6, ttn=1, cells=0->93, blocks=1296->2813008, 2811713 blocks
[23:19:09] scan: duration is 01:51:02 (6662166 ms)
[23:19:09] scan: checking audio 1
[23:19:09] scan: id=80bd, lang=English (AC3), 3cc=eng ext=1
[23:19:09] scan: checking audio 2
[23:19:09] scan: id=81bd, lang=English (AC3), 3cc=eng ext=1
[23:19:09] scan: checking subtitle 1
[23:19:09] scan: id=21bd, lang=English (Closed Caption), 3cc=eng
[23:19:09] scan: title 1 has 32 chapters
[23:19:09] scan: chap 1 c=0->7, b=1296->32775 (31480), 78226 ms
[23:19:09] scan: chap 2 c=8->10, b=32776->170032 (137257), 313667 ms
[23:19:09] scan: chap 3 c=11->13, b=170033->244700 (74668), 173128 ms
[23:19:09] scan: chap 4 c=14->16, b=244701->289458 (44758), 95641 ms
[23:19:09] scan: chap 5 c=17->22, b=289459->363357 (73899), 150741 ms
[23:19:09] scan: chap 6 c=23->26, b=363358->470816 (107459), 248528 ms
[23:19:09] scan: chap 7 c=27->28, b=470817->519912 (49096), 116767 ms
[23:19:09] scan: chap 8 c=29->31, b=519913->651092 (131180), 310606 ms
[23:19:09] scan: chap 9 c=32->32, b=651093->750198 (99106), 247160 ms
[23:19:09] scan: chap 10 c=33->34, b=750199->870283 (120085), 250207 ms
[23:19:09] scan: chap 11 c=35->35, b=870284->992614 (122331), 309561 ms
[23:19:09] scan: chap 12 c=36->37, b=992615->1051340 (58726), 140011 ms
[23:19:09] scan: chap 13 c=38->41, b=1051341->1139023 (87683), 217384 ms
[23:19:09] scan: chap 14 c=42->42, b=1139024->1207524 (68501), 167927 ms
[23:19:09] scan: chap 15 c=43->43, b=1207525->1321070 (113546), 269443 ms
[23:19:09] scan: chap 16 c=44->46, b=1321071->1460255 (139185), 333765 ms
[23:19:09] scan: chap 17 c=47->47, b=1460256->1524952 (64697), 150695 ms
[23:19:09] scan: chap 18 c=48->48, b=1524953->1559607 (34655), 81375 ms
[23:19:09] scan: chap 19 c=49->50, b=1559608->1721876 (162269), 386971 ms
[23:19:09] scan: chap 20 c=51->55, b=1721877->1826772 (104896), 245505 ms
[23:19:09] scan: chap 21 c=56->60, b=1826773->1926330 (99558), 241831 ms
[23:19:09] scan: chap 22 c=61->68, b=1926331->2022196 (95866), 236426 ms
[23:19:09] scan: chap 23 c=69->70, b=2022197->2123408 (101212), 245485 ms
[23:19:09] scan: chap 24 c=71->72, b=2123409->2176814 (53406), 123924 ms
[23:19:09] scan: chap 25 c=73->73, b=2176815->2242859 (66045), 163808 ms
[23:19:09] scan: chap 26 c=74->79, b=2242860->2355437 (112578), 259892 ms
[23:19:09] scan: chap 27 c=80->84, b=2355438->2436192 (80755), 180276 ms
[23:19:09] scan: chap 28 c=85->86, b=2436193->2513983 (77791), 188197 ms
[23:19:09] scan: chap 29 c=87->88, b=2513984->2572024 (58041), 124594 ms
[23:19:09] scan: chap 30 c=89->90, b=2572025->2628690 (56666), 123767 ms
[23:19:09] scan: chap 31 c=91->92, b=2628691->2813003 (184313), 486464 ms
[23:19:09] scan: chap 32 c=93->93, b=2813004->2813008 (5), 176 ms
[23:19:09] scan: aspect = 0
[23:19:09] scan: decoding previews for title 1
[23:19:09] scan: title angle(s) 1
[23:19:10] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[23:19:10] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (Dolby Surround)
[23:19:16] scan: 30 previews, 720x480, 23.976 fps, autocrop = 58/62/0/0, aspect 16:9, PAR 32:27
[23:19:16] scan: title (0) job->width:720, job->height:304
[23:19:16] libhb: scan thread found 1 valid title(s)
[23:21:26] macgui: Rip: Pending queue count is 0
[23:21:26] macgui: scanning specifically for title: 1
[23:21:26] macgui: performNewQueueScan currentQueueEncodeIndex is: 4
[23:21:26] hb_scan: path=/dev/disk1, title_index=1
[23:21:26] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
NAME OPEN FAILED
libdvdnav: Unable to find map file '/Users/mini6/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000017e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000027e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000283
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0001e6d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0001e6d9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0005fa1f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0005fa24
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00095c6d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00095c72
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x000d09f1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x000d09f6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x000de1c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x000f3ae4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003a27ad
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003a27b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003a85e6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003a85eb
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003ade74
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003ade79
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003c25be
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003c25c3
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003d30e0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003d30e5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x003de5d2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x003de5d7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x003e1dc3
libdvdread: Elapsed time 0
libdvdread: Found 13 VTS's
libdvdread: Elapsed time 0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[23:21:31] scan: DVD has 29 title(s)
[23:21:31] scan: scanning title 1
[23:21:31] scan: opening IFO for VTS 6
[23:21:32] pgc_id: 1, pgn: 1: pgc: 0x8c93fa0
[23:21:32] scan: vts=6, ttn=1, cells=0->93, blocks=1296->2813008, 2811713 blocks
[23:21:32] scan: duration is 01:51:02 (6662166 ms)
[23:21:32] scan: checking audio 1
[23:21:32] scan: id=80bd, lang=English (AC3), 3cc=eng ext=1
[23:21:32] scan: checking audio 2
[23:21:32] scan: id=81bd, lang=English (AC3), 3cc=eng ext=1
[23:21:32] scan: checking subtitle 1
[23:21:32] scan: id=21bd, lang=English (Closed Caption), 3cc=eng
[23:21:32] scan: title 1 has 32 chapters
[23:21:32] scan: chap 1 c=0->7, b=1296->32775 (31480), 78226 ms
[23:21:32] scan: chap 2 c=8->10, b=32776->170032 (137257), 313667 ms
[23:21:32] scan: chap 3 c=11->13, b=170033->244700 (74668), 173128 ms
[23:21:32] scan: chap 4 c=14->16, b=244701->289458 (44758), 95641 ms
[23:21:32] scan: chap 5 c=17->22, b=289459->363357 (73899), 150741 ms
[23:21:32] scan: chap 6 c=23->26, b=363358->470816 (107459), 248528 ms
[23:21:32] scan: chap 7 c=27->28, b=470817->519912 (49096), 116767 ms
[23:21:32] scan: chap 8 c=29->31, b=519913->651092 (131180), 310606 ms
[23:21:32] scan: chap 9 c=32->32, b=651093->750198 (99106), 247160 ms
[23:21:32] scan: chap 10 c=33->34, b=750199->870283 (120085), 250207 ms
[23:21:32] scan: chap 11 c=35->35, b=870284->992614 (122331), 309561 ms
[23:21:32] scan: chap 12 c=36->37, b=992615->1051340 (58726), 140011 ms
[23:21:32] scan: chap 13 c=38->41, b=1051341->1139023 (87683), 217384 ms
[23:21:32] scan: chap 14 c=42->42, b=1139024->1207524 (68501), 167927 ms
[23:21:32] scan: chap 15 c=43->43, b=1207525->1321070 (113546), 269443 ms
[23:21:32] scan: chap 16 c=44->46, b=1321071->1460255 (139185), 333765 ms
[23:21:32] scan: chap 17 c=47->47, b=1460256->1524952 (64697), 150695 ms
[23:21:32] scan: chap 18 c=48->48, b=1524953->1559607 (34655), 81375 ms
[23:21:32] scan: chap 19 c=49->50, b=1559608->1721876 (162269), 386971 ms
[23:21:32] scan: chap 20 c=51->55, b=1721877->1826772 (104896), 245505 ms
[23:21:32] scan: chap 21 c=56->60, b=1826773->1926330 (99558), 241831 ms
[23:21:32] scan: chap 22 c=61->68, b=1926331->2022196 (95866), 236426 ms
[23:21:32] scan: chap 23 c=69->70, b=2022197->2123408 (101212), 245485 ms
[23:21:32] scan: chap 24 c=71->72, b=2123409->2176814 (53406), 123924 ms
[23:21:32] scan: chap 25 c=73->73, b=2176815->2242859 (66045), 163808 ms
[23:21:32] scan: chap 26 c=74->79, b=2242860->2355437 (112578), 259892 ms
[23:21:32] scan: chap 27 c=80->84, b=2355438->2436192 (80755), 180276 ms
[23:21:32] scan: chap 28 c=85->86, b=2436193->2513983 (77791), 188197 ms
[23:21:32] scan: chap 29 c=87->88, b=2513984->2572024 (58041), 124594 ms
[23:21:32] scan: chap 30 c=89->90, b=2572025->2628690 (56666), 123767 ms
[23:21:32] scan: chap 31 c=91->92, b=2628691->2813003 (184313), 486464 ms
[23:21:32] scan: chap 32 c=93->93, b=2813004->2813008 (5), 176 ms
[23:21:32] scan: aspect = 0
[23:21:32] scan: decoding previews for title 1
[23:21:32] scan: title angle(s) 1
[23:21:32] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[23:21:32] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (Dolby Surround)
[23:21:38] scan: 30 previews, 720x480, 23.976 fps, autocrop = 58/62/0/0, aspect 16:9, PAR 32:27
[23:21:38] scan: title (0) job->width:720, job->height:304
[23:21:38] libhb: scan thread found 1 valid title(s)
[23:21:38] macgui: ScanDone state received from fQueueEncodeLibhb
[23:21:38] macgui: Preset: Custom
[23:21:38] macgui: processNewQueueEncode number of passes expected is: 1
[23:21:38] macgui: prepareJob exiting
[23:21:38] 1 job(s) to process
[23:21:38] starting job
[23:21:38] job configuration:
[23:21:38]  * source
[23:21:38]    + /dev/disk1
[23:21:38]    + title 1, chapter(s) 14 to 14
[23:21:38]  * destination
[23:21:38]    + /Users/mini6/Desktop/copy_to_WD_HD/rat_ch_14.m4v
[23:21:38]    + container: MPEG-4 (.mp4 and .m4v)
[23:21:38]  * video track
[23:21:38]    + decoder: mpeg2
[23:21:38]      + bitrate 9800 kbps
[23:21:38]    + frame rate: same as source (around 23.976 fps)
[23:21:38]    + loose anamorphic
[23:21:38]      + modulus: 0
[23:21:38]      + storage dimensions: 720 * 480 -> 720 * 352, crop 58/62/0/0
[23:21:38]      + pixel aspect ratio: 139 / 120
[23:21:38]      + display dimensions: 834 * 352
[23:21:38]    + encoder: FFmpeg
[23:21:38]      + quality: 1.00
[23:21:38]  * audio track 0
[23:21:38]    + decoder: English (AC3) (Dolby Surround) (track 2, id 81bd)
[23:21:38]      + bitrate: 192 kbps, samplerate: 48000 Hz
[23:21:38]    + mixdown: Stereo
[23:21:38]    + encoder: ca_aac
[23:21:38]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[23:21:38] encavcodec: encoding at constant quantizer 118
[23:21:38] encavcodec: encoding with stored aspect 139/120
No accelerated IMDCT transform found
[23:21:38] sync: expecting 4050 video frames
NAME OPEN FAILED
libdvdnav: Unable to find map file '/Users/mini6/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000017e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000027e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000283
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0001e6d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0001e6d9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0005fa1f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0005fa24
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00095c6d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00095c72
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x000d09f1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x000d09f6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x000de1c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x000f3ae4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x003a27ad
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x003a27b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003a85e6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003a85eb
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003ade74
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003ade79
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003c25be
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003c25c3
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003d30e0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003d30e5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x003de5d2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x003de5d7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x003e1dc3
libdvdread: Elapsed time 0
libdvdread: Found 13 VTS's
libdvdread: Elapsed time 0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[23:21:39] reader: first SCR 9304860 id 224 DTS 9338517
[23:21:39] output track 0: ac3 in sync after skipping 291 bytes
[23:21:39] mpeg2: "" (14) at frame 0 time 3003
[23:21:39] sync: first pts is 3003
[23:22:24] reader: end of chapter 14 (media 14) reached at media chapter 15
[23:22:24] reader: done. 1 scr changes
[23:22:24] sync: got 4024 frames, 4050 expected
[23:22:24] work: average encoding speed for job is 90.430084 fps
[23:22:24] mux: track 0, 4024 frames, 39892190 bytes, 1901.50 kbps, fifo 32
[23:22:24] mux: track 1, 7854 frames, 3454442 bytes, 164.66 kbps, fifo 256
[23:22:24] mpeg2 done: 4025 frames
[23:22:24] render: lost time: 0 (0 frames)
[23:22:24] render: gained time: 0 (0 frames) (0 not accounted for)
[23:22:25] libhb: work result = 0
[23:22:25] macgui: incrementQueueItemDone currentQueueEncodeIndex is incremented to: 5
[23:22:25] macgui: incrementQueueItemDone the 4 item queue is complete
Using the command line versions of FFmpeg and MEncoder I've been able to encode files that display color that is consistent with what the DVD looks like. However I encoded a file (with FFmpeg or MEncoder) that had the same washed out color as the second image I posted here, and that confused me. Unfortunately I deleted all of the files I had encoded while trying to figure this out because they were so disorganized, but now I realize that they could have been useful. However, I think that I have figured one thing out: in QuickTime Player, it makes no difference whether Perian is decoding the video or whether Apple's own decoder is decoding the video.

Edit - I tried viewing the rat_ch_14.m4v file in VLC instead of QuickTime Player and it appears that the colors (of the HandBrake encoded file viewed on VLC) are the same as the colors of the DVD viewed on VLC. Maybe there's some metadata that QuickTime Player isn't responding to, and that's why the colors look different.

Re: Color Washed out in Encoded File

Posted: Sat Jun 19, 2010 6:26 am
by wdarkk
wjcdxugb wrote:Edit - I tried viewing the rat_ch_14.m4v file in VLC instead of QuickTime Player and it appears that the colors (of the HandBrake encoded file viewed on VLC) are the same as the colors of the DVD viewed on VLC. Maybe there's some metadata that QuickTime Player isn't responding to, and that's why the colors look different.
I think it is just because it might be possible to maintain compatibility with quicktime. Presets and special options already exist for various devices, so a "fix quicktime colors" checkbox or whatever ends up being necessary might work. I'll try to get some more detail on the issue soon.

Re: Color Washed out in Encoded File

Posted: Sat Jun 19, 2010 3:52 pm
by jbrjake
I have absolutely no idea what you're talking about. HB already signals the proper color space in the container and, when using x264, the video stream.

Re: Color Washed out in Encoded File

Posted: Sat Jun 19, 2010 8:07 pm
by creamyhorror
Quicktime's H.264 color reproduction is screwed up. It's a known and long-running problem among video creators. Use a good player, like MPlayer OSX Extended.

Re: Color Washed out in Encoded File

Posted: Sun Jun 20, 2010 2:23 am
by wdarkk
creamyhorror wrote:Quicktime's H.264 color reproduction is screwed up. It's a known and long-running problem among video creators. Use a good player, like MPlayer OSX Extended.
Then why does the original h264 footage look fine before being reencoded?

Re: Color Washed out in Encoded File

Posted: Sun Jun 20, 2010 3:06 am
by mduell
Your screenshot of the original is in VLC, not QT.

Re: Color Washed out in Encoded File

Posted: Sun Jun 20, 2010 3:11 am
by wjcdxugb
wdarkk - I just noticed that the screenshot of the original shows that Movist is using FFmpeg to decode the video; and the first screenshot of the reencoded file shows that Movist is using QuickTime to decode the video (see the upper right hand corner of the windows). Try changing one of the Codec Bindings in Movist's advanced preferences to have the reencoded file decoded by FFmpeg.

Re: Color Washed out in Encoded File

Posted: Sun Jun 20, 2010 3:51 am
by creamyhorror
wdarkk wrote:
creamyhorror wrote:Quicktime's H.264 color reproduction is screwed up. It's a known and long-running problem among video creators. Use a good player, like MPlayer OSX Extended.
Then why does the original h264 footage look fine before being reencoded?
My mistake, I was thinking of the gamma shift bug in the Quicktime compressor, not decoder.

The washed-out color is almost certainly a decoder issue and not Handbrake's/x264's fault, though.

Re: Color Washed out in Encoded File

Posted: Sun Jun 20, 2010 7:27 am
by Ritsuka
Maybe the original h.264 files did not have a color tag.
QuickTime X uses colorsync, there was a wwdc session last year about it, but I don't remember any more what sey said.

Re: Color Washed out in Encoded File

Posted: Wed Jul 07, 2010 6:22 pm
by wdarkk
Here's a quick test showing what I think is wrong. I used a player called "NicePlayer" that lets me select between quicktime and core video. The video with the HD 1-1-1 color profile is original, the one with SD 6-1-6 is Handbrake.

Image
Image
Image
Image

None of them seem quite the same, but the ones with CoreVideo definitely look more washed-out. I'm going to open a bug with Apple.

Re: Color Washed out in Encoded File

Posted: Wed Jul 07, 2010 6:42 pm
by Ritsuka
"Core Video" in NicePlayer is still QuickTime, but instead of using the ooold QuickDraw api to draw to the screen it uses OpenGL and the gpu. But QuickTime 7 is deprecated, so even if you report a bug to Apple I think they will just leave it to oblivion. A test and a bug report on QuickTime X may be better.

HandBrake doesn't set the right color profile in your case, it does not read the one from your original file, but just guesses it from the video size.

Re: Color Washed out in Encoded File

Posted: Wed Jul 07, 2010 7:00 pm
by wdarkk
Ritsuka wrote:"Core Video" in NicePlayer is still QuickTime, but instead of using the ooold QuickDraw api to draw to the screen it uses OpenGL and the gpu. But QuickTime 7 is deprecated, so even if you report a bug to Apple I think they will just leave it to oblivion. A test and a bug report on QuickTime X may be better.

HandBrake doesn't set the right color profile in your case, it does not read the one from your original file, but just guesses it from the video size.
I reported it as a QTX bug since it looks exactly the same there.

Is there any way to CHANGE the color profile to the right one?

Re: Color Washed out in Encoded File

Posted: Wed Jul 07, 2010 8:04 pm
by Ritsuka
And I don't think it's a bug in QuickTime X :P

Re: Color Washed out in Encoded File

Posted: Wed Jul 07, 2010 8:48 pm
by wdarkk
Ritsuka wrote:And I don't think it's a bug in QuickTime X
What do you mean by that?

Re: Color Washed out in Encoded File

Posted: Thu Jul 08, 2010 2:57 pm
by jbrjake
The -M flag in the CLI will let you change the signaled color from the default, which is based on the resolution of the source. Values are 601 and 709.

Re: Color Washed out in Encoded File

Posted: Sun Jul 18, 2010 9:36 pm
by Memo
I'm also having the same issues on my Windows machine. The color seems to be washed out in the encoded file. I've tried using different player like VLC and WMP but when the movie is played side by side with the original, it is noticeably different. I took a screenshot but don't know how to upload files to show you what I mean.

Re: Color Washed out in Encoded File

Posted: Mon Jul 19, 2010 11:54 am
by s55
Comparing 2 videos at the same time is not a valid test. Even if your playing the same file, your not guaranteed to get matching results.

Re: Color Washed out in Encoded File

Posted: Mon Oct 25, 2010 4:06 pm
by win-pod
jbrjake wrote:The -M flag in the CLI will let you change the signaled color from the default, which is based on the resolution of the source. Values are 601 and 709.
Thank you, it works very fine!
But is there a possibility to add the same option in the GUI? I really need it in the GUI!
Here is the X264 Settings, is it possible to add something like this to the x264 Advanced Option String in the GUI:

ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0:colormatrix=bt709

Please, correct me, if it's possible!