Incorrect movie duration in Handbrake when converting Mov files edited in Quicktime Pro
Posted: Mon Jul 30, 2018 2:29 am
Description of problem or question:
I am converting Mov files edited in Quicktime Pro to mp4. When I convert the mov files Handbrake does not read the correct movie duration. For the movie with the attached log, the duration of the movie in Quictime is 18'23" Handbrake reads the duration as 18'30" and converts the movie to that length. The problem is that the audio no longer coincides with the video. The audio is off by 7" since it is still 18'23" long while the video is longer.
Steps to reproduce the problem (If Applicable):
I can send you the file if you want.
HandBrake version (e.g., 1.0.0):
1.1.1
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Mac Pro running Mac OS Sierra 10.12.6
HandBrake Activity Log ***required*** (see How-to get an activity log)
I am converting Mov files edited in Quicktime Pro to mp4. When I convert the mov files Handbrake does not read the correct movie duration. For the movie with the attached log, the duration of the movie in Quictime is 18'23" Handbrake reads the duration as 18'30" and converts the movie to that length. The problem is that the audio no longer coincides with the video. The audio is off by 7" since it is still 18'23" long while the video is longer.
Steps to reproduce the problem (If Applicable):
I can send you the file if you want.
HandBrake version (e.g., 1.0.0):
1.1.1
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Mac Pro running Mac OS Sierra 10.12.6
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
HandBrake Activity Log for Session: 2018-07-29 19:19:03 -0700
Handbrake Version: 1.1.1 (2018061800)
7-Collections.mp4
Preset: Normal
[19:19:03] macgui: QueueCore scanning specifically for title: 1
[19:19:03] CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
[19:19:03] - logical processor count: 16
[19:19:03] hb_scan: path=/Volumes/Mac Pro 1GB BU 2/2-Alain's CDs & DVDs/51-Lightroom Artistic Mastery DVD/DVD Sections/2-Working in Adobe Lightrooom/7-Collections.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Mac Pro 1GB BU 2/2-Alain's CDs & DVDs/51-Lightroom Artistic Mastery DVD/DVD Sections/2-Working in Adobe Lightrooom/7-Collections.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[19:19:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[19:19:03] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Mac Pro 1GB BU 2/2-Alain's CDs & DVDs/51-Lightroom Artistic Mastery DVD/DVD Sections/2-Working in Adobe Lightrooom/7-Collections.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2018-07-05 23:49:09
Duration: 00:18:30.63, start: 0.160000, bitrate: 2037 kb/s
Stream #0:0: Video: h264 (High) [avc1 / 0x31637661]
yuv420p, tv, bt709/bt709/bt709
1230x843 [PAR 1:1 DAR 410:281], 1872 kb/s, PAR 1:1 DAR 410:281
27.08 fps, 600 tbn (default)
Metadata:
creation_time : 2018-07-05 23:49:09
handler_name : Apple Alias Data Handler
Stream #0:1: Audio: aac (LC) [mp4a / 0x6134706D]
44100 Hz, mono, fltp, 160 kb/s (default)
Metadata:
creation_time : 2018-07-05 23:49:09
handler_name : Apple Alias Data Handler
[19:19:03] scan: decoding previews for title 1
[19:19:03] scan: audio 0x1: aac, rate=44100Hz, bitrate=160370 Unknown (AAC) (1.0 ch)
[19:19:04] scan: 10 previews, 1230x842, 27.735 fps, autocrop = 0/2/0/2, aspect 1.46:1, PAR 1:1
[19:19:04] Title is likely interlaced or telecined (8 out of 10 previews). You should do something about that.
[19:19:04] libhb: scan thread found 1 valid title(s)
[19:19:05] macgui: QueueCore scan done
[19:19:05] macgui: QueueCore started encoding 7-Collections.mp4
[19:19:05] macgui: QueueCore with preset Normal
[19:19:05] 1 job(s) to process
[19:19:05] starting job
[19:19:05] work: only 1 chapter, disabling chapter markers
[19:19:05] job configuration:
[19:19:05] * source
[19:19:05] + /Volumes/Mac Pro 1GB BU 2/2-Alain's CDs & DVDs/51-Lightroom Artistic Mastery DVD/DVD Sections/2-Working in Adobe Lightrooom/7-Collections.mov
[19:19:05] + title 1, chapter(s) 1 to 1
[19:19:05] + container: mov,mp4,m4a,3gp,3g2,mj2
[19:19:05] + data rate: 2037 kbps
[19:19:05] * destination
[19:19:05] + /Users/alain briot/Desktop/7-Collections.mp4
[19:19:05] + container: MPEG-4 (libavformat)
[19:19:05] * video track
[19:19:05] + decoder: h264
[19:19:05] + bitrate 1872 kbps
[19:19:05] + filters
[19:19:05] + Framerate Shaper (mode=0:rate=27000000/973512)
[19:19:05] + frame rate: same as source (around 27.735 fps)
[19:19:05] + Crop and Scale (width=1228:height=840:crop-top=0:crop-bottom=2:crop-left=0:crop-right=2)
[19:19:05] + source: 1230 * 842, crop (0/2/0/2): 1228 * 840, scale: 1228 * 840
[19:19:05] + Output geometry
[19:19:05] + storage dimensions: 1228 x 840
[19:19:05] + pixel aspect ratio: 1 : 1
[19:19:05] + display dimensions: 1228 x 840
[19:19:05] + encoder: H.264 (libx264)
[19:19:05] + preset: veryfast
[19:19:05] + profile: main
[19:19:05] + level: 4.0
[19:19:05] + quality: 20.00 (RF)
[19:19:05] * audio track 1
[19:19:05] + decoder: Unknown (AAC) (1.0 ch) (track 1, id 0x1)
[19:19:05] + bitrate: 160 kbps, samplerate: 44100 Hz
[19:19:05] + mixdown: Mono
[19:19:05] + encoder: AAC (Apple AudioToolbox)
[19:19:05] + bitrate: 160 kbps, samplerate: 44100 Hz
[19:19:05] sync: expecting 30803 video frames
[19:19:05] encx264: min-keyint: 28, keyint: 280
[19:19:05] encx264: encoding at constant RF 20.000000
[19:19:05] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile Main, level 4.0
[19:19:06] sync: first pts video is 0
[19:19:06] sync: "Chapter 1" (1) at frame 1 time 0
[19:19:06] sync: first pts audio 0x1 is 14400
[19:21:07] sync: video time went backwards 108 ms, dropped 3 frames. PTS 77139000
[19:21:47] reader: done. 1 scr changes
[19:21:47] work: average encoding speed for job is 190.904953 fps
[19:21:47] vfr: lost time: 0 (0 frames)
[19:21:47] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:21:47] aac-decoder done: 47523 frames, 0 decoder errors
[19:21:47] h264-decoder done: 30803 frames, 0 decoder errors
[19:21:47] sync: got 30800 frames, 30803 expected
[19:21:47] sync: framerate min 3.333 fps, max 30.000 fps, avg 27.736 fps
x264 [info]: frame I:111 Avg QP:15.89 size:141764
x264 [info]: frame P:8196 Avg QP:20.06 size: 2027
x264 [info]: frame B:22493 Avg QP:25.05 size: 96
x264 [info]: consecutive B-frames: 0.8% 5.0% 1.8% 92.5%
x264 [info]: mb I I16..4: 44.6% 0.0% 55.4%
x264 [info]: mb P I16..4: 0.8% 0.0% 0.6% P16..4: 1.7% 0.1% 0.1% 0.0% 0.0% skip:96.6%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.0% 0.0% direct: 0.1% skip:99.6% L0:47.4% L1:50.0% BI: 2.6%
x264 [info]: coded y,uvDC,uvAC intra: 48.0% 28.5% 24.2% inter: 0.2% 0.2% 0.0%
x264 [info]: i16 v,h,dc,p: 50% 49% 1% 0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 36% 10% 4% 4% 4% 5% 4% 6%
x264 [info]: i8c dc,h,v,p: 66% 18% 13% 2%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:248.53
[19:21:47] mux: track 0, 30800 frames, 34493208 bytes, 248.49 kbps, fifo 8192
[19:21:47] mux: track 1, 47525 frames, 22702013 bytes, 163.55 kbps, fifo 16384
[19:21:47] libhb: work result = 0