[Fixed] 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
remyz
Posts: 8
Joined: Mon Jan 02, 2017 7:26 pm

[Fixed] 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by remyz » Tue Jan 03, 2017 9:01 pm

Please describe the problem in as much detail as possible:

When encoding a .mkv with HandBrake 1.0.0 or 1.0.1, the resulting .mp4 shows a 'blank line' between subtitle lines, if two lines are displayed above each other. HandBrake 0.10.5 did not show this behaviour.

1.0.0 / 1.0.1:
Image


0.10.5:
Image


What are the steps to reproduce this problem:
Encoding options used:

Code: Select all

--audio "1,1" --subtitle "1" --subtitle-default "1" --format mp4 --encoder x264 --maxWidth 1920 --maxHeight 1080 --quality 20.0 --rate 30 --pfr --loose-anamorphic --modulus 2 --aencoder ffaac,copy:ac3 --ab 160,160 --mixdown stereo,none --arate auto,auto --drc 0.0,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 --markers --x264-preset medium --h264-profile high --h264-level 4.0

What version of HandBrake you are running:
1.0.0/1.0.1: shows problem.
0.10.5: does not show problem.

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
macOS 10.12.2 and macOS 10.11.6

Video player: VLC 2.2.4 on macOS 10.12.2.

Please include the scan or encode log:

Log of a 1.0.0/1.0.1 encoding (shows problem):

Code: Select all

[21:57:12] hb_init: starting libhb thread
[21:57:12] thread 700000081000 started ("libhb")
HandBrake 1.0.1 (2016122900) - Darwin x86_64 - https://handbrake.fr
4 CPUs detected
Opening Example.mkv...
[21:57:12] CPU: Intel(R) Core(TM) i5-5675R CPU @ 3.10GHz
[21:57:12]  - logical processor count: 4
[21:57:12] OpenCL device #1: Intel Inc. Intel(R) Iris(TM) Pro Graphics 6200
[21:57:12]  - OpenCL version: 1.2 
[21:57:12]  - driver version: 1.2(Nov  2 2016 21:56:43)
[21:57:12]  - device type:    GPU
[21:57:12]  - supported:      YES
[21:57:12] hb_scan: path=Example.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image Example.mkv
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[21:57:12] 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
[21:57:12] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Example.mkv':
  Duration: 00:57:26.52, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 124.080000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 124.080000, end 842.640000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 842.640000, end 1798.720000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1798.720000, end 2828.440000
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2828.440000, end 3401.040000
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 3401.040000, end 3446.520000
    Metadata:
      title           : Chapter 06
    Stream #0:0(eng): Video: mpeg2video (Main)
      yuv420p, tv, bt470bg/bt470bg/bt470bg
      720x576 [PAR 64:45 DAR 16:9], 8500 kb/s, PAR 64:45 DAR 16:9
      25 fps, 1k tbn
    Metadata:
      BPS             : 5153487
      BPS-eng         : 5153487
      DURATION        : 00:57:26.520000000
      DURATION-eng    : 00:57:26.520000000
      NUMBER_OF_FRAMES: 86163
      NUMBER_OF_FRAMES-eng: 86163
      NUMBER_OF_BYTES : 2220199678
      NUMBER_OF_BYTES-eng: 2220199678
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(dan): Audio: ac3
      48000 Hz, 5.1, fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS             : 448000
      BPS-eng         : 448000
      DURATION        : 00:57:26.016000000
      DURATION-eng    : 00:57:26.016000000
      NUMBER_OF_FRAMES: 107688
      NUMBER_OF_FRAMES-eng: 107688
      NUMBER_OF_BYTES : 192976896
      NUMBER_OF_BYTES-eng: 192976896
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(dut): Subtitle: srt (default)
    Metadata:
      BPS             : 49
      BPS-eng         : 49
      DURATION        : 00:56:26.671000000
      DURATION-eng    : 00:56:26.671000000
      NUMBER_OF_FRAMES: 465
      NUMBER_OF_FRAMES-eng: 465
      NUMBER_OF_BYTES : 20989
      NUMBER_OF_BYTES-eng: 20989
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:57:12] scan: decoding previews for title 1
[21:57:12] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 dansk (AC3) (5.1 ch)
[21:57:12] scan: 10 previews, 720x576, 25.000 fps, autocrop = 56/56/0/0, aspect 16:9, PAR 64:45
[21:57:12] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: Example.mkv
  + duration: 00:57:26
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 56/56/0/0
  + support opencl: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:04
    + 2: cells 0->0, 0 blocks, duration 00:11:59
    + 3: cells 0->0, 0 blocks, duration 00:15:56
    + 4: cells 0->0, 0 blocks, duration 00:17:10
    + 5: cells 0->0, 0 blocks, duration 00:09:33
    + 6: cells 0->0, 0 blocks, duration 00:00:45
  + audio tracks:
    + 1, dansk (AC3) (5.1 ch) (iso639-2: dan), 48000Hz, 448000bps
  + subtitle tracks:
    + 1, Dutch (iso639-2: nld) (Text)(UTF-8)
Invalid sample rate auto, using input rate
Invalid sample rate auto, using input rate
[21:57:12] 1 job(s) to process
[21:57:12] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 4,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 1073743872,
                "Mixdown": 0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            },
            {
                "Name": "Chapter 2"
            },
            {
                "Name": "Chapter 3"
            },
            {
                "Name": "Chapter 4"
            },
            {
                "Name": "Chapter 5"
            },
            {
                "Name": "Chapter 6"
            }
        ],
        "ChapterMarkers": true,
        "File": "Example HB 1.0.1.mp4",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 56,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 56,
                    "height": 464,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 45,
        "Num": 64
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "Example.mkv",
        "Range": {
            "End": 6,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": true,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "OpenCL": false,
        "Options": "",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[21:57:12] starting job
[21:57:12] job configuration:
[21:57:12]  * source
[21:57:12]    + Example.mkv
[21:57:12]    + title 1, chapter(s) 1 to 6
[21:57:12]    + container: matroska,webm
[21:57:12]  * destination
[21:57:12]    + Example HB 1.0.1.mp4
[21:57:12]    + container: MPEG-4 (libavformat)
[21:57:12]      + chapter markers
[21:57:12]  * video track
[21:57:12]    + decoder: mpeg2video
[21:57:12]      + bitrate 8500 kbps
[21:57:12]    + filters
[21:57:12]      + Framerate Shaper (mode=2:rate=27000000/900000)
[21:57:12]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[21:57:12]      + Crop and Scale (width=720:height=464:crop-top=56:crop-bottom=56:crop-left=0:crop-right=0)
[21:57:12]        + source: 720 * 576, crop (56/56/0/0): 720 * 464, scale: 720 * 464
[21:57:12]    + Output geometry
[21:57:12]      + storage dimensions: 720 x 464
[21:57:12]      + pixel aspect ratio: 64 : 45
[21:57:12]      + display dimensions: 1024 x 464
[21:57:12]    + encoder: H.264 (libx264)
[21:57:12]      + preset:  medium
[21:57:12]      + profile: high
[21:57:12]      + level:   4.0
[21:57:12]      + quality: 20.00 (RF)
[21:57:12]  * subtitle track 1, Dutch (track 0, id 0x2) Text [UTF-8] -> Passthrough, Default
[21:57:12]  * audio track 1
[21:57:12]    + decoder: dansk (AC3) (5.1 ch) (track 1, id 0x1)
[21:57:12]      + bitrate: 448 kbps, samplerate: 48000 Hz
[21:57:12]    + mixdown: Stereo
[21:57:12]    + encoder: AAC (Apple AudioToolbox)
[21:57:12]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:57:12]  * audio track 2
[21:57:12]    + decoder: dansk (AC3) (5.1 ch) (track 1, id 0x1)
[21:57:12]      + bitrate: 448 kbps, samplerate: 48000 Hz
[21:57:12]    + AC3 Passthru
[21:57:12] sync: expecting 86163 video frames
[21:57:12] encx264: encoding at constant RF 20.000000
[21:57:12] encx264: unparsed options: level=4.0:vbv-bufsize=31250:vbv-maxrate=25000
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[21:57:12] sync: first pts video is 0
[21:57:12] sync: first pts audio 0x1 is 3600
[21:57:12] sync: first pts audio 0x1 is 3600
[21:57:12] sync: "Chapter 1" (1) at frame 4 time 14400
[21:57:12] sync: first pts subtitle 0x2 is 262800
[21:57:28] sync: "Chapter 2" (2) at frame 3103 time 11170800
[21:59:11] sync: "Chapter 3" (3) at frame 21067 time 75841200
[22:01:31] sync: "Chapter 4" (4) at frame 44969 time 161888400
[22:04:00] sync: "Chapter 5" (5) at frame 70712 time 254563200
[22:05:25] sync: "Chapter 6" (6) at frame 85027 time 306097200
[22:05:27] reader: done. 1 scr changes
[22:05:27] work: average encoding speed for job is 173.840073 fps
[22:05:28] vfr: 86162 frames output, 0 dropped and 0 duped for CFR/PFR
[22:05:28] vfr: lost time: 0 (0 frames)
[22:05:28] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:05:28] ac3-decoder done: 107688 frames, 0 decoder errors
[22:05:28] ac3-decoder done: 107688 frames, 0 decoder errors
[22:05:28] mpeg2video-decoder done: 86162 frames, 0 decoder errors
[22:05:28] sync: got 86162 frames, 86163 expected
[22:05:28] sync: framerate min 12.500 fps, max 25.000 fps, avg 24.999 fps
x264 [info]: frame I:1004  Avg QP:16.64  size: 22177
x264 [info]: frame P:23505 Avg QP:19.73  size:  6809
x264 [info]: frame B:61653 Avg QP:21.50  size:  2018
x264 [info]: consecutive B-frames:  3.2%  2.4%  5.0% 89.3%
x264 [info]: mb I  I16..4: 12.2% 78.2%  9.6%
x264 [info]: mb P  I16..4:  2.9%  8.7%  0.9%  P16..4: 43.3% 15.0%  9.4%  0.0%  0.0%    skip:19.8%
x264 [info]: mb B  I16..4:  0.2%  0.6%  0.1%  B16..8: 42.1%  4.0%  0.7%  direct: 2.0%  skip:50.4%  L0:43.7% L1:50.6% BI: 5.7%
x264 [info]: 8x8 transform intra:71.3% inter:88.1%
x264 [info]: coded y,uvDC,uvAC intra: 61.7% 59.5% 17.9% inter: 15.7% 17.5% 0.3%
x264 [info]: i16 v,h,dc,p: 38% 14%  7% 41%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 13% 21%  4%  5%  8%  4%  7%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 13% 12%  4%  7% 10%  5%  6%  3%
x264 [info]: i8c dc,h,v,p: 53% 13% 29%  5%
x264 [info]: Weighted P-Frames: Y:2.3% UV:0.9%
x264 [info]: ref P L0: 57.3% 11.5% 21.7%  9.3%  0.2%
x264 [info]: ref B L0: 87.0% 10.4%  2.5%
x264 [info]: ref B L1: 94.7%  5.3%
x264 [info]: kb/s:711.94
[22:05:28] mux: track 0, 86162 frames, 306675185 bytes, 711.83 kbps, fifo 4096
[22:05:28] mux: track 1, 161533 frames, 70747498 bytes, 164.21 kbps, fifo 4096
[22:05:28] mux: track 2, 107688 frames, 192976896 bytes, 447.92 kbps, fifo 4096
[22:05:28] mux: track 3, 465 frames, 31815 bytes, 0.07 kbps, fifo 32
[22:05:28] libhb: work result = 0

Encode done!
HandBrake has exited.
 

Log of a 0.10.5 encoding (does not show problem):

Code: Select all

[21:41:55] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - Darwin x86_64 - https://handbrake.fr
4 CPUs detected
Opening Example.mkv...
[21:41:55] CPU: Intel(R) Core(TM) i5-5675R CPU @ 3.10GHz
[21:41:55]  - logical processor count: 4
[21:41:55] OpenCL device #1: Intel Inc. Intel(R) Iris(TM) Pro Graphics 6200
[21:41:55]  - OpenCL version: 1.2 
[21:41:55]  - driver version: 1.2(Nov  2 2016 21:56:43)
[21:41:55]  - device type:    GPU
[21:41:55]  - supported:      YES
[21:41:55] hb_scan: path=Example.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening Example.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening Example.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(Example.mkv) failed
[21:41: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
[21:41:55] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Example.mkv':
  Duration: 00:57:26.52, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 124.080000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 124.080000, end 842.640000
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 842.640000, end 1798.720000
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 1798.720000, end 2828.440000
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 2828.440000, end 3401.040000
    Metadata:
      title           : Chapter 05
    Chapter #0.5: start 3401.040000, end 3446.520000
    Metadata:
      title           : Chapter 06
    Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 8500 kb/s, 25 fps, 1k tbn, 50 tbc
    Metadata:
      BPS             : 5153487
      BPS-eng         : 5153487
      DURATION        : 00:57:26.520000000
      DURATION-eng    : 00:57:26.520000000
      NUMBER_OF_FRAMES: 86163
      NUMBER_OF_FRAMES-eng: 86163
      NUMBER_OF_BYTES : 2220199678
      NUMBER_OF_BYTES-eng: 2220199678
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.1(dan): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS             : 448000
      BPS-eng         : 448000
      DURATION        : 00:57:26.016000000
      DURATION-eng    : 00:57:26.016000000
      NUMBER_OF_FRAMES: 107688
      NUMBER_OF_FRAMES-eng: 107688
      NUMBER_OF_BYTES : 192976896
      NUMBER_OF_BYTES-eng: 192976896
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.2(dut): Subtitle: [0][0][0][0] / 0x0000 (default)
    Metadata:
      BPS             : 49
      BPS-eng         : 49
      DURATION        : 00:56:26.671000000
      DURATION-eng    : 00:56:26.671000000
      NUMBER_OF_FRAMES: 465
      NUMBER_OF_FRAMES-eng: 465
      NUMBER_OF_BYTES : 20989
      NUMBER_OF_BYTES-eng: 20989
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-25 12:05:05
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-25 12:05:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:41:55] scan: decoding previews for title 1
[21:41:55] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 Dansk (AC3) (5.1 ch)
[21:41:55] scan: 10 previews, 720x576, 25.000 fps, autocrop = 56/56/0/0, aspect 16:9, PAR 64:45
[21:41:55] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: Example.mkv
  + duration: 00:57:26
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 56/56/0/0
  + support opencl: yes
  + support hwd: not built-in
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:04
    + 2: cells 0->0, 0 blocks, duration 00:11:59
    + 3: cells 0->0, 0 blocks, duration 00:15:56
    + 4: cells 0->0, 0 blocks, duration 00:17:10
    + 5: cells 0->0, 0 blocks, duration 00:09:33
    + 6: cells 0->0, 0 blocks, duration 00:00:45
  + audio tracks:
    + 1, Dansk (AC3) (5.1 ch) (iso639-2: dan), 48000Hz, 448000bps
  + subtitle tracks:
    + 1, Dutch (iso639-2: nld) (Text)(UTF-8)
[21:41:55] 1 job(s) to process
[21:41:55] starting job
[21:41:55] sync: expecting 86163 video frames
[21:41:55] job configuration:
[21:41:55]  * source
[21:41:55]    + Example.mkv
[21:41:55]    + title 1, chapter(s) 1 to 6
[21:41:55]    + container: matroska,webm
[21:41:55]  * destination
[21:41:55]    + Example HB 0.10.5.mp4
[21:41:55]    + container: MPEG-4 (libavformat)
[21:41:55]      + chapter markers
[21:41:55]  * video track
[21:41:55]    + decoder: mpeg2video
[21:41:55]      + bitrate 8500 kbps
[21:41:55]    + filters
[21:41:55]      + Framerate Shaper (2:27000000:900000)
[21:41:55]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[21:41:55]      + Crop and Scale (720:464:56:56:0:0)
[21:41:55]        + source: 720 * 576, crop (56/56/0/0): 720 * 464, scale: 720 * 464
[21:41:55]    + loose anamorphic
[21:41:55]      + storage dimensions: 720 * 464, mod 2
[21:41:55]      + pixel aspect ratio: 64 / 45
[21:41:55]      + display dimensions: 1024 * 464
[21:41:55]    + encoder: H.264 (libx264)
[21:41:55]      + preset:  medium
[21:41:55]      + profile: high
[21:41:55]      + level:   4.0
[21:41:55]      + quality: 20.00 (RF)
[21:41:55]  * subtitle track 1, Dutch (track 2, id 0x2) Text [UTF-8] -> Passthrough, Default
[21:41:55]  * audio track 1
[21:41:55]    + decoder: Dansk (AC3) (5.1 ch) (track 1, id 0x1)
[21:41:55]      + bitrate: 448 kbps, samplerate: 48000 Hz
[21:41:55]    + mixdown: Stereo
[21:41:55]    + encoder: AAC (Apple AudioToolbox)
[21:41:55]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:41:55]  * audio track 2
[21:41:55]    + decoder: Dansk (AC3) (5.1 ch) (track 1, id 0x1)
[21:41:55]      + bitrate: 448 kbps, samplerate: 48000 Hz
[21:41:55]    + AC3 Passthru
[21:41:55] reader: first SCR -3600 id 0x0 DTS -3600
[21:41:55] encx264: encoding at constant RF 20.000000
[21:41:55] encx264: unparsed options: level=4.0:vbv-bufsize=31250:vbv-maxrate=25000
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 4.0
[21:42:11] mpeg2video: "Chapter 2" (2) at frame 3110 time 11170800
[21:43:52] mpeg2video: "Chapter 3" (3) at frame 21074 time 75841200
[21:46:10] mpeg2video: "Chapter 4" (4) at frame 44976 time 161888400
[21:48:36] mpeg2video: "Chapter 5" (5) at frame 70719 time 254563200
[21:49:58] mpeg2video: "Chapter 6" (6) at frame 85034 time 306097200
[21:50:01] reader: done. 1 scr changes
[21:50:01] 3446.119873s: Film -> Video
[21:50:01] work: average encoding speed for job is 177.185196 fps
[21:50:01] sync: got 86162 frames, 86163 expected
[21:50:01] render: 86162 frames output, 0 dropped and 0 duped for CFR/PFR
[21:50:01] render: lost time: 0 (0 frames)
[21:50:01] render: gained time: 0 (0 frames) (0 not accounted for)
[21:50:01] mpeg2video-decoder done: 86162 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:1002  Avg QP:16.80  size: 21734
x264 [info]: frame P:38660 Avg QP:20.04  size:  5729
x264 [info]: frame B:46500 Avg QP:21.69  size:  1631
x264 [info]: consecutive B-frames: 16.7% 29.7% 13.1% 40.5%
x264 [info]: mb I  I16..4: 12.6% 77.7%  9.8%
x264 [info]: mb P  I16..4:  2.0%  5.4%  0.5%  P16..4: 45.7% 14.4%  9.0%  0.0%  0.0%    skip:22.9%
x264 [info]: mb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 41.3%  3.1%  0.5%  direct: 1.2%  skip:53.6%  L0:41.4% L1:53.5% BI: 5.2%
x264 [info]: 8x8 transform intra:70.4% inter:87.4%
x264 [info]: coded y,uvDC,uvAC intra: 59.6% 57.6% 16.3% inter: 16.9% 19.0% 0.3%
x264 [info]: i16 v,h,dc,p: 38% 14%  7% 41%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 13% 23%  4%  5%  8%  4%  7%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 13% 12%  4%  7% 10%  5%  6%  3%
x264 [info]: i8c dc,h,v,p: 55% 13% 28%  4%
x264 [info]: Weighted P-Frames: Y:2.4% UV:1.0%
x264 [info]: ref P L0: 61.3% 11.6% 18.8%  8.1%  0.2%
x264 [info]: ref B L0: 83.3% 14.5%  2.2%
x264 [info]: ref B L1: 94.7%  5.3%
x264 [info]: kb/s:740.65
[21:50:02] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[21:50:02] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[21:50:02] mux: track 0, 86162 frames, 319045840 bytes, 740.55 kbps, fifo 2048
[21:50:02] mux: track 1, 161533 frames, 70747498 bytes, 164.22 kbps, fifo 4096
[21:50:02] mux: track 2, 107688 frames, 192976896 bytes, 447.93 kbps, fifo 4096
[21:50:02] mux: track 3, 465 frames, 31111 bytes, 0.07 kbps, fifo 32
[21:50:02] libhb: work result = 0

Encode done!
HandBrake has exited.
Last edited by remyz on Fri Jan 06, 2017 8:11 am, edited 1 time in total.

remyz
Posts: 8
Joined: Mon Jan 02, 2017 7:26 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by remyz » Tue Jan 03, 2017 9:27 pm

Forgot to mention the nightly build of yesterday, HandBrakeCLI-20170101223822-d1bd5ae-master, has the problem as well.

User avatar
JohnAStebbins
HandBrake Team
Posts: 5442
Joined: Sat Feb 09, 2008 7:21 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by JohnAStebbins » Tue Jan 03, 2017 10:29 pm

Could you extract the SRT file from the source video and supply it please so I can reproduce the problem?

remyz
Posts: 8
Joined: Mon Jan 02, 2017 7:26 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by remyz » Wed Jan 04, 2017 8:10 am

SRT file: https://surfdrive.surf.nl/files/index.p ... uWiSSqftFf.

You can find the subtitles shown in the screenshots on the lines 254 - 257.

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

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by Woodstock » Wed Jan 04, 2017 5:02 pm

Looking at the file, MOST lines end in just a 0a linefeed character, but subtitles that are on two lines terminate the first line with a 0d0a carriage return/linefeed pair.

My guess is that there is something in the new version that is handling 0d0a as two line endings instead of 1.

mduell
Veteran User
Posts: 6670
Joined: Sat Apr 21, 2007 8:54 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by mduell » Wed Jan 04, 2017 5:23 pm

Ah CR vs LF, the gift that keeps on giving.

User avatar
JohnAStebbins
HandBrake Team
Posts: 5442
Joined: Sat Feb 09, 2008 7:21 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by JohnAStebbins » Wed Jan 04, 2017 6:50 pm

Should be fixed in the next nightly build, thanks for your help.
https://github.com/HandBrake/HandBrake/ ... 7eff98e6ff

remyz
Posts: 8
Joined: Mon Jan 02, 2017 7:26 pm

Re: 1.0.0 and 1.0.1 introduce a 'blank line' between 2-lined subtitles

Post by remyz » Fri Jan 06, 2017 7:57 am

Confirmed it is fixed in the nightly build (I used HandBrake 20170105091458-62f25f9-master to test). Thanks!

Post Reply