First line of subtitle file not being 'burned in'

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
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

First line of subtitle file not being 'burned in'

Post by cwat726 »

Hi, I've been using Handbrake for a while with no issues but now whenever I try to burn in a subtitle track, it never adds the first line of the SRT file. I've checked this for two separate video and SRT files, both with a repeating problem


I've recorded a Loom video to explain the problem: https://www.useloom.com/share/cdde23d35 ... a547a38977


HandBrake version 1.0.7


macOS 10.13.3 High Sierra

https://pastebin.com/At1Ufems
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: First line of subtitle file not being 'burned in'

Post by Woodstock »

[07:44:15] sync: first pts subtitle 0xff is 0
[07:44:15] sync: subtitle 0xff duration <= 0, PTS 0
Looks like the first subtitle isn't valid - it starts at zero and runs for a negative amount of time.
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

Hi - thanks for the response.

How do I go about changing that?
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: First line of subtitle file not being 'burned in'

Post by Woodstock »

You would have to edit the SRT file and correct the times. I cannot help with that - I do not usually deal with SRT subtitles.

If you decide to edit the file, make sure your text editor can handle the character set used by the file. UTF-8 editors are more common nowadays than they used to be, but not all text editors recognize UTF-8 and save in UTF-8 without being TOLD to do that.
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

The subtitle file seems to be working OK when watching the video file in VLC (VLC recognises the SRT file and it includes the very first line).

However when I try to burn them into handbrake, the first line doesn't show.

So it doesn't seem to be an issue with the actual file given that it works on VLC?
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

Maybe share the SRT file so we can take a look at it? :)
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

Sure thing. I've uploaded to Google Drive here:

https://drive.google.com/drive/folders/ ... sp=sharing

I've also added the corresponding video for reference.
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

No such issue here, first packet ("Getting the attention of doctors") is rendered just fine, and I don't have the zero-duration packet error in the log either… :?:
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

Also, the following line in your log is weird:

Code: Select all

[07:44:15] sync: first pts subtitle 0xff is 0
…for the provided file, it should be:

Code: Select all

[21:51:33] sync: first pts subtitle 0xff is 113400
…and generally speaking, almost no subtitle track is ever going to start at PTS 0 (the very first millisecond of the file).
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

Hi,

What software should I be using to edit these files?

I bought my SRT from Rev
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

I didn't edit the file… download both files as a ZIP, unzipped and went straight to encoding in HandBrake.
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

Hi,

Ok there were two videos. MEDlexa seems to be working OK now, but Voice Express Connect is not. The first line of the video does not show after using Handbrake.

Loom video: https://www.useloom.com/share/96cbfdfd3 ... 47173ba27a

Files: https://drive.google.com/open?id=1RsQcW ... 5-PmpazP-2

Any feedback would be appreciated.

Thanks
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

Reproduced. It seems we may be tripping on the byte order mark -- not sure how to fix it yet.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: First line of subtitle file not being 'burned in'

Post by JohnAStebbins »

Code: Select all

[07:49:11]  * subtitle track 1, English (track 0, id 0xff) Text [SRT] -> Render/Burn-in, offset: 0, charset: ISO-8859-1
ISO-8859-1 doesn't have a byte order mark. The mark in the file is ef bb bf which corresponds to UTF8. You're using the wrong charset setting when specifing the HandBrake srt file settings.
cwat726
Posts: 7
Joined: Thu Mar 08, 2018 6:58 pm

Re: First line of subtitle file not being 'burned in'

Post by cwat726 »

That worked! Thank you for your help :D
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: First line of subtitle file not being 'burned in'

Post by JohnAStebbins »

We should really do a quick read of the initial characters of the file and auto-select the charset if it can be identified by byte order marks. Yet another thing to add to my todo list.
Deleted User 11865

Re: First line of subtitle file not being 'burned in'

Post by Deleted User 11865 »

JohnAStebbins wrote: Mon Mar 12, 2018 8:12 pmISO-8859-1 doesn't have a byte order mark.
Duh. Bad, bad Tim for missing it :oops:
Post Reply