VLC crashes when adding a subtitle file

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

VLC crashes when adding a subtitle file

Postby Opep1 » 27 Dec 2020 18:09

VLC reads correctly the videos on my computer with Windows 10 and the last 3.0.11 version of VLC.
But if I try to add a .srt file , it crashes. The reading bar is a bit orange. No error message.
Can you help me to fix it ? Many thanks for support.

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: VLC crashes when adding a subtitle file

Postby Hitchhiker » 27 Dec 2020 22:25

To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 28 Dec 2020 13:46

Thank you very much for your help !
So the version used is vlc-3.0.11-win64, Windows 10.
And the log here :
https://pastebin.com/NCQEAnpZ

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: VLC crashes when adding a subtitle file

Postby Hitchhiker » 28 Dec 2020 16:04

Are you trying to play the 1932 version of the movie? If so, try using one of the subtilte files from this list.

Your log file shows the subtitles you're trying to use to be an invalid codec.

Code: Select all

avcodec warning: refusing to decode non validated subtitle codec

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 28 Dec 2020 18:09

Thank you.
I tried the two srt files in French, unfortunately , the result was the same : the video crashed, and the line "our log file shows the subtitles you're trying to use to be an invalid codec." was still in the new log for both of them...

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: VLC crashes when adding a subtitle file

Postby Hitchhiker » 28 Dec 2020 20:58

Can you try doing the following.

  1. Create a new folder and move the subtitle file to that and then change the path in your movie to reflect that.
  2. In vlc hit Ctrl + P to open prefs and then click the Video button at the top.
  3. Where it reads "Output" change "Automatic" to "Direct3D9 video codec" via the dropdown menu. Pix of the menu below.
  4. Save, exit and restart vlc.
Image

If it still doesn't work it might be related to this bug: http://trac.videolan.org/vlc/ticket/3516

You could try using a Nightly which are BETA versions of the forthcoming version 4.0 of vlc to see if that helps: https://nightlies.videolan.org/

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 28 Dec 2020 22:09

Thank you for your message.
I tried, but the problem remains.
I am a bit afraid to use a Nightly , but I agree with you in hoping that the next version 4.0 will correct this bug, for the following reason :
I forgot to report something important => I have used VLC during many years, adding srt files without any problem, on the same computer, same OS. Last year all was working. The troubleshooting is perhaps caused by a recent version or release of VLC, . So maybe I can try to desinstall the current version and reinstall a previous one, like 3.0.4 for example. Is there a safe place to download it ? Thanks again for your help.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: VLC crashes when adding a subtitle file

Postby mederi » 28 Dec 2020 22:36

The video file is ts, not mp4 (check it in MediaInfo tool). You can remux the file (MKVToolNix). Otherwise try VLC 4 where the issue should already be fixed.

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 28 Dec 2020 23:00

Well, unfortunately, it didn't work installing previous versions (3.0.4 and 2.0.4). Apart from VLC releases, the only changes on this computer for one year were upgrades of Windows 10.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VLC crashes when adding a subtitle file

Postby InTheWings » 28 Dec 2020 23:02

Code: Select all

direct3d11 debug: D3D11 pool succeed with 38 surfaces (512x384) context 0x0000016f3bdd1100
Force max threads to 4 or 8 in avcodec prefs
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 28 Dec 2020 23:38

The video file is ts, not mp4 (check it in MediaInfo tool). You can remux the file (MKVToolNix). Otherwise try VLC 4 where the issue should already be fixed.
Great ! You found it... I am not a developper, just a user with basic knowledge. So when I see a file with a MP4 extension, I believe (Now no more !).
Several supposed "MP4" files in my computer were in fact TS files. And I tried with verified MP4 , it works...
Thank you very much mederi ! thank you also for others who tried to help me !
The issue is solved !

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: VLC crashes when adding a subtitle file

Postby Hitchhiker » 29 Dec 2020 15:32

There's a setting in Windows which is enabled by default called "Hide extensions for known file types". Here's a pix of it taken from my system running Windows 8.1

Image
(click to enlarge).

I have it disabled (unchecked) which means that the OS will display file extensions beyond the first one. I suspect it's enabled on your system whereby you're only seeing file.mp4 instead of file.mp4.ts There's also a slight security risk in leaving it enabled because a hacker could send you a malware called file.txt.exe. Since you'd only see the first extension you might decide to open it because it looks like a text file which would run the executable and install the malware.

You should be able to find it in Windows 10 easily enough by doing search for "Folder Options" (View tab).

Opep1
New Cone
New Cone
Posts: 7
Joined: 27 Dec 2020 17:59

Re: VLC crashes when adding a subtitle file

Postby Opep1 » 29 Dec 2020 16:53

Thank you very much, Hitchhiker. This is a very good advise for me and you supposed well... I have unchecked the setting !


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 48 guests