VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

Subtitle (VOBSUB) encoded "Only Forced" does not show in player

Open mpek opened this issue 3 years ago • 6 comments

Problem Description

Tried to play encoded file with VLC 3.0.18 and MPC-HC 1.9.24 When recognized it does not show up, I've manually chosen that forced subtitle track in those players, scrolled to position and nothing showed. Tried more than once. With that forced subtitle, it should show a subtitle at four different positions. When changing to other subtitles while playing, they show up.

This is how I set subtitles in VidCoder for that title: https://i.imgur.com/WpR4CO9.png

P.S.: When I chose to encode "standard" AND "forced" with that forced subtitle, it plays just fine.

What version of VidCoder are you running?

8.13

Encode Log

# VidCoder Beta 8.13
# Starting job 1/1
#   Source path: M:\Serien\_Test\Part 1.mkv
#   Destination path: C:\Users\myuser\Videos\VidCoder Export\Part 1.mkv
#   Title: 1
#   Range: All
#   Preset: 2GB MKV DVD2HD H265-NVEnc DeInterlace lapsharp-medium audio-copy
# Worker ready: Pipe 'VidCoderWorker.e3adad0d-59ee-4322-b404-33b7a1497808' is open
# Connecting to process 2312 on pipe VidCoderWorker.e3adad0d-59ee-4322-b404-33b7a1497808
[14:35:42] CPU: AMD Ryzen 9 5900X 12-Core Processor
[14:35:42]  - logical processor count: 24
[14:35:42] Intel Quick Sync Video support: no
[14:35:42] hb_scan: path=M:\Serien\_Test\Part 1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image M:\Serien\_Test\Part 1.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[14:35:42] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[14:35:42] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'M:\Serien\_Test\Part 1.mkv':
  Metadata:
    encoder         : libmakemkv v1.15.0 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2020-04-22T08:11:54.000000Z
    TITLE           : Part 1
  Duration: 00:45:15.00, start: 0.000000, bitrate: 7763 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 662.160000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 662.160000, end 1583.560000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 1583.560000, end 2129.120000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 2129.120000, end 2715.000000
      Metadata:
        title           : Chapter 04
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1k tbn
    Metadata:
      BPS-eng         : 7362325
      DURATION-eng    : 00:45:15.000000000
      NUMBER_OF_BYTES-eng: 2498589188
      NUMBER_OF_FRAMES-eng: 67875
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:45:14.848000000
      NUMBER_OF_BYTES-eng: 65156352
      NUMBER_OF_FRAMES-eng: 84839
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
  Stream #0:2(ger): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:45:14.848000000
      NUMBER_OF_BYTES-eng: 65156352
      NUMBER_OF_FRAMES-eng: 84839
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
  Stream #0:3(eng): Subtitle: dvd_subtitle, 720x576 (default)
    Metadata:
      BPS-eng         : 5960
      DURATION-eng    : 00:44:37.312888888
      NUMBER_OF_BYTES-eng: 1994728
      NUMBER_OF_FRAMES-eng: 516
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
  Stream #0:4(ger): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5710
      DURATION-eng    : 00:44:23.432888888
      NUMBER_OF_BYTES-eng: 1901204
      NUMBER_OF_FRAMES-eng: 497
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
  Stream #0:5(ger): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 53
      DURATION-eng    : 00:28:50.948800000
      NUMBER_OF_BYTES-eng: 11632
      NUMBER_OF_FRAMES-eng: 4
      SOURCE_ID-eng   : 0122BD
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-22 08:11:54
[14:35:42] scan: decoding previews for title 1
[14:35:42] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[14:35:42] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 Deutsch (AC3) (2.0 ch) (192 kbps)
[14:35:42] scan: 10 previews, 720x576, 25.000 fps, autocrop = 4/4/0/0, aspect 4:3, PAR 16:15, color profile: 5-1-6, chroma location: left
[14:35:42] scan: supported video decoders: avcodec nvdec
[14:35:43] libhb: scan thread found 1 valid title(s)
Calculating bitrate - Title length: 2715 seconds
Calculating bitrate - Available bytes: 1887436800
Calculating bitrate - Output framerate: 25
Calculating bitrate - Container overhead: 407250 bytes
Calculating bitrate - Audio track 1 - Encoder: copy
Calculating bitrate - Audio track 1 - Fallback track for auto-passthrough has 160 bytes/second
Calculating bitrate - Audio track 1 - Audio data is 434400 bytes
Calculating bitrate - Audio track 1 - Overhead is 187 bytes
Calculating bitrate - Audio track 2 - Encoder: copy
Calculating bitrate - Audio track 2 - Fallback track for auto-passthrough has 160 bytes/second
Calculating bitrate - Audio track 2 - Audio data is 434400 bytes
Calculating bitrate - Audio track 2 - Overhead is 187 bytes
Calculating bitrate - Audio size: 869174 bytes
Calculating bitrate - Available bytes minus container and audio: 1886160376
Calculating bitrate - Bitrate result (kbps): 5557
[14:35:43] Starting work at: Wed Dec 28 14:35:43 2022
[14:35:43] 1 job(s) to process
[14:35:43] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Stereo",
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:flac",
      "copy:opus"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\myuser\\Videos\\VidCoder Export\\Part 1.part.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "3"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "1"
        }
      },
      {
        "ID": 15,
        "Settings": {
          "cb-kernel": "isolap",
          "cb-strength": 0.20000000000000001,
          "y-kernel": "isolap",
          "y-strength": 0.20000000000000001
        }
      },
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "4",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "4",
          "height": "720",
          "width": "974"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Name": "Part 1"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 4
    },
    "Title": 1,
    "Path": "M:\\Serien\\_Test\\Part 1.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": true,
        "ID": 3,
        "Offset": 0,
        "Track": 2,
        "Name": "Forced"
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "nvenc_h265",
    "Level": "auto",
    "Bitrate": 5557,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "rc-lookahead=10",
    "Preset": "medium",
    "Profile": "auto",
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[14:35:43] Starting Task: Encoding Pass
[14:35:43] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP2, MP3, FLAC, Opus
[14:35:43] Auto Passthru: fallback is AAC (avcodec)
[14:35:43] Auto Passthru: using AC3 Passthru for track 1
[14:35:43] Auto Passthru: using AC3 Passthru for track 2
[14:35:43] job configuration:
[14:35:43]  * source
[14:35:43]    + M:\Serien\_Test\Part 1.mkv
[14:35:43]    + title 1, chapter(s) 1 to 4
[14:35:43]    + container: matroska,webm
[14:35:43]    + data rate: 7763 kbps
[14:35:43]  * destination
[14:35:43]    + C:\Users\myuser\Videos\VidCoder Export\Part 1.part.mkv
[14:35:43]    + container: Matroska (libavformat)
[14:35:43]      + chapter markers
[14:35:43]  * video track
[14:35:43]    + decoder: mpeg2video 8-bit (yuv420p)
[14:35:43]    + filters
[14:35:43]      + 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)
[14:35:43]      + Deinterlace (mode=35)
[14:35:43]      + Framerate Shaper (mode=1)
[14:35:43]        + frame rate: 25.000 fps -> constant 25.000 fps
[14:35:43]      + Crop and Scale (width=974:height=720:crop-top=4:crop-bottom=4:crop-left=0:crop-right=0)
[14:35:43]        + source: 720 * 576, crop (4/4/0/0): 720 * 568, scale: 974 * 720
[14:35:43]      + Sharpen (lapsharp) (y-strength=0.2:y-kernel=isolap:cb-strength=0.2:cb-kernel=isolap)
[14:35:43]    + Output geometry
[14:35:43]      + storage dimensions: 974 x 720
[14:35:43]      + pixel aspect ratio: 1 : 1
[14:35:43]      + display dimensions: 974 x 720
[14:35:43]    + encoder: H.265 (NVEnc)
[14:35:43]      + preset:  medium
[14:35:43]      + options: rc-lookahead=10
[14:35:43]      + profile: auto
[14:35:43]      + level:   auto
[14:35:43]      + bitrate: 5557 kbps, pass: 0
[14:35:43]      + color profile: 5-1-6
[14:35:43]      + chroma location: left
[14:35:43]  * subtitle track 1, Deutsch [VOBSUB] (track 1, id 0x4, Picture) -> Passthrough
[14:35:43]  * subtitle track 2, Deutsch [VOBSUB] (track 2, id 0x5, Picture) -> Passthrough, Forced Only
[14:35:43]    + name: Forced
[14:35:43]  * subtitle track 3, English [VOBSUB] (track 0, id 0x3, Picture) -> Passthrough
[14:35:43]  * audio track 1
[14:35:43]    + name: Stereo
[14:35:43]    + decoder: Deutsch (AC3) (2.0 ch) (192 kbps) (track 2, id 0x2)
[14:35:43]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:35:43]    + AC3 Passthru
[14:35:43]  * audio track 2
[14:35:43]    + name: Stereo
[14:35:43]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[14:35:43]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:35:43]    + AC3 Passthru
[14:35:43] sync: expecting 67875 video frames
[14:35:43] encavcodecInit: H.265 (Nvidia NVENC)
[14:35:43] encavcodec: encoding at rc=vbr, multipass=fullres, Bitrate 5557
[14:35:43] encavcodec: encoding with stored aspect 1/1
[14:35:44] sync: first pts video is 0
[14:35:44] sync: "Chapter 1" (1) at frame 1 time 0
[14:35:44] sync: first pts audio 0x2 is 0
[14:35:44] sync: first pts audio 0x1 is 0
[14:35:47] sync: first pts subtitle 0x3 is 2761200
[14:35:47] sync: first pts subtitle 0x4 is 4003200
[14:36:37] sync: "Chapter 2" (2) at frame 16555 time 59594400
[14:37:42] sync: "Chapter 3" (3) at frame 39590 time 142520400
[14:38:23] sync: "Chapter 4" (4) at frame 53229 time 191620800
[14:39:08] reader: done. 1 scr changes
[14:39:08] work: average encoding speed for job is 331.140137 fps
[14:39:08] comb detect: heavy 1045 | light 6630 | uncombed 60200 | total 67875
[14:39:08] vfr: 67875 frames output, 0 dropped and 0 duped for CFR/PFR
[14:39:08] vfr: lost time: 0 (0 frames)
[14:39:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:39:08] ac3-decoder done: 84839 frames, 0 decoder errors
[14:39:08] ac3-decoder done: 84839 frames, 0 decoder errors
[14:39:08] mpeg2video-decoder done: 67875 frames, 0 decoder errors
[14:39:08] sync: got 67875 frames, 67875 expected
[14:39:08] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
[14:39:08] mux: track 0, 67875 frames, 1900677073 bytes, 5600.44 kbps, fifo 1024
[14:39:08] mux: track 1, 84839 frames, 65156352 bytes, 191.99 kbps, fifo 1024
[14:39:08] mux: track 2, 84839 frames, 65156352 bytes, 191.99 kbps, fifo 1024
[14:39:08] mux: track 3, 493 frames, 1901204 bytes, 5.60 kbps, fifo 16
[14:39:08] mux: track 4, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[14:39:08] mux: track 5, 516 frames, 1994728 bytes, 5.88 kbps, fifo 16
[14:39:08] Finished work at: Wed Dec 28 14:39:08 2022
[14:39:08] libhb: work result = 0
# Job completed (Elapsed Time: 3m 26s)

mpek avatar Dec 28 '22 13:12 mpek

What exactly is going on? When you select "forced only" it is only going to show parts of that track specifically marked as "forced". If no parts of the track are marked as "forced" then nothing will show.

RandomEngy avatar Dec 28 '22 16:12 RandomEngy

When "forced only" selected (ticked box) in VidCoder, the subtitle marked as "forced" does not show in mentioned players. When that same subtitle is marked as standard AND forced then encoded, subtitle will play fine, but as standard subtitle no matter what the player is set to.

mpek avatar Dec 28 '22 17:12 mpek

Marked as standard? Do you mean Default? Or Burn in?

RandomEngy avatar Dec 29 '22 02:12 RandomEngy

Yes, translation to German caused the default row to be called Standard. I made a screenshot: https://i.imgur.com/1wULKaU.png In VidCOder i switched to English for now, if you have further questions, at least translation should not bother anymore.

mpek avatar Dec 29 '22 13:12 mpek

Ahh okay. It looks like VidCoder is passing the encode parameters correctly to the HandBrake core. Can you test on the official HandBrake UI? If it's an issue there you can report it to them to take a look at.

RandomEngy avatar Dec 29 '22 16:12 RandomEngy

I'll test it, could take some time.

mpek avatar Dec 31 '22 11:12 mpek