Adding .srt subtiles to mp4-file

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.
Post Reply
idagroening
Posts: 1
Joined: Tue Aug 20, 2019 7:54 am

Adding .srt subtiles to mp4-file

Post by idagroening »

Description of problem or question:
My .srt subtitles are not showing although I "burn them in" on the video I uploadet (mp4-file).
I have tried following the guidelines and I have seen YouTube tutorials, and cannot understand what goes wrong in the process.
Can you help me?


HandBrake version (e.g., 1.0.0):
Handbrake 1.2.0



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
macOS Mojave 10.14.4

Code: Select all


[09:29:37] macgui: Handbrake Version: 1.2.0  (2018122200)
[09:29:37] hb_init: starting libhb thread
[09:29:37] hb_init: starting libhb thread
[09:44:44] macgui: trying to open a folder or file
[09:44:44] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[09:44:44] CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
[09:44:44]  - Intel microarchitecture Kaby Lake
[09:44:44]  - logical processor count: 4
[09:44:44] hb_scan: path=/Users/publicdiplomacy/Desktop/Video/Movie.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/publicdiplomacy/Desktop/Video/Movie.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[09:44:44] 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
[09:44:44] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/publicdiplomacy/Desktop/Video/Movie.mp4':
  Metadata:
    major_brand     : M4V 
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2019-08-19T07:59:50.000000Z
    date            : 2019-08-19T08:45:11+0200
    make            : Apple
  Duration: 00:00:43.35, start: 0.000000, bitrate: 7369 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2019-08-19T07:59:50.000000Z
      handler_name    : Core Media Audio
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 7267 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2019-08-19T07:59:50.000000Z
      handler_name    : Core Media Video
[09:44:44] scan: decoding previews for title 1
[09:44:44] scan: audio 0x0: aac, rate=44100Hz, bitrate=96331 Unknown (AAC LC) (1.0 ch)
[09:44:45] scan: 10 previews, 720x1280, 29.970 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[09:44:45] libhb: scan thread found 1 valid title(s)
[09:44:45] macgui: ScanCore scan done
[09:45:40] macgui: QueueCore prevented sleep
[09:45:40] macgui: QueueCore scanning specifically for title: 1
[09:45:40] CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
[09:45:40]  - Intel microarchitecture Kaby Lake
[09:45:40]  - logical processor count: 4
[09:45:40] hb_scan: path=/Users/publicdiplomacy/Desktop/Video/Movie.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/publicdiplomacy/Desktop/Video/Movie.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[09:45:40] 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
[09:45:40] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/publicdiplomacy/Desktop/Video/Movie.mp4':
  Metadata:
    major_brand     : M4V 
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2019-08-19T07:59:50.000000Z
    date            : 2019-08-19T08:45:11+0200
    make            : Apple
  Duration: 00:00:43.35, start: 0.000000, bitrate: 7369 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2019-08-19T07:59:50.000000Z
      handler_name    : Core Media Audio
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 7267 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2019-08-19T07:59:50.000000Z
      handler_name    : Core Media Video
[09:45:40] scan: decoding previews for title 1
[09:45:40] scan: audio 0x0: aac, rate=44100Hz, bitrate=96331 Unknown (AAC LC) (1.0 ch)
[09:45:40] scan: 10 previews, 720x1280, 29.970 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1
[09:45:40] libhb: scan thread found 1 valid title(s)
[09:45:41] macgui: QueueCore scan done
[09:45:41] 1 job(s) to process
[09:45:41] starting job
[09:45:41] macgui: QueueCore started encoding Ole med subs.mp4
[09:45:41] macgui: QueueCore with preset Fast 1080p30
[09:45:41] decomb filter thread started for segment 1
[09:45:41] decomb filter thread started for segment 0
[09:45:41] decomb filter thread started for segment 2
[09:45:41] decomb filter thread started for segment 3
[09:45:41] decomb check thread started for segment 0
[09:45:41] decomb check thread started for segment 1
[09:45:41] decomb check thread started for segment 2
[09:45:41] decomb check thread started for segment 3
[09:45:41] mask filter thread started for segment 0
[09:45:41] mask filter thread started for segment 1
[09:45:41] mask filter thread started for segment 2
[09:45:41] mask filter thread started for segment 3
[09:45:41] mask erode thread started for segment 0
[09:45:41] mask erode thread started for segment 1
[09:45:41] mask erode thread started for segment 2
[09:45:41] mask erode thread started for segment 3
[09:45:41] mask dilate thread started for segment 0
[09:45:41] mask dilate thread started for segment 2
[09:45:41] mask dilate thread started for segment 1
[09:45:41] mask dilate thread started for segment 3
[09:45:41] yadif thread started for segment 0
[09:45:41] yadif thread started for segment 1
[09:45:41] yadif thread started for segment 2
[09:45:41] yadif thread started for segment 3
[09:45:41] [ass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.7.2 (COMPLEX)
[09:45:41] [ass] Using font provider coretext
[09:45:41] work: only 1 chapter, disabling chapter markers
[09:45:41] job configuration:
[09:45:41]  * source
[09:45:41]    + /Users/publicdiplomacy/Desktop/Video/Movie.mp4
[09:45:41]    + title 1, chapter(s) 1 to 1
[09:45:41]    + container: mov,mp4,m4a,3gp,3g2,mj2
[09:45:41]    + data rate: 7369 kbps
[09:45:41]  * destination
[09:45:41]    + /Users/publicdiplomacy/Desktop/Ida Videos/Ole med subs.mp4
[09:45:41]    + container: MPEG-4 (libavformat)
[09:45:41]      + align initial A/V stream timestamps
[09:45:41]  * video track
[09:45:41]    + decoder: h264
[09:45:41]      + bitrate 7267 kbps
[09:45:41]    + filters
[09:45:41]      + 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)
[09:45:41]      + Decomb (mode=39)
[09:45:41]      + Framerate Shaper (mode=2:rate=27000000/900000)
[09:45:41]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[09:45:41]      + Subtitle renderer ()
[09:45:41]      + Crop and Scale (width=720:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[09:45:41]        + source: 720 * 1280, crop (0/0/0/0): 720 * 1280, scale: 720 * 1080
[09:45:41]    + Output geometry
[09:45:41]      + storage dimensions: 720 x 1080
[09:45:41]      + pixel aspect ratio: 27 : 32
[09:45:41]      + display dimensions: 607 x 1080
[09:45:41]    + encoder: H.264 (libx264)
[09:45:41]      + preset:  fast
[09:45:41]      + profile: main
[09:45:41]      + level:   4.0
[09:45:41]      + quality: 22.00 (RF)
[09:45:41]      + color profile: 1-1-1
[09:45:41]  * subtitle track 1, English [SRT] (track 0, id 0xff, Text) -> Render/Burn-in, offset: 0, charset: UTF-8
[09:45:41]  * audio track 1
[09:45:41]    + decoder: Unknown (AAC LC) (1.0 ch) (track 1, id 0x0)
[09:45:41]      + bitrate: 96 kbps, samplerate: 44100 Hz
[09:45:41]    + mixdown: Mono
[09:45:41]    + dither: triangular
[09:45:41]    + encoder: AAC (Apple AudioToolbox)
[09:45:41]      + bitrate: 160 kbps, samplerate: 44100 Hz
[09:45:41] sync: expecting 1299 video frames
[09:45:41] encx264: min-keyint: 30, keyint: 300
[09:45:41] encx264: encoding at constant RF 22.000000
[09:45:41] 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=27/32
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
[09:45:41] sync: first pts video is 0
[09:45:41] sync: "Chapter 1" (1) at frame 1 time 0
[09:45:41] sync: first pts audio 0x0 is 0
[09:45:41] sync: first pts subtitle 0xff is 0
[09:45:41] sync: subtitle 0xff duration <= 0, PTS 0
[09:46:14] reader: done. 1 scr changes
[09:46:17] work: average encoding speed for job is 37.209301 fps
[09:46:17] comb detect: heavy 524 | light 296 | uncombed 479 | total 1299
[09:46:17] decomb: deinterlaced 524 | blended 296 | unfiltered 479 | total 1299
[09:46:17] vfr: 1299 frames output, 0 dropped and 0 duped for CFR/PFR
[09:46:17] vfr: lost time: 0 (0 frames)
[09:46:17] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:46:17] aac-decoder done: 1867 frames, 0 decoder errors
[09:46:17] h264-decoder done: 1299 frames, 0 decoder errors
[09:46:17] sync: got 1299 frames, 1299 expected
[09:46:17] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:11    Avg QP:21.20  size: 44195
x264 [info]: frame P:444   Avg QP:23.42  size: 23023
x264 [info]: frame B:844   Avg QP:25.36  size:  7571
x264 [info]: consecutive B-frames:  5.5% 22.6%  3.2% 68.7%
x264 [info]: mb I  I16..4: 37.3%  0.0% 62.7%
x264 [info]: mb P  I16..4: 13.6%  0.0%  9.4%  P16..4: 39.8% 19.4%  8.6%  0.0%  0.0%    skip: 9.2%
x264 [info]: mb B  I16..4:  5.5%  0.0%  0.9%  B16..8: 39.6% 13.0%  0.8%  direct:10.7%  skip:29.4%  L0:40.4% L1:50.5% BI: 9.0%
x264 [info]: coded y,uvDC,uvAC intra: 31.3% 54.1% 11.4% inter: 15.9% 23.0% 0.7%
x264 [info]: i16 v,h,dc,p: 30% 30% 17% 24%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 25% 20%  5%  6%  5%  7%  4%  5%
x264 [info]: i8c dc,h,v,p: 57% 20% 18%  4%
x264 [info]: Weighted P-Frames: Y:4.5% UV:1.8%
x264 [info]: ref P L0: 82.6% 17.4%
x264 [info]: ref B L0: 90.2%  9.8%
x264 [info]: ref B L1: 97.4%  2.6%
x264 [info]: kb/s:3155.81
[09:46:17] mux: track 0, 1299 frames, 17097636 bytes, 3150.91 kbps, fifo 1024
[09:46:17] mux: track 1, 1870 frames, 891704 bytes, 164.33 kbps, fifo 2048
[09:46:17] libhb: work result = 0
[09:46:18] macgui: QueueCore work done
[09:46:18] macgui: Queue Done, there are no more pending encodes
[09:46:18] macgui: QueueCore stopped preventing sleep

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

Re: Adding .srt subtiles to mp4-file

Post by Woodstock »

There seems to be some problems with your subtitle track, with negative durations.
Post Reply