Subtitles Not Coming through On Live Preview

HandBrake for Windows 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
Kyioto
Posts: 9
Joined: Mon Sep 14, 2020 5:24 pm

Subtitles Not Coming through On Live Preview

Post by Kyioto »

Description of problem or question:

I have an mkv with Foreign and English audio in the main audio track. During the foreign audio portion the English Subtitles should display but not when then English voices are heard. The source subtitle embedded in the mkv is a PGS English subtitle. I was trying to use the Live Preview feature to test my settings to see if the subtitles were right however the subtitles will not appear in the encoded,mp4 file no matter what chapter I choose to start from.

Steps to reproduce the problem (If Applicable):

1. Summary > Format :MP4
2. Set dimensions to 1920 X 804
3. Anamorphic – None; Modulus = 2 Cropping: Automatic
4. Filters: All Off – 0 Rotate
5. Video Codec: H.264 (X264); Framerate: Same as Source; Constant Quality: 22;
Constant Frame Framerate; 2 pass encoding & Turbo First pass checked
Encoder Turne: Film; Fast Decode unchecked; Encoder Profile: High; Encoder Level: 4.1
Advanced options: ref=5:bframes=5
8. Audio: English (5.1 DTS 1536) Codec Mixed down to AAC Bitrate 1536 5.1 channels sample rate auto DRC & Gain both 0
9. Subtitles: 1. English (PGS) ; Forced Only Checked
10. Chapters: Default
11. Choose Live Preview
12. Choose any length for Live Preview
13. Live Preview finishes then plays with no subtitles




HandBrake version (e.g., 1.0.0):


1.3.3

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


Windows 10 Pro OS Build 19041.508

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD Phenom(tm) II X6 1090T Processor
Ram: 8190 MB, 
GPU Information:
  NVIDIA GeForce GTX 570 - 23.21.13.9135
  Citrix Indirect Display Adapter - 12.40.44.247
Screen: 1920x1080
Temp Dir: C:\Users\T\AppData\Local\Temp\
Install Dir: G:\Program Files\HandBrake
Data Dir: C:\Users\T\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[11:51:19] hb_init: starting libhb thread
[11:51:19] Starting work at: Sun Sep 20 11:51:19 2020
[11:51:19] 1 job(s) to process
[11:51:19] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 1536,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Surround 5.1",
        "Track": 3,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "I:\\Videos for Samsung TV\\Movies\\Michiel De Ruyter_preview.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "138",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "138",
          "height": "804",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "preview",
      "Start": 3,
      "End": 8100000,
      "SeekPoints": 10
    },
    "Title": 1,
    "Path": "E:\\Raw MKV Files\\Michiel de Ruyter_t97.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": true,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=5:bframes=5",
    "Preset": "fast",
    "Profile": "high",
    "Quality": 22.0,
    "Tune": "film",
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:51:19] CPU: AMD Phenom(tm) II X6 1090T Processor
[11:51:19]  - logical processor count: 6
[11:51:19] Intel Quick Sync Video support: no
[11:51:19] hb_scan: path=E:\Raw MKV Files\Michiel de Ruyter_t97.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Raw MKV Files\Michiel de Ruyter_t97.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\Raw MKV Files\Michiel de Ruyter_t97.mkv\) failed
[11:51:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.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:51:19] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Raw MKV Files\Michiel de Ruyter_t97.mkv':
  Metadata:
    title           : Michiel de Ruyter
    encoder         : libmakemkv v1.15.2 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2020-09-18T22:11:23.000000Z
  Duration: 02:32:00.75, start: 0.000000, bitrate: 22050 kb/s
    Chapter #0:0: start 0.000000, end 996.958333
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 996.958333, end 2027.125000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 2027.125000, end 3037.125000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 3037.125000, end 3666.916667
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 3666.916667, end 4866.666667
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 4866.666667, end 5965.833333
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 5965.833333, end 6911.708333
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 6911.708333, end 7814.541667
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 7814.541667, end 9120.750000
    Metadata:
      title           : Chapter 09
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc
    Metadata:
      BPS-eng         : 16902141
      DURATION-eng    : 02:32:00.750000000
      NUMBER_OF_FRAMES-eng: 218898
      NUMBER_OF_BYTES-eng: 19270025866
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 448000
      DURATION-eng    : 02:32:00.704000000
      NUMBER_OF_FRAMES-eng: 285022
      NUMBER_OF_BYTES-eng: 510759424
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 448000
      DURATION-eng    : 02:32:00.512000000
      NUMBER_OF_FRAMES-eng: 285016
      NUMBER_OF_BYTES-eng: 510748672
      SOURCE_ID-eng   : 001102
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(nld): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s16p
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 2717790
      DURATION-eng    : 02:32:00.714666666
      NUMBER_OF_FRAMES-eng: 855067
      NUMBER_OF_BYTES-eng: 3098523204
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(nld): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 02:32:00.714666666
      NUMBER_OF_FRAMES-eng: 855067
      NUMBER_OF_BYTES-eng: 1720394804
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 21611
      DURATION-eng    : 02:20:47.354166666
      NUMBER_OF_FRAMES-eng: 1921
      NUMBER_OF_BYTES-eng: 22820343
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-09-18 22:11:23
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 640x360, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
[11:51:19] scan: decoding previews for title 1
[11:51:19] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (2.0 ch) (448 kbps)
[11:51:19] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (2.0 ch) (448 kbps)
[11:51:19] scan: audio 0x3: dca, rate=48000Hz, bitrate=1 Nederlands (DTS-HD MA) (7.1 ch)
[11:51:19] scan: audio 0x4: dca, rate=48000Hz, bitrate=1536000 Nederlands (DTS) (5.1 ch) (1536 kbps)
[11:51:20] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[11:51:20] scan: supported video decoders: avcodec qsv
[11:51:20] libhb: scan thread found 1 valid title(s)
[11:51:20] Starting Task: Encoding Pass
[11:51:20] Subtitle pass-thru requested and input track is not compatible with container.  Changing track 0 to burned-in subtitle.
[11:51:20] job configuration:
[11:51:20]  * source
[11:51:20]    + E:\Raw MKV Files\Michiel de Ruyter_t97.mkv
[11:51:20]    + title 1, start 00:00:0.00 stop 00:01:30.00
[11:51:20]    + container: matroska,webm
[11:51:20]    + data rate: 22050 kbps
[11:51:20]  * destination
[11:51:20]    + I:\Videos for Samsung TV\Movies\Michiel De Ruyter_preview.mp4
[11:51:20]    + container: MPEG-4 (libavformat)
[11:51:20]      + align initial A/V stream timestamps
[11:51:20]      + chapter markers
[11:51:20]  * video track
[11:51:20]    + decoder: h264
[11:51:20]    + filters
[11:51:20]      + Framerate Shaper (mode=1)
[11:51:20]        + frame rate: 24.000 fps -> constant 24.000 fps
[11:51:20]      + Subtitle renderer ()
[11:51:20]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[11:51:20]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[11:51:20]    + Output geometry
[11:51:20]      + storage dimensions: 1920 x 804
[11:51:20]      + pixel aspect ratio: 1 : 1
[11:51:20]      + display dimensions: 1920 x 804
[11:51:20]    + encoder: H.264 (libx264)
[11:51:20]      + preset:  fast
[11:51:20]      + tune:    film
[11:51:20]      + options: ref=5:bframes=5
[11:51:20]      + profile: high
[11:51:20]      + level:   4.1
[11:51:20]      + quality: 22.00 (RF)
[11:51:20]      + color profile: 1-1-1
[11:51:20]  * subtitle track 1, English [PGS] (track 0, id 0x5, Picture) -> Render/Burn-in, Forced Only
[11:51:20]  * audio track 1
[11:51:20]    + name: Surround 5.1
[11:51:20]    + decoder: Nederlands (DTS) (5.1 ch) (1536 kbps) (track 4, id 0x4)
[11:51:20]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:51:20]    + mixdown: 5.1 Channels
[11:51:20]    + dither: none
[11:51:20]    + encoder: AAC (libavcodec)
[11:51:20]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:51:20] sync: expecting 2184 video frames
[11:51:20] encx264: min-keyint: 24, keyint: 240
[11:51:20] encx264: encoding at constant RF 22.000000
[11:51:20] encx264: unparsed options: ref=5:bframes=5:level=4.1:deblock=-1,-1:weightp=1:subme=6:psy-rd=1,0.15:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[11:51:20] sync: first pts video is 0
[11:51:20] sync: "Chapter 2" (2) at frame 1 time 0
[11:51:20] sync: first pts audio 0x4 is 0
[11:52:58] sync: reached video pts 8100000, exiting early
[11:52:58] sync: reached audio 0x4 pts 8100660, exiting early
[11:53:02] work: average encoding speed for job is 22.034737 fps
[11:53:02] vfr: 2160 frames output, 0 dropped and 0 duped for CFR/PFR
[11:53:02] vfr: lost time: 0 (0 frames)
[11:53:02] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:53:02] dca-decoder done: 10702 frames, 0 decoder errors
[11:53:02] h264-decoder done: 2727 frames, 0 decoder errors
[11:53:02] sync: got 2160 frames, 2184 expected
[11:53:02] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
x264 [info]: frame I:19    Avg QP:18.63  size:112264
x264 [info]: frame P:392   Avg QP:21.75  size: 36484
x264 [info]: frame B:1749  Avg QP:23.88  size: 10618
x264 [info]: consecutive B-frames:  1.8%  0.3%  1.2%  3.7%  8.6% 84.4%
x264 [info]: mb I  I16..4: 13.8% 69.5% 16.7%
x264 [info]: mb P  I16..4:  5.5% 13.2%  1.8%  P16..4: 36.0% 13.9%  9.7%  0.0%  0.0%    skip:19.8%
x264 [info]: mb B  I16..4:  4.1%  3.8%  0.4%  B16..8: 23.5%  5.2%  0.4%  direct:14.8%  skip:47.7%  L0:43.3% L1:45.8% BI:10.9%
x264 [info]: 8x8 transform intra:53.6% inter:67.7%
x264 [info]: coded y,uvDC,uvAC intra: 41.9% 58.5% 17.2% inter: 12.7% 18.8% 0.3%
x264 [info]: i16 v,h,dc,p: 57% 16% 13% 13%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 12% 25%  3%  6%  7%  5%  6%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 13% 13%  4%  9%  8%  6%  6%  4%
x264 [info]: i8c dc,h,v,p: 54% 13% 29%  4%
x264 [info]: Weighted P-Frames: Y:1.8% UV:0.0%
x264 [info]: ref P L0: 66.5% 20.1%  7.6%  5.8%  0.1%
x264 [info]: ref B L0: 83.2% 12.4%  3.2%  1.2%
x264 [info]: ref B L1: 97.0%  3.0%
x264 [info]: kb/s:3111.63
[11:53:03] mux: track 0, 2160 frames, 35005006 bytes, 3110.12 kbps, fifo 512
[11:53:03] mux: track 1, 4220 frames, 11867772 bytes, 1054.42 kbps, fifo 2048
[11:53:03] Finished work at: Sun Sep 20 11:53:03 2020
[11:53:03] libhb: work result = 0

# Encode Completed ...


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

Re: Subtitles Not Coming through On Live Preview

Post by Woodstock »

Preview does nothing with subtitles. Pick a short section where you know there is audio that should and should not be subtitled, and encode that.

Or, my method is to play the source in VLC, while selecting available subtitles to find the correct set and the order I want them in, then using that for selecting the tracks in handbrake.
Kyioto
Posts: 9
Joined: Mon Sep 14, 2020 5:24 pm

Re: Subtitles Not Coming through On Live Preview

Post by Kyioto »

I tried encoding a single chapter where this happens and the resulting MP4 when played in VLC did not have a recognizable subtitle track to choose from.
Woodstock
Veteran User
Posts: 4622
Joined: Tue Aug 27, 2013 6:39 am

Re: Subtitles Not Coming through On Live Preview

Post by Woodstock »

If the video is anything like standard BD sources, this won't work:
[11:51:20] * subtitle track 1, English [PGS] (track 0, id 0x5, Picture) -> Render/Burn-in, Forced Only
You can't put PGS subtitles into an MP4, which is why they must be burned in, but it is not often that any subtitles on a BD would be tagged as "forced". Those are usually in a separate track.

I suggest you try Foreign Audio Scan (standard settings, including "Forced only" checked), which will choose the track based on the number of subtitles, rather than flags.

Personally, I always manually select subtitle tracks, after viewing the source in VLC to find which one(s) I want.
Post Reply