Problem Encoding Blu-Ray (Defiance)

HandBrake for Windows 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
tbean
Posts: 40
Joined: Mon Dec 08, 2008 4:54 pm

Problem Encoding Blu-Ray (Defiance)

Post by tbean »

I am having problems encoding the Blu-Ray version of Defiance using H.264 in an MP4 container.

Since it has a TureHD soundtrack, I extract the H.264 and TrueHD tracks and convert the TrueHD to AC3 using eac3to. Then I remux them into an .m2ts file using tsRemuxer and use the resulting file as the source for Handbrake. I specified a Target Size of 3900 MB but the output file is over 6.5 GB and the encode takes over twice as long as a successful encode.

I have successfully used this technique with many other Blu-Ray DVDs but I can't get it to work with Defiance. When I try to play the output .MP4 file, i get a message saying it is corrupt or an unsupported format.

Would someone please review the attached log and give me any suggestions about how I can solve the problem?

I know the forum rules say to submit every character of the Activity Log, but when I tried to submit this, I got the following error message, "Your message contains 104288 characters. The maximum number of allowed characters is 100000." In order to submit the request and the Activity Log, I removed some redundant lines which said "Scanning title 1..." and put an elipsis in the place where the lines were removed. If the number of times "Scanning title 1..." was repeated is important, please let me know and I'll count them and post that information.

Thanks,
Tom

Code: Select all

### CLI Query:  -i "C:\Users\tbean.T-A-C\Rip\Defiance\Defiance.m2ts" -t 1 -c 1 -o "C:\Users\tbean.T-A-C\Videos\Defiance\Defiance.mp4" -f mp4 -w 1920 -l 1104 -e x264 -S 3900 -2  -T  -a 1 -E faac -B 384 -R 0 -6 6ch -D 1 -x ref=2:bframes=2:me=umh -v 

#########################################

[01:13:34] hb_init: checking cpu count
[01:13:34] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
2 CPUs detected
Opening C:\Users\tbean.T-A-C\Rip\Defiance\Defiance.m2ts...
[01:13:34] hb_scan: path=C:\Users\tbean.T-A-C\Rip\Defiance\Defiance.m2ts, title_index=1
[01:13:34] scan: trying to open with libdvdread
[01:13:34] dvd: not a dvd - trying as a stream/file instead
[01:13:34] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[01:13:34] hb_ts_stream_find_pids - found the following PIDS
[01:13:34]     Video PIDS : 
[01:13:34]       0x1011 type H.264 (0x1b)
[01:13:34]     Audio PIDS : 
[01:13:34]       0x1100 type AC-3 (0x81)
[01:13:35] transport stream pid 0x1100 (type 0x81) is AC-3 audio id 0x80bd
[01:13:35] scan: decoding previews for title 1
[01:13:35] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:17:59] hb_ts_stream_decode - eof
[01:17:59] Warning: Could not read data for preview 2, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:21:59] hb_ts_stream_decode - eof
[01:21:59] Warning: Could not read data for preview 3, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:25:37] hb_ts_stream_decode - eof
[01:25:37] Warning: Could not read data for preview 4, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:28:44] hb_ts_stream_decode - eof
[01:28:44] Warning: Could not read data for preview 5, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:31:23] hb_ts_stream_decode - eof
[01:31:23] Warning: Could not read data for preview 6, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:33:38] hb_ts_stream_decode - eof
[01:33:38] Warning: Could not read data for preview 7, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:35:19] hb_ts_stream_decode - eof
[01:35:19] Warning: Could not read data for preview 8, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:36:34] hb_ts_stream_decode - eof
[01:36:34] Warning: Could not read data for preview 9, skipped
Scanning title 1...
Scanning title 1...
Scanning title 1...
...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:37:21] hb_ts_stream_decode - eof
[01:37:21] Warning: Could not read data for preview 10, skipped
[01:37:21] scan: 1 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[01:37:21] Title is likely interlaced or telecined (0 out of 1 previews). You should do something about that.
[01:37:21] scan: title (0) job->width:1936, job->height:1088
[01:37:21] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 02:12:35
  + size: 1920x1080, aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 02:12:35
  + audio tracks:
    + 1, Unknown (AC3) (5.1 ch), 48000Hz, 448000bps
  + subtitle tracks:
  + combing detected, may be interlaced or telecined
Invalid sample rate 0, using input rate 48000
Calculated bitrate: 3723 kbps
Modified x264 options for pass 1 to append turbo options: ref=2:bframes=2:me=umh:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[01:37:21] 2 job(s) to process
[01:37:21] starting job
[01:37:21] job configuration:
[01:37:21]  * source
[01:37:21]    + C:\Users\tbean.T-A-C\Rip\Defiance\Defiance.m2ts
[01:37:21]    + title 1, chapter(s) 1 to 1
[01:37:21]  * destination
[01:37:21]    + C:\Users\tbean.T-A-C\Videos\Defiance\Defiance.mp4
[01:37:21]    + container: MPEG-4 (.mp4 and .m4v)
[01:37:21]  * video track
[01:37:21]    + decoder: h264
[01:37:21]      + bitrate 200 kbps
[01:37:21]    + frame rate: same as source (around 29.970 fps)
[01:37:21]    + dimensions: 1920 * 1080 -> 1920 * 1104, crop 0/0/0/0
[01:37:21]    + encoder: x264
[01:37:21]      + options: ref=2:bframes=2:me=umh:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[01:37:21]      + bitrate: 3723 kbps, pass: 1
[01:37:21]  * audio track 0
[01:37:21]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[01:37:21]      + bitrate: 448 kbps, samplerate: 48000 Hz
[01:37:21]    + mixdown: 6-channel discrete
[01:37:21]    + encoder: faac
[01:37:21]      + bitrate: 384 kbps, samplerate: 48000 Hz
[01:37:21] dvd: not a dvd - trying as a stream/file instead
[01:37:21] reader: first SCR 53955000
[01:37:21] encx264: keyint-min: 30, keyint-max: 300
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 4.2
No accelerated IMDCT transform found
[01:37:21] sync: expecting 238464 video frames
[01:37:21] sync: first pts is 3754
[07:36:58] hb_ts_stream_decode - eof
[07:36:58] stream: 196800 good frames, 0 errors (0%)
[07:36:58] reader: done. 83 scr changes
[07:37:05] sync: got 196798 frames, 238464 expected
[07:37:05] work: average encoding speed for job is 9.117431 fps
[07:37:07] h264-decoder done: 196799 frames, 0 decoder errors, 0 drops
[07:37:07] render: lost time: 0 (0 frames)
[07:37:07] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:3753  Avg QP:22.69  size:125740  PSNR Mean Y:41.65 U:45.77 V:45.90 Avg:42.53 Global:40.64
x264 [info]: slice P:340855 Avg QP:25.16  size: 16354  PSNR Mean Y:40.15 U:46.90 V:46.26 Avg:41.36 Global:39.25
x264 [info]: slice B:48989 Avg QP:28.45  size:   700  PSNR Mean Y:40.90 U:47.68 V:47.30 Avg:42.11 Global:38.68
x264 [info]: consecutive B-frames: 77.3% 15.5%  7.2%
x264 [info]: mb I  I16..4: 58.5%  0.0% 41.5%
x264 [info]: mb P  I16..4: -20.8% -0.0% -0.0%  P16..4: -55.6% -0.0% -0.0% -0.0% -0.0%    skip:-115.3%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  3.7%  0.0%  0.0%  direct: 0.7%  skip:95.4%  L0:65.3% L1:32.6% BI: 2.1%
x264 [info]: final ratefactor: 28.46
x264 [info]: SSIM Mean Y:0.9329403
x264 [info]: PSNR Mean Y:40.259 U:46.989 V:46.386 Avg:41.460 Global:39.181 kb/s:3703.94
[07:37:07] starting job
[07:37:07] job configuration:
[07:37:07]  * source
[07:37:07]    + C:\Users\tbean.T-A-C\Rip\Defiance\Defiance.m2ts
[07:37:07]    + title 1, chapter(s) 1 to 1
[07:37:07]  * destination
[07:37:07]    + C:\Users\tbean.T-A-C\Videos\Defiance\Defiance.mp4
[07:37:07]    + container: MPEG-4 (.mp4 and .m4v)
[07:37:07]  * video track
[07:37:07]    + decoder: h264
[07:37:07]      + bitrate 200 kbps
[07:37:07]    + frame rate: same as source (around 29.970 fps)
[07:37:07]    + dimensions: 1920 * 1080 -> 1920 * 1104, crop 0/0/0/0
[07:37:07]    + encoder: x264
[07:37:07]      + options: ref=2:bframes=2:me=umh
[07:37:07]      + bitrate: 3723 kbps, pass: 2
[07:37:07]  * audio track 0
[07:37:07]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[07:37:07]      + bitrate: 448 kbps, samplerate: 48000 Hz
[07:37:07]    + mixdown: 6-channel discrete
[07:37:07]    + encoder: faac
[07:37:07]      + bitrate: 384 kbps, samplerate: 48000 Hz
[07:37:07] encx264: keyint-min: 30, keyint-max: 300
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[07:37:07] dvd: not a dvd - trying as a stream/file instead
[07:37:07] reader: first SCR 53955000
x264 [info]: profile Main, level 4.2
No accelerated IMDCT transform found
[07:37:37] sync: expecting 238464 video frames
[07:37:37] sync: first pts is 3754
[21:37:21] hb_ts_stream_decode - eof
[21:37:21] stream: 196800 good frames, 0 errors (0%)
[21:37:21] reader: done. 83 scr changes
[21:37:36] sync: got 196798 frames, 238464 expected
[21:37:36] work: average encoding speed for job is 3.904680 fps
MP4ERROR: (m_size <= (uint64_t)0xFFFFFFFF): assert failure
[21:37:40] h264-decoder done: 196799 frames, 0 decoder errors, 0 drops
[21:37:40] render: lost time: 0 (0 frames)
[21:37:40] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:3753  Avg QP:23.04  size:130930  PSNR Mean Y:41.53 U:46.33 V:46.51 Avg:42.54 Global:40.97
x264 [info]: slice P:340856 Avg QP:25.36  size: 16323  PSNR Mean Y:39.98 U:47.18 V:46.67 Avg:41.22 Global:39.60
x264 [info]: slice B:48988 Avg QP:27.07  size:  1144  PSNR Mean Y:41.11 U:48.11 V:47.92 Avg:42.34 Global:39.39
x264 [info]: consecutive B-frames: 77.3% 15.5%  7.2%
x264 [info]: mb I  I16..4: 26.9%  0.0% 73.1%
x264 [info]: mb P  I16..4: -2.0% -0.0% -2.6%  P16..4: -74.8% -7.6% -6.9% -0.0% -0.0%    skip:-97.7%
x264 [info]: mb B  I16..4:  0.3%  0.0%  0.0%  B16..8:  4.9%  0.1%  0.0%  direct: 1.2%  skip:93.4%  L0:62.5% L1:34.1% BI: 3.3%
x264 [info]: ref P L0  74.1% 25.9%
x264 [info]: SSIM Mean Y:0.9353363
x264 [info]: PSNR Mean Y:40.132 U:47.287 V:46.823 Avg:41.368 Global:39.584 kb/s:3722.65
[21:37:40] libhb: work result = 0

Rip done!
HandBrake has exited.

jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Problem Encoding Blu-Ray (Defiance)

Post by jbrjake »

MP4ERROR: (m_size <= (uint64_t)0xFFFFFFFF): assert failure

This is, of course, covered in the FAQ...
tbean
Posts: 40
Joined: Mon Dec 08, 2008 4:54 pm

Re: Problem Encoding Blu-Ray (Defiance)

Post by tbean »

I appologize for not catching the error. I was focused on the lines that give the count of errors not the word 'error'.

I assume you set the 64-bit file size by checking the "Large File Size" box. The source file is 29 GB and that is larger than the 4 GB limit of a 32-bit UNIT so I figured it must be a limit on the output file. Since I specified a 3900 MB output file size, I don't understand why the MP4ERROR was raised. Was Handbrake unable to limit the file size to under 4 GB? If so, is there any way to tell that this will be an issue with a source file?

Sorry for all the questions but I'd really like to understand what's happening so I'll be less of a pain.

Thanks,
Tom
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Problem Encoding Blu-Ray (Defiance)

Post by jbrjake »

tbean wrote:Since I specified a 3900 MB output file size, I don't understand why the MP4ERROR was raised.
tbean earlier wrote:the output file is over 6.5 GB <snip> When I try to play the output .MP4 file, i get a message saying it is corrupt or an unsupported format.
As far as not getting the right output size -- this is to be expected with 0.9.3. Use the snapshot.
tbean
Posts: 40
Joined: Mon Dec 08, 2008 4:54 pm

Re: Problem Encoding Blu-Ray (Defiance)

Post by tbean »

I downloaded the SVN 2592 snapshot to test it and have a question about installing it. I searched for the answer to the question but was unable to find one. My question is:

Is it possible to install the SVN 2592 snapshot along side version 0.9.3 or do I need to remove 0.9.3 before installing the snapshot?

Thanks,
Tom
Post Reply