I am using the built-in macOS screen capture function to record some websites I've worked on. I trim the final videos to the required start/end position before saving them as MOVs.
I then use Handbrake to convert them to MP4s, but the trim start/end points I've set seem to be ignored. Is this a limitation or a bug? Thanks.
1.20
macOS 10.14.2 Mojave
Please provide any error messages or screenshots that may help.
~
[20:57:23] macgui: Handbrake Version: 1.2.0 (2018122200)
[20:57:23] hb_init: starting libhb thread
[20:57:23] hb_init: starting libhb thread
[20:58:14] macgui: trying to open a folder or file
[20:58:14] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[20:58:14] CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
[20:58:14] - Intel microarchitecture Skylake
[20:58:14] - logical processor count: 8
[20:58:14] hb_scan: path=/Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:58:14] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[20:58:14] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2018-12-02T14:25:59.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: MacBookPro13,3
com.apple.quicktime.software: Mac OS X 10.14.1 (18B75)
com.apple.quicktime.creationdate: 2018-12-02T14:21:51+0000
Duration: 00:00:31.05, start: 0.000000, bitrate: 33374 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 2880x1800 [SAR 1:1 DAR 8:5], 32497 kb/s, 59.25 fps, 60 tbr, 6k tbn, 12k tbc (default)
Metadata:
creation_time : 2018-12-02T14:25:59.000000Z
handler_name : Core Media Video
encoder : H.264
[20:58:14] scan: decoding previews for title 1
[20:58:16] scan: 10 previews, 2880x1800, 60.835 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 1:1
[20:58:16] libhb: scan thread found 1 valid title(s)
[20:58:16] macgui: ScanCore scan done
[20:58:35] macgui: QueueCore prevented sleep
[20:58:35] macgui: QueueCore scanning specifically for title: 1
[20:58:35] CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
[20:58:35] - Intel microarchitecture Skylake
[20:58:35] - logical processor count: 8
[20:58:35] hb_scan: path=/Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:58:35] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[20:58:35] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2018-12-02T14:25:59.000000Z
com.apple.quicktime.make: Apple
com.apple.quicktime.model: MacBookPro13,3
com.apple.quicktime.software: Mac OS X 10.14.1 (18B75)
com.apple.quicktime.creationdate: 2018-12-02T14:21:51+0000
Duration: 00:00:31.05, start: 0.000000, bitrate: 33374 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 2880x1800 [SAR 1:1 DAR 8:5], 32497 kb/s, 59.25 fps, 60 tbr, 6k tbn, 12k tbc (default)
Metadata:
creation_time : 2018-12-02T14:25:59.000000Z
handler_name : Core Media Video
encoder : H.264
[20:58:35] scan: decoding previews for title 1
[20:58:36] scan: 10 previews, 2880x1800, 60.835 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 1:1
[20:58:36] libhb: scan thread found 1 valid title(s)
[20:58:36] macgui: QueueCore scan done
[20:58:36] 1 job(s) to process
[20:58:36] starting job
[20:58:36] macgui: QueueCore started encoding anna-rosa-full-hb.mp4
[20:58:36] macgui: QueueCore with preset Fast 1080p30 (Modified)
[20:58:36] decomb filter thread started for segment 1
[20:58:36] decomb filter thread started for segment 3
[20:58:36] decomb filter thread started for segment 2
[20:58:36] decomb filter thread started for segment 4
[20:58:36] decomb filter thread started for segment 0
[20:58:36] decomb filter thread started for segment 6
[20:58:36] decomb filter thread started for segment 5
[20:58:36] decomb filter thread started for segment 7
[20:58:36] decomb check thread started for segment 0
[20:58:36] decomb check thread started for segment 1
[20:58:36] decomb check thread started for segment 2
[20:58:36] decomb check thread started for segment 3
[20:58:36] decomb check thread started for segment 4
[20:58:36] decomb check thread started for segment 5
[20:58:36] decomb check thread started for segment 7
[20:58:36] decomb check thread started for segment 6
[20:58:36] mask filter thread started for segment 0
[20:58:36] mask filter thread started for segment 1
[20:58:36] mask filter thread started for segment 2
[20:58:36] mask filter thread started for segment 3
[20:58:36] mask filter thread started for segment 4
[20:58:36] mask filter thread started for segment 5
[20:58:36] mask filter thread started for segment 6
[20:58:36] mask erode thread started for segment 0
[20:58:36] mask filter thread started for segment 7
[20:58:36] mask erode thread started for segment 1
[20:58:36] mask erode thread started for segment 2
[20:58:36] mask erode thread started for segment 3
[20:58:36] mask erode thread started for segment 4
[20:58:36] mask erode thread started for segment 5
[20:58:36] mask erode thread started for segment 6
[20:58:36] mask erode thread started for segment 7
[20:58:36] mask dilate thread started for segment 0
[20:58:36] mask dilate thread started for segment 1
[20:58:36] mask dilate thread started for segment 2
[20:58:36] mask dilate thread started for segment 3
[20:58:36] mask dilate thread started for segment 4
[20:58:36] mask dilate thread started for segment 5
[20:58:36] mask dilate thread started for segment 6
[20:58:36] mask dilate thread started for segment 7
[20:58:36] yadif thread started for segment 0
[20:58:36] yadif thread started for segment 1
[20:58:36] yadif thread started for segment 2
[20:58:36] yadif thread started for segment 3
[20:58:36] yadif thread started for segment 4
[20:58:36] yadif thread started for segment 5
[20:58:36] yadif thread started for segment 6
[20:58:36] yadif thread started for segment 7
[20:58:36] work: only 1 chapter, disabling chapter markers
[20:58:36] job configuration:
[20:58:36] * source
[20:58:36] + /Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/Anna Rosa/anna-rosa-full.mov
[20:58:36] + title 1, chapter(s) 1 to 1
[20:58:36] + container: mov,mp4,m4a,3gp,3g2,mj2
[20:58:36] + data rate: 33374 kbps
[20:58:36] * destination
[20:58:36] + /Users/tudor/Google Drive/馃實 NOI/Main website/03 - Assets/Screenshots/Tudor/_compressed/anna-rosa-full-hb.mp4
[20:58:36] + container: MPEG-4 (libavformat)
[20:58:36] + align initial A/V stream timestamps
[20:58:36] * video track
[20:58:36] + decoder: h264
[20:58:36] + bitrate 32497 kbps
[20:58:36] + filters
[20:58:36] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[20:58:36] + Decomb (mode=39)
[20:58:36] + Framerate Shaper (mode=2:rate=27000000/900000)
[20:58:36] + frame rate: 60.835 fps -> peak rate limited to 30.000 fps
[20:58:36] + Crop and Scale (width=1440:height=900:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:58:36] + source: 2880 * 1800, crop (0/0/0/0): 2880 * 1800, scale: 1440 * 900
[20:58:36] + Output geometry
[20:58:36] + storage dimensions: 1440 x 900
[20:58:36] + pixel aspect ratio: 1 : 1
[20:58:36] + display dimensions: 1440 x 900
[20:58:36] + encoder: H.264 (libx264)
[20:58:36] + preset: fast
[20:58:36] + profile: main
[20:58:36] + level: 4.0
[20:58:36] + quality: 22.00 (RF)
[20:58:36] + color profile: 1-1-1
[20:58:36] sync: expecting 1889 video frames
[20:58:36] encx264: min-keyint: 30, keyint: 300
[20:58:36] encx264: encoding at constant RF 22.000000
[20:58:36] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[20:58:36] sync: first pts video is 0
[20:58:37] sync: "Chapter 1" (1) at frame 27 time 74958
[20:59:12] reader: done. 1 scr changes
[20:59:13] work: average encoding speed for job is 51.567772 fps
[20:59:13] comb detect: heavy 39 | light 119 | uncombed 1731 | total 1889
[20:59:13] decomb: deinterlaced 39 | blended 119 | unfiltered 1731 | total 1889
[20:59:13] vfr: 955 frames output, 934 dropped and 0 duped for CFR/PFR
[20:59:13] vfr: lost time: 0 (0 frames)
[20:59:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:59:14] h264-decoder done: 1889 frames, 0 decoder errors
[20:59:14] sync: got 1889 frames, 1889 expected
[20:59:14] sync: framerate min 30.000 fps, max 60.852 fps, avg 59.257 fps
x264 [info]: frame I:7 Avg QP:13.77 size:110110
x264 [info]: frame P:354 Avg QP:19.56 size: 8721
x264 [info]: frame B:594 Avg QP:19.41 size: 473
x264 [info]: consecutive B-frames: 13.4% 8.2% 8.5% 69.9%
x264 [info]: mb I I16..4: 53.9% 0.0% 46.1%
x264 [info]: mb P I16..4: 3.4% 0.0% 2.5% P16..4: 11.2% 1.7% 2.0% 0.0% 0.0% skip:79.2%
x264 [info]: mb B I16..4: 0.5% 0.0% 0.1% B16..8: 2.3% 0.3% 0.0% direct: 0.8% skip:96.1% L0:49.3% L1:44.8% BI: 5.9%
x264 [info]: coded y,uvDC,uvAC intra: 38.5% 34.1% 15.6% inter: 2.0% 2.8% 0.3%
x264 [info]: i16 v,h,dc,p: 67% 17% 6% 9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 18% 18% 7% 7% 6% 7% 7% 7%
x264 [info]: i8c dc,h,v,p: 66% 16% 15% 2%
x264 [info]: Weighted P-Frames: Y:5.4% UV:1.4%
x264 [info]: ref P L0: 83.9% 16.1%
x264 [info]: ref B L0: 83.5% 16.5%
x264 [info]: ref B L1: 94.3% 5.7%
x264 [info]: kb/s:1038.76
[20:59:14] mux: track 0, 955 frames, 4138932 bytes, 1037.98 kbps, fifo 1024
[20:59:14] libhb: work result = 0
[20:59:14] macgui: QueueCore work done
[20:59:14] macgui: Queue Done, there are no more pending encodes
[20:59:14] macgui: QueueCore stopped preventing sleep
~
Please provide an input sample.
@cehoyos You can download a sample here https://www.dropbox.com/s/0t7j18x97r36qrd/anna-rosa-intro.mov?dl=0
Thanks!
As another info, if instead of doing just a Save in Quicktime I do an Export and then put the mov through Handbrake, the trim is respected, as expected.
Your sample seems to work. Do you have another to reproduce the issue?
If you export in QuickTime it will reencode it, and it won't need edit lists anymore.
We've not heard back in a while so we are closing this issue out. If you can provide the requested details or feedback we can re-open this issue.
Thanks
I'm having the same issue. It is super easy to reproduce in Mojave. Just do some screen recording, trim it before saving (clicking the preview at the bottom right of the the screen) and then encode it with HandBrake. In fact I use this all the time and the workaround is exporting it from Quicktime before sending it to HandBrake.
HandBrake Version 1.2.2 (2019022300)
macOS Mojave 10.14.4
Please provide an input sample.
Thanks for taking a look into this. Here you have the original capture (01_original.mov) and the encoded video with HandBrake (02_encoded.mp4): https://www.dropbox.com/sh/9neb7xae0uzahv2/AAAVNb9ewR_fZDTsZrI91CEea?dl=0
The encoded video starts earlier than the original.
@cehoyos I see the issue is still closed. Is my sample useful? Do you need something else?
Afaict, the sample you uploaded - 01_original.mov - contains an edit list. If the edit list is ignored, a very short subtitled scene is shown ("...You'll be one of them, sooner or later...") before a jump cut, the edit list requires that playback starts right after the jump cut (no subtitles shown).
Thanks for your response. I found out that some video players respect the edit list and other don't. As a user, I would expect Handbrake to follow the edits.
Should be fixed in the next nightly build
Nice one, thanks @cehoyos and @jstebbins.