Page 1 of 1

VLC crashes when adding subtitles

Posted: 09 Jul 2023 09:40
by nkjp
VLC crashes whenever I add srt subtitles.

No error message. Video screen just goes black.

Happens for multiple videos and srt files but not *all* video files. One mp4 works fine, another mp4 does not.

Tried uninstalling and re-installing. No change.
Tried resetting preferences and cache. No change.

Re: VLC crashes when adding subtitles

Posted: 10 Jul 2023 10:30
by Lotesdelere
Run VLC with this command line for creating a log file:

Code: Select all

vlc --extraintf=logger --verbose=2 --logfile=C:\temp\vlc.log --logmode=text --file-logging

and then paste the full resulting log here or on Pastebin.com or on Justpaste.it if it's too long.

Make sure you have full access rights to the destination path.

Re: VLC crashes when adding subtitles

Posted: 05 Nov 2023 22:11
by nkjp
Thank you! I started a vid, added subs, got a crash. It was actually too long for pastebin, so I truncated the log because it was just the same lines over and over. I hope that's okay.

Log results here:

-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
mpeg4audio: AAC channels: 2 samplerate: 96000
avcodec: Using D3D11VA (Intel(R) UHD Graphics 620, vendor 8086(Intel), device 5917, revision 7) for hardware decoding
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 17
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 9) for PID 0
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 9) for PID 4096
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 17
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 8) for PID 0
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 8) for PID 4096
main error: option sub-original-fps does not exist
direct3d11 error: SetThumbNailClip failed: 0x800706f4
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 17
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 9) for PID 0
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 9) for PID 4096
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 17
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 8) for PID 0
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 8) for PID 4096
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 17

...
-- logger module stopped --

Re: VLC crashes when adding subtitles

Posted: 05 Nov 2023 22:30
by nkjp
I googled the error and I guess vlc can't handle mp4 and subtitles? And this has been true for years?

People said converting mp4 to mkv solves the subtitle issue. Which is true. But converting mp4 to mkv using vlc causes the audio to stutter every 5 seconds.

I think I'm just going to ditch VLC and use Windows Media Player Classic, which works without any problems like this.

Re: VLC crashes when adding subtitles

Posted: 06 Nov 2023 11:59
by Lotesdelere
You say it's an MP4 but your log shows it's a TS file. And VLC can't play external subtitles with TS files.

Re: VLC crashes when adding subtitles

Posted: 06 Nov 2023 18:12
by nkjp
The file ends in .mp4 and when I check "Properties" of the video I see: "Type of file: MP4 Video File (.mp4)"

That's all I know.