HB not "auto-cropping" from makemkv file

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
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

HB not "auto-cropping" from makemkv file

Post by mac.jedi »

I've found that HandBrakeCLI is not detecting the crop for the MKV files created with makemkv from an anydvdhd ripped BD source. All my HB m4v output files are coming out letterboxed with black bars on the top and bottom. Is this a known issue?

Also, I have not encountered this with m2ts files created from tsMuxer, but I'm trying to move my workflow over to Mac OS X 10.6, which tsMuxer is no longer an option, which is why I'm trying to use makemkv.

Any help or thoughts would be greatly appreciated.

Code: Select all

[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:03] macgui: Handbrake Version: svn2806 x86_64 (2009090601)
[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:09] macgui: trying to open video_ts folder (parent directory chosen)
[08:03:09] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv, title_index=0
[08:03:09] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv':
  Duration: 02:57:50.88, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[08:03:10] scan: decoding previews for title 1
[08:03:10] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[08:03:11] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:03:11] scan: title (0) job->width:1936, job->height:1088
[08:03:11] libhb: scan thread found 1 valid title(s)
[08:03:11] macgui: ScanDone state received from fHandle
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: HB not "auto-cropping" from makemkv file

Post by rhester »

Where is the rest of the log? A scan says nothing about cropping.

Rodney
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HB not "auto-cropping" from makemkv file

Post by JohnAStebbins »

After the scan, the images used for cropping are in a directory /tmp/hb.????. They are in a raw yuv format, so you can't easily look at them in an image viewer. But if you could post them somewhere, I could have a look to see why autocrop doesn't crop anything.
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

Re: HB not "auto-cropping" from makemkv file

Post by mac.jedi »

rhester wrote:Where is the rest of the log? A scan says nothing about cropping.

Rodney
Sorry, I thought that was all that was needed as cropping is usually detected during the scan. Here is the log after encoding the first chapter:

Code: Select all

[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:03] macgui: Handbrake Version: svn2806 x86_64 (2009090601)
[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:03] hb_init: checking cpu count
[08:03:03] hb_init: starting libhb thread
[08:03:09] macgui: trying to open video_ts folder (parent directory chosen)
[08:03:09] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv, title_index=0
[08:03:09] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv':
  Duration: 02:57:50.88, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[08:03:10] scan: decoding previews for title 1
[08:03:10] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[08:03:11] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:03:11] scan: title (0) job->width:1936, job->height:1088
[08:03:11] libhb: scan thread found 1 valid title(s)
[08:03:11] macgui: ScanDone state received from fHandle
[11:17:38] macgui: Rip: Pending queue count is 0
[11:17:38] macgui: scanning specifically for title: 1
[11:17:38] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[11:17:38] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv, title_index=1
[11:17:38] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv':
  Duration: 02:57:50.88, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[11:17:38] scan: decoding previews for title 1
[11:17:38] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[11:17:39] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:17:39] scan: title (0) job->width:1936, job->height:1088
[11:17:39] libhb: scan thread found 1 valid title(s)
[11:17:39] macgui: ScanDone state received from fQueueEncodeLibhb
[11:17:39] macgui: Preset: AppleTV
[11:17:39] macgui: processNewQueueEncode number of passes expected is: 1
[11:17:39] macgui: prepareJob audiotrack 2 is: 0
[11:17:39] macgui: prepareJob exiting
[11:17:39] 1 job(s) to process
[11:17:39] starting job
[11:17:39] job configuration:
[11:17:39]  * source
[11:17:39]    + /Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv
[11:17:39]    + title 1, chapter(s) 1 to 1
[11:17:39]    + container: matroska
[11:17:39]  * destination
[11:17:39]    + /Users/robertyamada/Desktop/The Postman (1997)-0.m4v
[11:17:39]    + container: MPEG-4 (.mp4 and .m4v)
[11:17:39]      + 64-bit formatting
[11:17:39]  * video track
[11:17:39]    + decoder: vc1
[11:17:39]    + frame rate: same as source (around 23.976 fps)
[11:17:39]    + dimensions: 1920 * 1080 -> 1280 * 720, crop 0/0/0/0
[11:17:39]    + encoder: x264
[11:17:39]      + options: cabac=0:ref=2:me=umh:b-adapt=2:weightb=0
[11:17:39]      + quality: 20.00 (RF)
[11:17:39]  * audio track 0
[11:17:39]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[11:17:39]      + bitrate: 640 kbps, samplerate: 48000 Hz
[11:17:39]    + mixdown: Dolby Pro Logic II
[11:17:39]    + encoder: ca_aac
[11:17:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:17:39]  * audio track 1
[11:17:39]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[11:17:39]      + bitrate: 640 kbps, samplerate: 48000 Hz
[11:17:39]    + AC3 passthrough
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.
GUI ERROR dialog: dvd: ifoOpen failed
[11:17:39] encx264: keyint-min: 24, keyint-max: 240
[11:17:39] encx264: Encoding at constant RF 20.000000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.1
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[11:17:39] sync: expecting 5513 video frames
[11:17:39] reader: first SCR 0
[11:18:19] macgui: trying to open video_ts folder (parent directory chosen)
[11:18:19] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv, title_index=0
[11:18:19] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/The Postman (1997)/The Postman (1997)-0.mkv':
  Duration: 02:57:50.88, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[11:18:20] scan: decoding previews for title 1
[11:18:20] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[11:18:21] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:18:21] scan: title (0) job->width:1936, job->height:1088
[11:18:21] libhb: scan thread found 1 valid title(s)
[11:18:21] macgui: ScanDone state received from fHandle
[11:20:07] reader: end of chapter 1 (media 1) reached at media chapter 2
[11:20:07] reader: done. 1 scr changes
[11:20:16] sync: got 5491 frames, 5513 expected
[11:20:16] work: average encoding speed for job is 35.050186 fps
[11:20:20] mux: track 0, 5491 frames, 128145803 bytes, 4472.24 kbps, fifo 32
[11:20:20] mux: track 1, 10746 frames, 4830819 bytes, 168.59 kbps, fifo 1024
[11:20:20] mux: track 2, 7164 frames, 18339840 bytes, 640.05 kbps, fifo 1024
[11:20:20] vc1-decoder done: 5492 frames, 0 decoder errors, 0 drops
[11:20:20] render: lost time: 0 (0 frames)
[11:20:20] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:42    Avg QP:15.73  size: 90666  PSNR Mean Y:48.91 U:51.67 V:52.10 Avg:49.67 Global:48.06
x264 [info]: slice P:1883  Avg QP:19.48  size: 37187  PSNR Mean Y:47.21 U:50.00 V:50.48 Avg:47.92 Global:45.93
x264 [info]: slice B:3566  Avg QP:21.08  size: 15231  PSNR Mean Y:44.30 U:48.13 V:48.69 Avg:45.25 Global:44.83
x264 [info]: consecutive B-frames:  2.2% 22.2% 28.5% 47.1%
x264 [info]: mb I  I16..4: 28.4% 47.8% 23.9%
x264 [info]: mb P  I16..4:  0.9% 10.5%  2.8%  P16..4: 28.3% 21.4%  7.5%  0.0%  0.0%    skip:28.6%
x264 [info]: mb B  I16..4:  0.2%  1.8%  0.3%  B16..8: 42.8%  2.3%  2.5%  direct: 7.7%  skip:42.4%  L0:37.9% L1:51.4% BI:10.8%
x264 [info]: 8x8 transform  intra:72.4%  inter:51.7%
x264 [info]: coded y,uvDC,uvAC intra:89.8% 88.0% 65.6% inter:26.6% 24.1% 1.9%
x264 [info]: ref P L0  76.4% 23.6%
x264 [info]: SSIM Mean Y:0.9812868
x264 [info]: PSNR Mean Y:45.338 U:48.800 V:49.331 Avg:46.199 Global:45.195 kb/s:4476.29
[11:20:20] libhb: work result = 0
[11:20:21] macgui: incrementQueueItemDone currentQueueEncodeIndex is incremented to: 1
[11:20:21] macgui: incrementQueueItemDone the 0 item queue is complete
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

Re: HB not "auto-cropping" from makemkv file

Post by mac.jedi »

JohnAStebbins wrote:After the scan, the images used for cropping are in a directory /tmp/hb.????. They are in a raw yuv format, so you can't easily look at them in an image viewer. But if you could post them somewhere, I could have a look to see why autocrop doesn't crop anything.
Hey John, thanks for your help!

Unfortunately, my brain didn't acknowledge the "can't" in "so you can't easily look at them", so I've been fruitlessly trying to open them.

I uploaded a ZIP file containing the yuv files. You can find them here: http://dl.getdropbox.com/u/242398/hb_yuv.zip

Thanks again for your help!
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HB not "auto-cropping" from makemkv file

Post by JohnAStebbins »

I don't suppose you've looked at the preview images in the gui. Most of them are just gray screens. Since the majority of the previews are fullscreen gray, hb decides there's nothing to crop. There appears to only be 2 good images in the batch. The first, which is all black (that's expected), and the 5th one. I noticed that the video codec in this particular source is vc-1. Do you also see the problem when the source codec is h.264? It looks like libavcodec is generating bad frames for us. The question is whether it is related to vc-1 or whether it is a problem with how makemkv encapsulates the video. I don't see the problem when reading h.264 in an mkv that has been generated by handbrake.
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

Re: HB not "auto-cropping" from makemkv file

Post by mac.jedi »

JohnAStebbins wrote:I don't suppose you've looked at the preview images in the gui.
I did look at the preview images and there were indeed some gray ones. I just ran Ghostbusters which is h.264 and all the images were kinda overlaid-grey and pixellated.
JohnAStebbins wrote:Do you also see the problem when the source codec is h.264?
The Ghostbusters BD is h.264 and it came out 16x9 also. I've uploaded the yuv's as well for your reference: http://dl.getdropbox.com/u/242398/hb_yuv2.zip

Also, here is the log if it helps.

Thanks again for your help John … you are awesome!

Code: Select all

[15:55:51] hb_init: checking cpu count
[15:55:51] hb_init: starting libhb thread
[15:55:51] macgui: Handbrake Version: svn2806 x86_64 (2009090601)
[15:55:51] hb_init: checking cpu count
[15:55:51] hb_init: starting libhb thread
[15:55:51] hb_init: checking cpu count
[15:55:51] hb_init: starting libhb thread
[15:56:13] macgui: trying to open video_ts folder (parent directory chosen)
[15:56:13] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/Ghostbusters (1984)/Ghostbusters (1984)-0.mkv, title_index=0
[15:56:13] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/Ghostbusters (1984)/Ghostbusters (1984)-0.mkv':
  Duration: 01:45:08.35, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[15:56:13] scan: decoding previews for title 1
[15:56:13] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[15:56:15] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:56:15] scan: title (0) job->width:1936, job->height:1088
[15:56:15] libhb: scan thread found 1 valid title(s)
[15:56:15] macgui: ScanDone state received from fHandle
[15:57:19] macgui: Rip: Pending queue count is 0
[15:57:19] macgui: scanning specifically for title: 1
[15:57:19] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[15:57:19] hb_scan: path=/Volumes/SpeedDisk/Batch Rip Movies/Ghostbusters (1984)/Ghostbusters (1984)-0.mkv, title_index=1
[15:57:19] scan: trying to open with libdvdread
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.
GUI ERROR dialog: dvd: ifoOpen failed
Input #0, matroska, from '/Volumes/SpeedDisk/Batch Rip Movies/Ghostbusters (1984)/Ghostbusters (1984)-0.mkv':
  Duration: 01:45:08.35, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[15:57:19] scan: decoding previews for title 1
[15:57:19] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[15:57:21] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:57:21] scan: title (0) job->width:1936, job->height:1088
[15:57:21] libhb: scan thread found 1 valid title(s)
[15:57:21] macgui: ScanDone state received from fQueueEncodeLibhb
[15:57:21] macgui: Preset: AppleTV
[15:57:21] macgui: processNewQueueEncode number of passes expected is: 1
[15:57:21] macgui: prepareJob audiotrack 2 is: 0
[15:57:21] macgui: prepareJob exiting
[15:57:21] 1 job(s) to process
[15:57:21] starting job
[15:57:21] job configuration:
[15:57:21]  * source
[15:57:21]    + /Volumes/SpeedDisk/Batch Rip Movies/Ghostbusters (1984)/Ghostbusters (1984)-0.mkv
[15:57:21]    + title 1, chapter(s) 1 to 2
[15:57:21]    + container: matroska
[15:57:21]  * destination
[15:57:21]    + /Users/robertyamada/Desktop/Ghostbusters (1984)-0.m4v
[15:57:21]    + container: MPEG-4 (.mp4 and .m4v)
[15:57:21]      + 64-bit formatting
[15:57:21]      + chapter markers
[15:57:21]  * video track
[15:57:21]    + decoder: h264
[15:57:21]    + frame rate: same as source (around 23.976 fps)
[15:57:21]    + dimensions: 1920 * 1080 -> 1280 * 720, crop 0/0/0/0
[15:57:21]    + encoder: x264
[15:57:21]      + options: cabac=0:ref=2:me=umh:b-adapt=2:weightb=0
[15:57:21]      + quality: 20.00 (RF)
[15:57:21]  * audio track 0
[15:57:21]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[15:57:21]      + bitrate: 640 kbps, samplerate: 48000 Hz
[15:57:21]    + mixdown: Dolby Pro Logic II
[15:57:21]    + encoder: ca_aac
[15:57:21]      + bitrate: 160 kbps, samplerate: 48000 Hz
[15:57:21]  * audio track 1
[15:57:21]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[15:57:21]      + bitrate: 640 kbps, samplerate: 48000 Hz
[15:57:21]    + AC3 passthrough
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.
GUI ERROR dialog: dvd: ifoOpen failed
[15:57:21] encx264: keyint-min: 24, keyint-max: 240
[15:57:21] encx264: Encoding at constant RF 20.000000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.1
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[15:57:21] sync: expecting 6152 video frames
[15:57:21] reader: first SCR 0
[15:57:23] h264: "Chapter 01" (2) at frame 76 time 255240
[16:00:30] reader: end of chapter 2 (media 2) reached at media chapter 3
[16:00:30] reader: done. 1 scr changes
[16:00:39] sync: got 6129 frames, 6152 expected
[16:00:39] work: average encoding speed for job is 31.042377 fps
[16:00:40] mux: track 0, 6130 frames, 240038517 bytes, 7508.37 kbps, fifo 32
[16:00:40] mux: track 1, 11988 frames, 5241797 bytes, 163.96 kbps, fifo 1024
[16:00:40] mux: track 2, 7992 frames, 20459520 bytes, 639.97 kbps, fifo 512
[16:00:40] h264-decoder done: 6130 frames, 0 decoder errors, 0 drops
[16:00:40] render: lost time: 0 (0 frames)
[16:00:40] render: gained time: 0 (0 frames) (0 not accounted for)
[16:00:40] encx264: 1 frames had to be split (6129 in, 6153 out)
x264 [info]: slice I:60    Avg QP:16.87  size:106926  PSNR Mean Y:45.96 U:49.67 V:51.21 Avg:46.95 Global:46.16
x264 [info]: slice P:1877  Avg QP:20.28  size: 59597  PSNR Mean Y:43.65 U:47.11 V:49.05 Avg:44.61 Global:43.84
x264 [info]: slice B:4193  Avg QP:22.21  size: 29039  PSNR Mean Y:41.91 U:45.96 V:48.41 Avg:42.98 Global:42.33
x264 [info]: consecutive B-frames:  1.6%  8.0% 32.8% 57.6%
x264 [info]: mb I  I16..4: 27.7% 50.1% 22.2%
x264 [info]: mb P  I16..4:  1.3% 18.6%  4.7%  P16..4: 23.9% 19.5%  7.0%  0.0%  0.0%    skip:25.0%
x264 [info]: mb B  I16..4:  0.2%  5.4%  0.7%  B16..8: 42.7%  2.0%  3.0%  direct: 9.6%  skip:36.5%  L0:41.7% L1:49.6% BI: 8.7%
x264 [info]: 8x8 transform  intra:77.1%  inter:46.6%
x264 [info]: coded y,uvDC,uvAC intra:94.2% 91.5% 78.0% inter:34.7% 26.3% 6.0%
x264 [info]: ref P L0  73.7% 26.3%
x264 [info]: SSIM Mean Y:0.9667509
x264 [info]: PSNR Mean Y:42.481 U:46.346 V:48.635 Avg:43.520 Global:42.763 kb/s:7510.81
[16:00:40] libhb: work result = 0
[16:00:40] macgui: incrementQueueItemDone currentQueueEncodeIndex is incremented to: 1
[16:00:40] macgui: incrementQueueItemDone the 0 item queue is complete
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: HB not "auto-cropping" from makemkv file

Post by JohnAStebbins »

It sounds like makemkv is doing something to the mkv that ffmpeg doesn't like. Have you tried playing these file with an ffmpeg based player like ffplay, mplayer, or vlc. When you seek or jump through the video, are all the frames clean? I guess I'll have to play with makemkv a bit and replicate this.
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

Re: HB not "auto-cropping" from makemkv file

Post by mac.jedi »

JohnAStebbins wrote:Have you tried playing these file with an ffmpeg based player like ffplay, mplayer, or vlc.
Yes ... actually I've been using the makeMKV file for Plex after I use it to encode an Apple TV version. They have all worked fine, except for some audio sync issues which thankfully Plex allows you to adjust on the fly.
mac.jedi
Enlightened
Posts: 108
Joined: Thu Apr 24, 2008 11:17 pm

Re: HB not "auto-cropping" from makemkv file

Post by mac.jedi »

I just tried them in VLC as well. I guess VLC doesn't do WVC1 "No suitable decoder module". I tried the h.264 and it played fine in VLC, but could not scrub very well as it couldn't buffer fast enough ... just paused until it caught up. I didn't see any artifacts or gray frames as I tried to scrub.

On another note, do you think your bdtools suite could be used as a tsMuxeR/makeMKV replacement?
ragboy
Experienced
Posts: 82
Joined: Mon Apr 09, 2007 4:03 pm

Re: HB not "auto-cropping" from makemkv file

Post by ragboy »

I am having the same problem. I am on 2851 64 bit on snow leopard. I am using anydvd hd on a VM to rip, then I am using eac3to on the VM, then using mkvtoolnix v 2.9.8 on mac to make MKV, and the cool thing is now I have chapters recognized in HB this way. I went to mkvtoolnix because tsmuxer is not working on 10.6, and because I heard there was now chapter recognition in HB from MKV. It seems that if I open an m2ts file with VC-1 codec, like from Watchmen I get previews and autocrop fine. But when I do the same on the MKV from mkvtoonix I get just grey previews. When I actually do the encode, I get a valid and viewable video, it just doesn't work in preview. Is there a different version of mkvtoolnix or another mkv tool I should try? It definitely seems to be an issue with HB and the MKV, not VC-1, since HB seems to handle VC-1 previews fine from m2ts.

Thanks in advance. Here is my info from activity log window while doing the SCAN.

Code: Select all

[16:40:21] macgui: trying to open video_ts folder (parent directory chosen)
[16:40:21] hb_scan: path=/Volumes/Movies/FullDisc/WATCHMEN/Watchmen.mkv, title_index=0
[16:40:21] thread 138e51000 started ("scan")
[16:40:21] scan: trying to open with libdvdread
libdvdread: Using libdvdcss version 1.2.10 for DVD access
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.
GUI ERROR dialog: dvd: ifoOpen failed
    Last message repeated 8 times
Input #0, matroska, from '/Volumes/Movies/FullDisc/WATCHMEN/Watchmen.mkv':
  Duration: 03:06:28.41, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
[16:40:21] Found ffmpeg 44 chapters, container=matroska
[16:40:21] Added chapter 1, name='00:00:00.000', dur=30750750, (00:05:41)
[16:40:21] Added chapter 2, name='00:05:41.675', dur=30101310, (00:05:34)
[16:40:21] Added chapter 3, name='00:11:16.134', dur=26028450, (00:04:49)
[16:40:21] Added chapter 4, name='00:16:05.339', dur=16219980, (00:03:00)
[16:40:21] Added chapter 5, name='00:19:05.561', dur=25491689, (00:04:43)
[16:40:21] Added chapter 6, name='00:23:48.802', dur=15364171, (00:02:50)
[16:40:21] Added chapter 7, name='00:26:39.515', dur=26861760, (00:04:58)
[16:40:21] Added chapter 8, name='00:31:37.979', dur=26002260, (00:04:48)
[16:40:21] Added chapter 9, name='00:36:26.893', dur=24707160, (00:04:34)
[16:40:21] Added chapter 10, name='00:41:01.417', dur=21351330, (00:03:57)
[16:40:21] Added chapter 11, name='00:44:58.654', dur=13382100, (00:02:28)
[16:40:21] Added chapter 12, name='00:47:27.344', dur=22792770, (00:04:13)
[16:40:21] Added chapter 13, name='00:51:40.597', dur=24268050, (00:04:29)
[16:40:21] Added chapter 14, name='00:56:10.242', dur=11490210, (00:02:07)
[16:40:21] Added chapter 15, name='00:58:17.911', dur=14493240, (00:02:41)
[16:40:21] Added chapter 16, name='01:00:58.947', dur=17488710, (00:03:14)
[16:40:21] Added chapter 17, name='01:04:13.266', dur=38656080, (00:07:09)
[16:40:21] Added chapter 18, name='01:11:22.778', dur=10033830, (00:01:51)
[16:40:21] Added chapter 19, name='01:13:14.265', dur=19046520, (00:03:31)
[16:40:21] Added chapter 20, name='01:16:45.893', dur=10923390, (00:02:01)
[16:40:21] Added chapter 21, name='01:18:47.264', dur=16223670, (00:03:00)
[16:40:21] Added chapter 22, name='01:21:47.527', dur=27409950, (00:05:04)
[16:40:21] Added chapter 23, name='01:26:52.082', dur=23930100, (00:04:25)
[16:40:21] Added chapter 24, name='01:31:17.972', dur=31636620, (00:05:51)
[16:40:21] Added chapter 25, name='01:37:09.490', dur=21677940, (00:04:00)
[16:40:21] Added chapter 26, name='01:41:10.356', dur=31234950, (00:05:47)
[16:40:21] Added chapter 27, name='01:46:57.411', dur=37195920, (00:06:53)
[16:40:21] Added chapter 28, name='01:53:50.699', dur=18723690, (00:03:28)
[16:40:21] Added chapter 29, name='01:57:18.740', dur=30998430, (00:05:44)
[16:40:21] Added chapter 30, name='02:03:03.167', dur=16572870, (00:03:04)
[16:40:21] Added chapter 31, name='02:06:07.310', dur=23081760, (00:04:16)
[16:40:21] Added chapter 32, name='02:10:23.774', dur=26550270, (00:04:55)
[16:40:21] Added chapter 33, name='02:15:18.777', dur=22788990, (00:04:13)
[16:40:21] Added chapter 34, name='02:19:31.988', dur=14538330, (00:02:41)
[16:40:21] Added chapter 35, name='02:22:13.525', dur=26775450, (00:04:57)
[16:40:21] Added chapter 36, name='02:27:11.030', dur=36351359, (00:06:43)
[16:40:21] Added chapter 37, name='02:33:54.934', dur=14647141, (00:02:42)
[16:40:21] Added chapter 38, name='02:36:37.680', dur=23885100, (00:04:25)
[16:40:21] Added chapter 39, name='02:41:03.070', dur=18254430, (00:03:22)
[16:40:21] Added chapter 40, name='02:44:25.897', dur=16734240, (00:03:05)
[16:40:21] Added chapter 41, name='02:47:31.833', dur=18941400, (00:03:30)
[16:40:21] Added chapter 42, name='02:51:02.293', dur=22023269, (00:04:04)
[16:40:21] Added chapter 43, name='02:55:06.996', dur=25108831, (00:04:38)
[16:40:21] Added chapter 44, name='02:59:45.983', dur=36218969, (00:06:42)
[16:40:21] scan: decoding previews for title 1
[16:40:21] scan: preview 1
[16:40:21] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[16:40:21] scan: preview 2
[vc1 @ 0x116963600]warning: first frame is no keyframe
[16:40:22] scan: preview 3
[16:40:22] scan: preview 4
[16:40:23] scan: preview 5
[16:40:23] scan: preview 6
[16:40:24] Title's mostly NTSC Film, setting fps to 23.976
[16:40:24] scan: preview 7
[16:40:25] scan: preview 8
[16:40:26] scan: preview 9
[16:40:27] scan: preview 10
[16:40:27] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:40:27] scan: title (0) job->width:1936, job->height:1088
[16:40:27] thread 138e51000 exited ("scan")
[16:40:27] thread 138e51000 joined ("scan")
[16:40:27] libhb: scan thread found 1 valid title(s)
[16:40:27] macgui: ScanDone state received from fHandle
Deleted User 11865

Re: HB not "auto-cropping" from makemkv file

Post by Deleted User 11865 »

ragboy wrote:Is there a different version of mkvtoolnix or another mkv tool I should try?
Some people (me included) have had issue with HandBrake and MKVs created with Mkvtoolnix 2.9.8 (right now I can't remember what the issues were, but I don't think they were related to cropping and previews). I've reverted to version 2.4.2 and have had no problems since. You may want to try that version and see if it makes any difference…
ragboy
Experienced
Posts: 82
Joined: Mon Apr 09, 2007 4:03 pm

Re: HB not "auto-cropping" from makemkv file

Post by ragboy »

Rodeo wrote:
ragboy wrote:Is there a different version of mkvtoolnix or another mkv tool I should try?
Some people (me included) have had issue with HandBrake and MKVs created with Mkvtoolnix 2.9.8 (right now I can't remember what the issues were, but I don't think they were related to cropping and previews). I've reverted to version 2.4.2 and have had no problems since. You may want to try that version and see if it makes any difference…
I tried mkvtoolsnix 2.4.2 for the mac. It seemed to work as well as 2.9.8, but still same problem with VC-1 previews.
ragboy
Experienced
Posts: 82
Joined: Mon Apr 09, 2007 4:03 pm

Re: HB not "auto-cropping" from makemkv file

Post by ragboy »

Hmm, 2.9.8 seemed to work with Burn After Reading BD, and it is in VC1. Autocrop and preview worked, watchmen and condemned did not.
ragboy
Experienced
Posts: 82
Joined: Mon Apr 09, 2007 4:03 pm

Re: HB not "auto-cropping" from makemkv file

Post by ragboy »

So I noticed this in the SVN log:

Code: Select all

r2870 | jstebbins | 2009-10-05 18:25:46 -0700 (Mon, 05 Oct 2009) | 5 lines
Changed paths:
   M /trunk/libhb/stream.c

fix VC1 I-frame detection in ffmpeg_is_keyframe
The pattern was incorrect, so we were pretty much always starting on a
non-I-frame when creating previews from VC1 ffmpeg sources.  This fixes
the grey preview complaints several users have had.
So I updated and built, and it seems like the problem is resolved. Previews seem to happen amazingly fast now also. Great job, thanks!
Post Reply