Page 1 of 1

Handbrake encodes won't play in gmail

Posted: Wed Aug 21, 2019 4:53 pm
by billynoah
Occasionally I do a screen capture using Quicktime which results in a "mov" container. I then transcode it using handbrake to an mp4 but for the life of me I cannot get this file to play in gmail. Always results in "Whoops! There was a problem playing this video, blah blah blah".

I've tried switching from H.264 to MPEG-4 to no avail. I've tried multiple presets including "Gmail Large 3 Minutes 720p30". We are talking about a 1 - 2MB, 30 second long screen capture, nothing large. The videos play fine through VLC or normal desktop video player, but for convenience, I'd like the recipient to be able to view them in gmail.

Any tips on what might be going wrong here and what settings I could use to satisfy gmail?

Re: Handbrake encodes won't play in gmail

Posted: Wed Aug 21, 2019 6:15 pm
by BradleyS
The main purpose of the Gmail presets is to ensure the file size is under 25 MB for a given duration. Perhaps Gmail doesn't like odd frame rates created by screen captures; I don't believe I tested this. On the video tab, try changing the frame rate setting from peak to constant.

Re: Handbrake encodes won't play in gmail

Posted: Wed Aug 21, 2019 7:20 pm
by mduell
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.

At this point we can't even be sure what you actually did.

Re: Handbrake encodes won't play in gmail

Posted: Thu Aug 22, 2019 3:40 pm
by billynoah
@BradleyS - Thanks. I tried constant frame rate but it did not help.

@mduell - I thought I was pretty clear and since I'm not really having a problem with handbrake I didn't think it would be relevant. However, here you go:
[11:37:31] macgui: Handbrake Version: 1.0.7 (2017040900)
[11:37:31] hb_init: starting libhb thread
[11:37:31] hb_init: starting libhb thread
[11:37:32] macgui: trying to open a folder or file
[11:37:32] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[11:37:32] CPU: Intel(R) Xeon(R) CPU E5462 @ 2.80GHz
[11:37:32] - logical processor count: 8
[11:37:32] hb_scan: path=/Users/johndoe/Desktop/test-video.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Users/johndoe/Desktop/test-video.mp4
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[11:37:32] 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
[11:37:32] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/johndoe/Desktop/test-video.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2019-08-22 15:35:31
encoder : HandBrake 1.0.7 2017040900
Duration: 00:00:32.30, start: 0.000000, bitrate: 63 kb/s
Stream #0:0(und): Video: h264 (Main) [avc1 / 0x31637661]
yuv420p, tv, bt709/bt709/bt709
1280x720 [PAR 9:10 DAR 8:5], 59 kb/s, PAR 9:10 DAR 8:5
30 fps, 90k tbn (default)
Metadata:
creation_time : 2019-08-22 15:35:31
handler_name : VideoHandler
[11:37:32] scan: decoding previews for title 1
[11:37:32] scan: 10 previews, 1280x720, 30.000 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 9:10
[11:37:32] libhb: scan thread found 1 valid title(s)
[11:37:32] macgui: ScanCore scan done
[11:37:55] macgui: QueueCore scanning specifically for title: 1
[11:37:55] CPU: Intel(R) Xeon(R) CPU E5462 @ 2.80GHz
[11:37:55] - logical processor count: 8
[11:37:55] hb_scan: path=/Users/johndoe/Desktop/test-video.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Users/johndoe/Desktop/test-video.mp4
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[11:37:55] 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
[11:37:55] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/johndoe/Desktop/test-video.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2019-08-22 15:35:31
encoder : HandBrake 1.0.7 2017040900
Duration: 00:00:32.30, start: 0.000000, bitrate: 63 kb/s
Stream #0:0(und): Video: h264 (Main) [avc1 / 0x31637661]
yuv420p, tv, bt709/bt709/bt709
1280x720 [PAR 9:10 DAR 8:5], 59 kb/s, PAR 9:10 DAR 8:5
30 fps, 90k tbn (default)
Metadata:
creation_time : 2019-08-22 15:35:31
handler_name : VideoHandler
[11:37:55] scan: decoding previews for title 1
[11:37:55] scan: 10 previews, 1280x720, 30.000 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 9:10
[11:37:55] libhb: scan thread found 1 valid title(s)
[11:37:55] macgui: QueueCore scan done
[11:37:55] macgui: QueueCore started encoding fail2ban-whitelist-a.mp4
[11:37:55] macgui: QueueCore with preset Fast 1080p30
[11:37:55] 1 job(s) to process
[11:37:55] starting job
[11:37:55] decomb filter thread started for segment 0
[11:37:55] decomb filter thread started for segment 1
[11:37:55] decomb filter thread started for segment 3
[11:37:55] decomb filter thread started for segment 2
[11:37:55] decomb filter thread started for segment 4
[11:37:55] decomb filter thread started for segment 5
[11:37:55] decomb filter thread started for segment 6
[11:37:55] decomb filter thread started for segment 7
[11:37:55] decomb check thread started for segment 0
[11:37:55] decomb check thread started for segment 1
[11:37:55] decomb check thread started for segment 2
[11:37:55] decomb check thread started for segment 3
[11:37:55] decomb check thread started for segment 4
[11:37:55] decomb check thread started for segment 5
[11:37:55] decomb check thread started for segment 6
[11:37:55] decomb check thread started for segment 7
[11:37:55] mask filter thread started for segment 0
[11:37:55] mask filter thread started for segment 1
[11:37:55] mask filter thread started for segment 2
[11:37:55] mask filter thread started for segment 3
[11:37:55] mask filter thread started for segment 4
[11:37:55] mask filter thread started for segment 5
[11:37:55] mask filter thread started for segment 6
[11:37:55] mask filter thread started for segment 7
[11:37:55] mask erode thread started for segment 0
[11:37:55] mask erode thread started for segment 1
[11:37:55] mask erode thread started for segment 2
[11:37:55] mask erode thread started for segment 3
[11:37:55] mask erode thread started for segment 4
[11:37:55] mask erode thread started for segment 5
[11:37:55] mask erode thread started for segment 6
[11:37:55] mask erode thread started for segment 7
[11:37:55] mask dilate thread started for segment 0
[11:37:55] mask dilate thread started for segment 1
[11:37:55] mask dilate thread started for segment 2
[11:37:55] mask dilate thread started for segment 3
[11:37:55] mask dilate thread started for segment 4
[11:37:55] mask dilate thread started for segment 5
[11:37:55] mask dilate thread started for segment 6
[11:37:55] mask dilate thread started for segment 7
[11:37:55] yadif thread started for segment 0
[11:37:55] yadif thread started for segment 1
[11:37:55] yadif thread started for segment 2
[11:37:55] yadif thread started for segment 3
[11:37:55] yadif thread started for segment 4
[11:37:55] yadif thread started for segment 5
[11:37:55] yadif thread started for segment 6
[11:37:55] yadif thread started for segment 7
[11:37:55] work: only 1 chapter, disabling chapter markers
[11:37:55] job configuration:
[11:37:55] * source
[11:37:55] + /Users/johndoe/Desktop/test-video.mp4
[11:37:55] + title 1, chapter(s) 1 to 1
[11:37:55] + container: mov,mp4,m4a,3gp,3g2,mj2
[11:37:55] + data rate: 63 kbps
[11:37:55] * destination
[11:37:55] + /Users/johndoe/Desktop/test-video-a.mp4
[11:37:55] + container: MPEG-4 (libavformat)
[11:37:55] * video track
[11:37:55] + decoder: h264
[11:37:55] + bitrate 59 kbps
[11:37:55] + filters
[11:37:55] + 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)
[11:37:55] + Decomb (mode=39)
[11:37:55] + Framerate Shaper (mode=2:rate=27000000/900000)
[11:37:55] + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[11:37:55] + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:37:55] + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[11:37:55] + Output geometry
[11:37:55] + storage dimensions: 1280 x 720
[11:37:55] + pixel aspect ratio: 9 : 10
[11:37:55] + display dimensions: 1152 x 720
[11:37:55] + encoder: H.264 (libx264)
[11:37:55] + preset: fast
[11:37:55] + profile: main
[11:37:55] + level: 4.0
[11:37:55] + quality: 22.00 (RF)
[11:37:55] sync: expecting 969 video frames
[11:37:55] encx264: min-keyint: 30, keyint: 300
[11:37:55] encx264: encoding at constant RF 22.000000
[11:37:55] encx264: unparsed options: level=4.0:vbv-maxrate=20000:ref=2:8x8dct=0:weightp=1:rc-lookahead=30:subme=6:vbv-bufsize=25000
x264 [info]: using SAR=9/10
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[11:37:55] sync: first pts video is 0
[11:37:55] sync: "Chapter 1" (1) at frame 1 time 0
[11:38:03] reader: done. 1 scr changes
[11:38:04] work: average encoding speed for job is 114.285713 fps
[11:38:04] comb detect: heavy 0 | light 0 | uncombed 969 | total 969
[11:38:04] decomb: deinterlaced 0 | blended 0 | unfiltered 969 | total 969
[11:38:04] vfr: 969 frames output, 0 dropped and 0 duped for CFR/PFR
[11:38:04] vfr: lost time: 0 (0 frames)
[11:38:04] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:38:04] h264-decoder done: 969 frames, 0 decoder errors
[11:38:04] sync: got 969 frames, 969 expected
[11:38:04] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
x264 [info]: frame I:6 Avg QP: 9.14 size: 36068
x264 [info]: frame P:245 Avg QP:23.03 size: 107
x264 [info]: frame B:718 Avg QP:31.34 size: 40
x264 [info]: consecutive B-frames: 0.8% 0.4% 2.2% 96.6%
x264 [info]: mb I I16..4: 86.4% 0.0% 13.6%
x264 [info]: mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 0.0% 0.0% skip:99.8%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:43.1% L1:56.5% BI: 0.4%
x264 [info]: coded y,uvDC,uvAC intra: 11.6% 8.2% 7.9% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 88% 12% 0% 0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 23% 13% 3% 4% 4% 5% 4% 6%
x264 [info]: i8c dc,h,v,p: 91% 6% 3% 1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 91.6% 8.4%
x264 [info]: ref B L0: 92.0% 8.0%
x264 [info]: ref B L1: 95.6% 4.4%
x264 [info]: kb/s:67.26
[11:38:04] mux: track 0, 969 frames, 271324 bytes, 67.13 kbps, fifo 1024
[11:38:04] libhb: work result = 0
[11:38:04] macgui: QueueCore work done
[11:38:04] macgui: Queue Done, there are no more pending encodes

Re: Handbrake encodes won't play in gmail

Posted: Fri Aug 23, 2019 12:49 am
by mduell
Try the current release, not some 2+ year old stuff, with web optimized on.

Re: Handbrake encodes won't play in gmail

Posted: Fri Aug 23, 2019 3:05 am
by billynoah
@mduell - Thanks. I downloaded latest version 1.2.2 (2019022300) and tried with web optimized but didn't make any difference. I also tried an assortment of presets including constant framerate, mpeg-4 encoding. No matter what I do gmail doesn't seem to want to play my video. I only get response like in the screenshot here:

http://zuma-design.com/shared/gmail-video-issue.png

I realize this isn't a gmail support forum - was just hoping maybe someone here had encountered this before and had a magic settings recipe that would satisfy whatever special needs gmail has for playing videos.

Re: Handbrake encodes won't play in gmail

Posted: Fri Aug 23, 2019 4:52 am
by BradleyS
Yeah, not sure here. Again, the Gmail presets were designed to make sure your video fits in Gmails maximum file size limit, 25 MB. Why the embedded player won't play them is anyone's guess, but at least you can send them.

Re: Handbrake encodes won't play in gmail

Posted: Fri Aug 23, 2019 8:18 am
by video.baba
Can I suggest you try again using the new version and actually post an encode log using the gmail preset. Don't change any settings.