Can't make a good encode using seconds/frame option

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.
Locked
Direcu

Can't make a good encode using seconds/frame option

Post by Direcu » Tue Dec 16, 2014 1:58 pm

I started to rip some of my Criterion blu-rays. I started with MakeMKV and then, opened the .mkv file on Handbrake (0.10) and encode to H.264.

Every Criterion film has a 14 second Criterion credit at the beginning. I tried to skip this credit beginning the encode 14 seconds later, when the film really starts.

So, something very strange happen when handbrake finishes the encode. The final video starts at the point I manage, but at the end, somehow, handbrake finishes the encode missing like 30 seconds / 1 minute before the end.

If I encode without skipping the 14 seconds credit, I have a perfect encode file. I even tried using the 'frame' option, but the encode problem is the same as the 'seconds' option.

Someone can help me?

P.S. I hope I've made myself understandable. I'm sorry for any language issue.

Woodstock
Veteran User
Posts: 3260
Joined: Tue Aug 27, 2013 6:39 am

Re: Can't make a good encode using seconds/frame option

Post by Woodstock » Tue Dec 16, 2014 2:56 pm

Encode logs from both types of encodes, "everything" and "start at 14 seconds", would make this a lot easier.

Direcu

Re: Can't make a good encode using seconds/frame option

Post by Direcu » Tue Dec 16, 2014 3:02 pm

I presumed that. That's why I'm encoding it again.

Thanks

Direcu

Re: Can't make a good encode using seconds/frame option

Post by Direcu » Sun Dec 21, 2014 11:21 pm

Here's the log file. It missed approximately 3 minutes from the ending. I started encoding 21 seconds after.

HandBrake Activity Log for /Users/Dirceu/Desktop/00274.mp4: 2014-12-21 12:43:12 -0200
Handbrake Version: 0.10.0 x86_64 (2014112200)

[12:43:12] macgui: Rip: Pending queue count is 0
[12:43:12] macgui: getNextPendingQueueIndex next pending encode index is:18
[12:43:12] macgui: scanning specifically for title: 1
[12:43:12] CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
[12:43:12] - Intel microarchitecture Ivy Bridge
[12:43:12] - logical processor count: 8
[12:43:12] OpenCL device #1: Intel HD Graphics 4000
[12:43:12] - OpenCL version: 1.2
[12:43:12] - driver version: 1.2(Sep 25 2014 22:26:04)
[12:43:12] - device type: GPU
[12:43:12] - supported: no
[12:43:12] OpenCL device #2: NVIDIA GeForce GT 650M
[12:43:12] - OpenCL version: 1.2
[12:43:12] - driver version: 10.0.43 310.41.05f01
[12:43:12] - device type: GPU
[12:43:12] - supported: no
[12:43:12] hb_scan: path=/Users/Dirceu/Downloads/Иваново детство (1962) (Blu-ray, 1080p, AVC, LPCM 1.0)/00274.m2ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/Dirceu/Downloads/Иваново детство (1962) (Blu-ray, 1080p, AVC, LPCM 1.0)/00274.m2ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/Dirceu/Downloads/Иваново детство (1962) (Blu-ray, 1080p, AVC, LPCM 1.0)/00274.m2ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/Dirceu/Downloads/Иваново детство (1962) (Blu-ray, 1080p, AVC, LPCM 1.0)/00274.m2ts) failed
[12:43:12] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:43:12] dvd: not a dvd - trying as a stream/file instead
[12:43:12] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:43:12] Found the following PIDS
[12:43:12] Video PIDS :
[12:43:12] 0x1011 type H.264 (0x1b)
[12:43:12] Audio PIDS :
[12:43:12] 0x1100 type BD LPCM (0x80)
[12:43:12] Subtitle PIDS :
[12:43:12] 0x1200 type PGS Subtitle (0x90)
[12:43:12] Other PIDS :
[12:43:12] 0x1001 type Unknown (0xff) (PCR)
[12:43:12] stream id 0x1100 (type 0x80 substream 0x0) audio 0x1100
[12:43:12] stream id 0x1200 (type 0x90 substream 0x0) subtitle 0x1200
[12:43:12] macgui: Queue reloaded
[12:43:13] stream doesn't seem to have video IDR frames
[12:43:13] scan: decoding previews for title 1
[12:43:13] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:43:13] scan: audio 0x1100: pcm_bluray, rate=48000Hz, bitrate=2304000 Unknown (BD LPCM) (1.0 ch)
[12:43:15] stream: 28 good frames, 0 errors (0%)
[12:43:15] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/240/238, aspect 16:9, PAR 1:1
[12:43:15] libhb: scan thread found 1 valid title(s)
[12:43:15] macgui: ScanDone state received from fQueueEncodeLibhb
[12:43:15] macgui: Preset: Custom
[12:43:15] macgui: processNewQueueEncode number of passes expected is: 1
[12:43:15] macgui: Start / Stop set to seconds…
[12:43:15] macgui: prepareJob exiting
[12:43:15] 1 job(s) to process
[12:43:15] starting job
[12:43:15] yadif thread started for segment 0
[12:43:15] yadif thread started for segment 1
[12:43:15] yadif thread started for segment 2
[12:43:15] yadif thread started for segment 3
[12:43:15] yadif thread started for segment 4
[12:43:15] yadif thread started for segment 5
[12:43:15] yadif thread started for segment 6
[12:43:15] yadif thread started for segment 7
[12:43:15] decomb filter thread started for segment 0
[12:43:15] decomb filter thread started for segment 1
[12:43:15] decomb filter thread started for segment 2
[12:43:15] decomb filter thread started for segment 3
[12:43:15] decomb filter thread started for segment 4
[12:43:15] decomb filter thread started for segment 5
[12:43:15] decomb filter thread started for segment 6
[12:43:15] decomb filter thread started for segment 7
[12:43:15] decomb check thread started for segment 0
[12:43:15] decomb check thread started for segment 1
[12:43:15] decomb check thread started for segment 2
[12:43:15] decomb check thread started for segment 3
[12:43:15] decomb check thread started for segment 4
[12:43:15] decomb check thread started for segment 5
[12:43:15] decomb check thread started for segment 6
[12:43:15] decomb check thread started for segment 7
[12:43:15] mask filter thread started for segment 0
[12:43:15] mask filter thread started for segment 1
[12:43:15] mask filter thread started for segment 2
[12:43:15] mask filter thread started for segment 3
[12:43:15] mask filter thread started for segment 4
[12:43:15] mask filter thread started for segment 5
[12:43:15] mask filter thread started for segment 6
[12:43:15] mask filter thread started for segment 7
[12:43:15] mask erode thread started for segment 0
[12:43:15] mask erode thread started for segment 1
[12:43:15] mask erode thread started for segment 2
[12:43:15] mask erode thread started for segment 3
[12:43:15] mask erode thread started for segment 4
[12:43:15] mask erode thread started for segment 5
[12:43:15] mask erode thread started for segment 6
[12:43:15] mask erode thread started for segment 7
[12:43:15] mask dilate thread started for segment 0
[12:43:15] mask dilate thread started for segment 1
[12:43:15] mask dilate thread started for segment 2
[12:43:15] mask dilate thread started for segment 3
[12:43:15] mask dilate thread started for segment 4
[12:43:15] mask dilate thread started for segment 5
[12:43:15] mask dilate thread started for segment 6
[12:43:15] mask dilate thread started for segment 7
[12:43:15] sync: expecting 132083 video frames
[12:43:15] job configuration:
[12:43:15] * source
[12:43:15] + /Users/Dirceu/Downloads/Иваново детство (1962) (Blu-ray, 1080p, AVC, LPCM 1.0)/00274.m2ts
[12:43:15] + title 1, start 00:00:21.00 stop 01:32:9.00
[12:43:15] * destination
[12:43:15] + /Users/Dirceu/Desktop/00274.mp4
[12:43:15] + container: MPEG-4 (libavformat)
[12:43:15] * video track
[12:43:15] + decoder: h264
[12:43:15] + bitrate 200 kbps
[12:43:15] + filters
[12:43:15] + Detelecine (pullup) (default settings)
[12:43:15] + Decomb (default settings)
[12:43:15] + Framerate Shaper (0:27000000:1126125)
[12:43:15] + frame rate: same as source (around 23.976 fps)
[12:43:15] + Crop and Scale (1442:1080:0:0:240:238)
[12:43:15] + source: 1920 * 1080, crop (0/0/240/238): 1442 * 1080, scale: 1442 * 1080
[12:43:15] + strict anamorphic
[12:43:15] + storage dimensions: 1442 * 1080, mod 2
[12:43:15] + pixel aspect ratio: 1 / 1
[12:43:15] + display dimensions: 1442 * 1080
[12:43:15] + encoder: H.264 (libx264)
[12:43:15] + preset: veryslow
[12:43:15] + tune: grain
[12:43:15] + profile: high
[12:43:15] + level: 4.2
[12:43:15] + quality: 20.50 (RF)
[12:43:15] * audio track 1
[12:43:15] + decoder: Unknown (BD LPCM) (1.0 ch) (track 1, id 0x1100)
[12:43:15] + bitrate: 2304 kbps, samplerate: 48000 Hz
[12:43:15] + mixdown: Mono
[12:43:15] + encoder: AAC (Apple AudioToolbox)
[12:43:15] + bitrate: 256 kbps, samplerate: 48000 Hz
[12:43:15] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[12:43:15] reader: first SCR 963814 id 0x1011 DTS 1044806
[12:43:15] encx264: min-keyint: 24, keyint: 240
[12:43:15] encx264: encoding at constant RF 20.500000
[12:43:15] encx264: unparsed options: level=4.2:ref=5:bframes=8:b-adapt=2:direct=auto:deblock=-2,-2:analyse=all:me=umh:merange=24:subme=10:trellis=2:dct-decimate=0:psy-rd=1.00,0.25:deadzone-inter=6:deadzone-intra=6:vbv-bufsize=78125:vbv-maxrate=62500:ipratio=1.10:qcomp=0.80:aq-strength=0.50:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.2
[12:43:16] macgui: Queue reloaded
[12:43:16] h264: "Chapter 1" (1) at frame 0 time 904654
[12:43:16] sync: adding 1500 ms of silence to audio 0x1100 start 135064, next 0
[12:43:16] sync: first pts is 1891890
[21:02:20] sync: reached pts 495720225, exiting early
[21:03:12] work: average encoding speed for job is 4.834819 fps
[21:03:12] reader: done. 1 scr changes
[21:03:12] sync: got 132060 frames, 132083 expected
[21:03:12] decomb: deinterlaced 7 | blended 12 | unfiltered 132040 | total 132059
[21:03:12] render: lost time: 0 (0 frames)
[21:03:12] render: gained time: 0 (0 frames) (0 not accounted for)
[21:03:12] h264-decoder done: 135116 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:614 Avg QP:20.06 size:129705
x264 [info]: frame P:23003 Avg QP:21.22 size: 87837
x264 [info]: frame B:108442 Avg QP:22.25 size: 62054
x264 [info]: consecutive B-frames: 0.7% 0.6% 2.0% 6.7% 10.3% 58.3% 9.6% 5.7% 6.1%
x264 [info]: mb I I16..4: 23.9% 67.0% 9.2%
x264 [info]: mb P I16..4: 7.3% 22.6% 2.9% P16..4: 36.8% 11.3% 8.7% 0.4% 0.1% skip: 9.8%
x264 [info]: mb B I16..4: 3.7% 8.0% 0.7% B16..8: 33.2% 10.2% 2.7% direct:14.4% skip:27.1% L0:41.2% L1:35.8% BI:23.1%
x264 [info]: 8x8 transform intra:66.3% inter:37.1%
x264 [info]: direct mvs spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 95.7% 0.0% 0.0% inter: 43.7% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 5% 3% 66% 26%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 10% 24% 8% 9% 8% 9% 9% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 7% 9% 10% 13% 12% 13% 11% 14%
x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:19.2% UV:0.0%
x264 [info]: ref P L0: 39.4% 9.3% 23.7% 13.4% 11.9% 2.3% 0.0%
x264 [info]: ref B L0: 68.9% 22.5% 6.9% 1.7%
x264 [info]: ref B L1: 88.7% 11.3%
x264 [info]: kb/s:12824.23
[21:03:12] pcm_bluray-decoder done: 0 frames, 0 decoder errors, 0 drops
[21:03:12] mux: track 0, 132059 frames, 8829394502 bytes, 12824.10 kbps, fifo 1024
[21:03:12] mux: track 1, 258188 frames, 149506783 bytes, 217.15 kbps, fifo 4096
[21:03:12] stream: 135395 good frames, 0 errors (0%)
[21:03:12] libhb: work result = 0

TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Can't make a good encode using seconds/frame option

Post by TedJ » Mon Dec 22, 2014 11:21 am

Rule #3 violation. Locking.

Locked