Error downconverting from 1080 to 720

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
siromega
Posts: 36
Joined: Mon Jul 02, 2007 5:06 am

Error downconverting from 1080 to 720

Post by siromega »

I've got the MKV from the bluray disc. I setup two encodes - one with the iPhone 4 preset, that came out fine. The other one wasn't playable with the Normal preset with the following changes: 1280x720 resolution (source: 1080p), audio track 1: DTS 5.1 mixdown to 2-ch, audio track 2: 6-channel audio. Cant even open the movie with VLC 1.1.9 64-bit or QT.

Mac OSX 10.6.7
Intel 2500K (Hackintosh)
16GB RAM
A few nights ago nightly (3981) (this also occurred with 0.9.5, I just double checked with a recent build to make sure it wasn't something you had already fixed)

At the end there was this line: MP4ERROR: (m_size <= (uint64_t)0xFFFFFFFF): assert failure I'm assuming thats why it didn't work, though that error isn't terribly descriptive to someone who isn't intimately familiar with the source.

LOG:

Code: Select all

HandBrake Activity Log for /Volumes/OSX Overflow/BluRayRip/Avatar-720p.m4v: 2011-05-19 18:20:26 -0700
Handbrake Version: 3981svn x86_64 (2011051901)

[18:20:26] macgui: Rip: Pending queue count is 0
[18:20:26] macgui: getNextPendingQueueIndex next pending encode index is:0
[18:20:26] macgui: scanning specifically for title: 1
[18:20:26] hb_scan: path=/Volumes/OSX Overflow/BluRayRip/Avatar.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Volumes/OSX Overflow/BluRayRip/Avatar.mkv/BDMV/index.bdmv
libbluray/bluray.c:1376: nav_get_title_list(/Volumes/OSX Overflow/BluRayRip/Avatar.mkv) failed (0x11b882a00)
[18:20:26] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
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.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:20:26] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/OSX Overflow/BluRayRip/Avatar.mkv':
  Duration: 02:41:41.70, start: 0.000000, bitrate: 1984 kb/s
    Chapter #0.0: start 0.000000, end 377.960889
    Metadata:
      title           : Chapter 00
    Chapter #0.1: start 377.960889, end 473.598089
    Metadata:
      title           : Chapter 01
    Chapter #0.2: start 473.598089, end 724.890800
    Metadata:
      title           : Chapter 02
    Chapter #0.3: start 724.890800, end 840.464578
    Metadata:
      title           : Chapter 03
    Chapter #0.4: start 840.464578, end 1200.574311
    Metadata:
      title           : Chapter 04
    Chapter #0.5: start 1200.574311, end 1440.230400
    Metadata:
      title           : Chapter 05
    Chapter #0.6: start 1440.230400, end 1613.278267
    Metadata:
      title           : Chapter 06
    Chapter #0.7: start 1613.278267, end 1901.899933
    Metadata:
      title           : Chapter 07
    Chapter #0.8: start 1901.899933, end 2013.428000
    Metadata:
      title           : Chapter 08
    Chapter #0.9: start 2013.428000, end 2143.849956
    Metadata:
      title           : Chapter 09
    Chapter #0.10: start 2143.849956, end 2611.859156
    Metadata:
      title           : Chapter 10
    Chapter #0.11: start 2611.859156, end 2963.627244
    Metadata:
      title           : Chapter 11
    Chapter #0.12: start 2963.627244, end 3269.974933
    Metadata:
      title           : Chapter 12
    Chapter #0.13: start 3269.974933, end 3596.050689
    Metadata:
      title           : Chapter 13
    Chapter #0.14: start 3596.050689, end 3910.197844
    Metadata:
      title           : Chapter 14
    Chapter #0.15: start 3910.197844, end 4296.417000
    Metadata:
      title           : Chapter 15
    Chapter #0.16: start 4296.417000, end 4511.006378
    Metadata:
      title           : Chapter 16
    Chapter #0.17: start 4511.006378, end 4829.115822
    Metadata:
      title           : Chapter 17
    Chapter #0.18: start 4829.115822, end 5081.910022
    Metadata:
      title           : Chapter 18
    Chapter #0.19: start 5081.910022, end 5764.800533
    Metadata:
      title           : Chapter 19
    Chapter #0.20: start 5764.800533, end 5875.786400
    Metadata:
      title           : Chapter 20
    Chapter #0.21: start 5875.786400, end 6273.099978
    Metadata:
      title           : Chapter 21
    Chapter #0.22: start 6273.099978, end 6495.488800
    Metadata:
      title           : Chapter 22
    Chapter #0.23: start 6495.488800, end 6833.868489
    Metadata:
      title           : Chapter 23
    Chapter #0.24: start 6833.868489, end 6932.884067
    Metadata:
      title           : Chapter 24
    Chapter #0.25: start 6932.884067, end 7118.819800
    Metadata:
      title           : Chapter 25
    Chapter #0.26: start 7118.819800, end 7325.568000
    Metadata:
      title           : Chapter 26
    Chapter #0.27: start 7325.568000, end 7533.859422
    Metadata:
      title           : Chapter 27
    Chapter #0.28: start 7533.859422, end 7801.835444
    Metadata:
      title           : Chapter 28
    Chapter #0.29: start 7801.835444, end 8167.283867
    Metadata:
      title           : Chapter 29
    Chapter #0.30: start 8167.283867, end 8390.840533
    Metadata:
      title           : Chapter 30
    Chapter #0.31: start 8390.840533, end 8750.324644
    Metadata:
      title           : Chapter 31
    Chapter #0.32: start 8750.324644, end 9074.064733
    Metadata:
      title           : Chapter 32
    Chapter #0.33: start 9074.064733, end 9305.295733
    Metadata:
      title           : Chapter 33
    Chapter #0.34: start 9305.295733, end 9700.690733
    Metadata:
      title           : Chapter 34
    Chapter #0.35: start 9700.690733, end 9701.706000
    Metadata:
      title           : Chapter 35
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Metadata:
      title           : 3/2+1
    Stream #0.3(eng): Subtitle: pgssub (default)
    Stream #0.4(eng): Subtitle: pgssub
[18:20:27] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
[18:20:27] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
[18:20:27] scan: decoding previews for title 1
[18:20:27] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[18:20:27] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[18:20:28] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 2/0/2/2, aspect 16:9, PAR 1:1
[18:20:28] scan: title (0) job->width:1920, job->height:1072
[18:20:28] libhb: scan thread found 1 valid title(s)
[18:20:28] macgui: ScanDone state received from fQueueEncodeLibhb
[18:20:28] macgui: Preset: Normal (Default)
[18:20:28] macgui: processNewQueueEncode number of passes expected is: 1
[18:20:28] macgui: Start / Stop set to chapters
[18:20:28] macgui: Foreign Language Search: 1
[18:20:28] macgui: prepareJob exiting
[18:20:28] 2 job(s) to process
[18:20:28] starting job
[18:20:28] sync: expecting 232632 video frames
[18:20:28] job configuration:
[18:20:28]  * source
[18:20:28]    + /Volumes/OSX Overflow/BluRayRip/Avatar.mkv
[18:20:28]    + title 1, chapter(s) 1 to 36
[18:20:28]    + container: matroska,webm
[18:20:28]    + data rate: 1984 kbps
[18:20:28]  * destination
[18:20:28]    + /Volumes/OSX Overflow/BluRayRip/Avatar-720p.m4v
[18:20:28]    + container: MPEG-4 (.mp4 and .m4v)
[18:20:28]      + chapter markers
[18:20:28]  * video track
[18:20:28]    + decoder: h264
[18:20:28]    + frame rate: same as source (around 23.976 fps)
[18:20:28]    + loose anamorphic
[18:20:28]      + storage dimensions: 1920 * 1080 -> 1280 * 720, crop 2/0/2/2, mod 16
[18:20:28]      + pixel aspect ratio: 4311 / 4312
[18:20:28]      + display dimensions: 1279 * 720
[18:34:11] reader: done. 1 scr changes
[18:34:11] work: average encoding speed for job is 0.000000 fps
[18:34:11] render: lost time: 0 (0 frames)
[18:34:11] render: gained time: 0 (0 frames) (0 not accounted for)
[18:34:11] starting job
[18:34:11] sync: expecting 232632 video frames
[18:34:11] job configuration:
[18:34:11]  * source
[18:34:11]    + /Volumes/OSX Overflow/BluRayRip/Avatar.mkv
[18:34:11]    + title 1, chapter(s) 1 to 36
[18:34:11]    + container: matroska,webm
[18:34:11]    + data rate: 1984 kbps
[18:34:11]  * destination
[18:34:11]    + /Volumes/OSX Overflow/BluRayRip/Avatar-720p.m4v
[18:34:11]    + container: MPEG-4 (.mp4 and .m4v)
[18:34:11]      + chapter markers
[18:34:11]  * video track
[18:34:11]    + decoder: h264
[18:34:11]    + frame rate: same as source (around 23.976 fps)
[18:34:11]    + loose anamorphic
[18:34:11]      + storage dimensions: 1920 * 1080 -> 1280 * 720, crop 2/0/2/2, mod 16
[18:34:11]      + pixel aspect ratio: 4311 / 4312
[18:34:11]      + display dimensions: 1279 * 720
[18:34:11]    + encoder: x264
[18:34:11]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[18:34:11]      + quality: 20.00 (RF)
[18:34:11]  * audio track 0
[18:34:11]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[18:34:11]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:34:11]    + mixdown: Dolby Pro Logic II
[18:34:11]    + encoder: ca_aac
[18:34:11]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:34:11]  * audio track 1
[18:34:11]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[18:34:11]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[18:34:11]    + mixdown: 6-channel discrete
[18:34:11]    + encoder: ca_aac
[18:34:11]      + bitrate: 448 kbps, samplerate: 48000 Hz
[18:34:11] encx264: min-keyint: 24, keyint: 240
[18:34:11] encx264: encoding with stored aspect 4311/4312
[18:34:11] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=4311/4312
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile Main, level 3.1
[18:34:11] reader: first SCR 0 id 0x1 DTS 0
Stream with high frequencies VQ coding
Stream with high frequencies VQ coding
[18:34:11] sync: first pts is 810
[18:38:54] h264: "Chapter 01" (2) at frame 9070 time 34017210
[18:39:56] h264: "Chapter 02" (3) at frame 11363 time 42624630
[18:42:55] h264: "Chapter 03" (4) at frame 17388 time 65240910
[18:44:19] h264: "Chapter 04" (5) at frame 20159 time 75642570
[18:48:55] h264: "Chapter 05" (6) at frame 28793 time 108052470
[18:51:41] h264: "Chapter 06" (7) at frame 34539 time 129621510
[18:54:04] h264: "Chapter 07" (8) at frame 38688 time 145195830
[18:58:15] h264: "Chapter 08" (9) at frame 45608 time 171171810
[18:59:41] h264: "Chapter 09" (10) at frame 48282 time 181209330
[19:01:28] h264: "Chapter 10" (11) at frame 51409 time 192947310
[19:07:16] h264: "Chapter 11" (12) at frame 62630 time 235068120
[19:11:25] h264: "Chapter 12" (13) at frame 71064 time 266727240
[19:14:50] h264: "Chapter 13" (14) at frame 78409 time 294298560
[19:18:49] h264: "Chapter 14" (15) at frame 86227 time 323645310
[19:22:25] h264: "Chapter 15" (16) at frame 93759 time 351918540
[19:27:14] h264: "Chapter 16" (17) at frame 103019 time 386678340
[19:29:54] h264: "Chapter 17" (18) at frame 108164 time 405991350
[19:33:25] h264: "Chapter 18" (19) at frame 115791 time 434621160
[19:36:21] h264: "Chapter 19" (20) at frame 121852 time 457372710
[19:44:37] h264: "Chapter 20" (21) at frame 138225 time 518832810
[19:45:58] h264: "Chapter 21" (22) at frame 140886 time 528821550
[19:51:21] h264: "Chapter 22" (23) at frame 150412 time 564579810
[19:54:10] h264: "Chapter 23" (24) at frame 155744 time 584594820
[19:57:56] h264: "Chapter 24" (25) at frame 163857 time 615048930
[19:59:12] h264: "Chapter 25" (26) at frame 166231 time 623960370
[20:01:21] h264: "Chapter 26" (27) at frame 170689 time 640694610
[20:03:47] h264: "Chapter 27" (28) at frame 175646 time 659301930
[20:06:17] h264: "Chapter 28" (29) at frame 180640 time 678048120
[20:09:15] h264: "Chapter 29" (30) at frame 187065 time 702165960
[20:14:11] h264: "Chapter 30" (31) at frame 195827 time 735056370
[20:17:14] h264: "Chapter 31" (32) at frame 201187 time 755176410
[20:22:08] h264: "Chapter 32" (33) at frame 209806 time 787529970
[20:26:22] h264: "Chapter 33" (34) at frame 217568 time 816666660
[20:28:56] h264: "Chapter 34" (35) at frame 223112 time 837477450
[20:31:56] reader: done. 1 scr changes
[20:31:56] h264: "Chapter 35" (36) at frame 232592 time 873063000
[20:31:57] work: average encoding speed for job is 32.914692 fps
[20:31:57] sync: got 232608 frames, 232632 expected
[20:31:57] h264-decoder done: 232608 frames, 0 decoder errors, 0 drops
[20:31:57] render: lost time: 0 (0 frames)
[20:31:57] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:3078  Avg QP:18.59  size:105943  PSNR Mean Y:45.06 U:48.70 V:49.77 Avg:45.96 Global:45.39
x264 [info]: frame P:128195 Avg QP:21.67  size: 32205  PSNR Mean Y:42.69 U:48.76 V:49.83 Avg:43.63 Global:43.09
x264 [info]: frame B:101335 Avg QP:23.39  size:  8504  PSNR Mean Y:42.67 U:45.94 V:46.98 Avg:43.54 Global:42.81
x264 [info]: consecutive B-frames: 23.4% 44.9% 31.7%
x264 [info]: mb I  I16..4: 14.9%  0.0% 85.1%
x264 [info]: mb P  I16..4:  2.3%  0.0% 10.6%  P16..4: 49.3% 18.0%  8.7%  0.0%  0.0%    skip:11.0%
x264 [info]: mb B  I16..4:  2.8%  0.0%  1.4%  B16..8: 32.1%  9.7%  1.2%  direct:10.0%  skip:42.8%  L0:26.4% L1:58.8% BI:14.8%
x264 [info]: coded y,uvDC,uvAC intra: 72.0% 80.2% 49.9% inter: 22.8% 26.2% 3.6%
x264 [info]: i16 v,h,dc,p: 26% 18% 16% 40%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 17% 17%  7% 10%  8%  9%  7%  7%
x264 [info]: i8c dc,h,v,p: 51% 19% 20% 10%
x264 [info]: Weighted P-Frames: Y:3.6% UV:2.4%
x264 [info]: ref P L0: 70.6% 15.6% 13.6%  0.3%
x264 [info]: ref B L0: 85.7% 14.3%
x264 [info]: ref B L1: 95.8%  4.2%
x264 [info]: SSIM Mean Y:0.9747065 (15.970db)
x264 [info]: PSNR Mean Y:42.711 U:47.531 V:48.588 Avg:43.622 Global:42.987 kb/s:4383.87
MP4ERROR: (m_size <= (uint64_t)0xFFFFFFFF): assert failure
[20:31:57] mux: track 0, 232608 frames, 5316249429 bytes, 4383.76 kbps, fifo 8
[20:31:57] mux: track 1, 454768 frames, 199712047 bytes, 164.68 kbps, fifo 512
[20:31:57] mux: track 2, 454768 frames, 581120163 bytes, 479.19 kbps, fifo 512
[20:31:57] libhb: work result = 0
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Error downconverting from 1080 to 720

Post by TedJ »

Your error indicates that the encode exceeded 4 GB in size, the maximum allowable size for an MP4 file with a 32 bit index. You can either select "large file support" or increase RF (i.e. reduce quality). I find 23 - 21.5 is good for a 720p downconversion from Blu-ray.
siromega
Posts: 36
Joined: Mon Jul 02, 2007 5:06 am

Re: Error downconverting from 1080 to 720

Post by siromega »

Yup that fixed it. Thanks.

Just a suggestion, can you make that error message more friendly? At least for those who read log files.
Deleted User 11865

Re: Error downconverting from 1080 to 720

Post by Deleted User 11865 »

The error is printed by the MPEG-4 muxer (mp4v2), not HandBrake. So it's not in our code.
jamiemlaw
Veteran User
Posts: 536
Joined: Thu Sep 17, 2009 4:52 pm

Re: Error downconverting from 1080 to 720

Post by jamiemlaw »

Could there be a way for HandBrake to watch for messages coming from mp4v2 and, if it sees "MP4ERROR: (m_size <= (uint64_t)0xFFFFFFFF): assert failure", do something about it, even if it's just an alert box?

Alternatively, if "large file size" is deselected, could HandBrake check the size of the output once the encode is done, see if it's over 4GB and, if so, again, alert the user somehow?
Post Reply