Subtitles issue

Hi
I have 2 video file formats: mp4 and mkv.
The subtitles embedded in a movie in mkv format are read well.
On the other hand, those placed in the same folder of the movie encoded in mp4, with the same name (for the folder, the movie and the subtitles) are not read.
I don’t know since when it happened, but the subtitles of a movie encoded in mp4 were read well last June and I haven’t changed anything in the settings since.
Any idea to solve the problem?

This is the log file

EDIT: I must add that if while playing the movie I manually designate the subtitle file, the movie stops and OSMC/Kodi crashes.
EDIT 2: those files are in .srt format

I cannot offer any advice, but just wanted to add that I too have noticed that .srt files sometimes aren’t played automatically despite being correctly named and perfectly valid (I use Gaupol to edit all my subtitles).

If I manually designate the files, it plays fine, though - no crashes for me. While not the end of the world, it’s kinda frustrating and I hope we can get an official word on this.

I don’t know if this can help, and assuming you’re using srt subtitles, but I know that media players like kodi (and mediaportal) are sensitive to specific codepage(s) used in srt subtitles.

In my native language characters like é,à,ë (ASCII codes >127) are commonplace so that’s one of the things I always verify when trying out a new player.

After some thorough testing with different codepages on the combo vero/kodi I came to the conclusion that 1 codepage worked in all the cases I tested out (embedded and external): UTF-8 with byte-order mark (BOM).
All others didn’t fare well.

Unicode text editors can easily convert to any codepage.

Thanks for your answers.
My subtitles which have always been encoded in UTF 8 without BOM have always been read very well. This failure appeared suddenly causing 2 successive crashes.
Oddly enough, without doing anything, the same subtitles (in .srt therefore) reappeared.
Mystère et boule de gomme.

Thank you for your input.

I’ve also been thinking that maybe it’s got to do with the codepages somehow, but I’ve used osmc for 8+ years and it never was a problem before this summer. So, this is likely an unintended regression, and it would be great to hear if it’s been - or will be - fixed.

If there’s no fix on the horizon, then hopefully it won’t be too hard to automate the conversion process. I’ve quite a few files spread across quite a few drives/folders, so I’m hesitant to start until we get the official diagnosis.

Hello
I have the same problem again: my Vero 4k can’t read mp4 subtitles with .srt files. Worse, if I designate the .srt file that should be read, the playback stops and Vero crashes. I have many mp4s (all with subtitles) and none of them can be read.
Now I really need help.
Ah! Also: I can’t upload the log: it tells me it’s too big and can’t give me the URL.

Reboot twice to clear current and previous log. Then you should be able to upload logs

Hello Sam
OK: this is the log.

I have no answers. Why?

Is this an obvious problem that I don’t see. :confused:

My .srt files are fine. Movies I could watch last summer didn’t have any problems: the subtitles were played automatically. The same movies today don’t display them anymore.

Now I’m in trouble.

No time to look at this yet.
I will check shortly

Sam

Hello hello

I was hoping that the latest update would fix the problem of reading .srt files, but no: they are not displayed and the file is still not seen by the reader.

Do you want me to produce a new log?

There wasn’t any change in this update regarding subtitles

If we can get a sample video of an affected file this would be useful

Can you reproduce it consistently with different files?
I just tried with a ,mp4 file with external .srt file and they are automatically detected and played.
image

So if you can replicate with multiple files then yes upload debug logs.
But also suggest you check the .mp4 and .srt files with respective tools

To Sam:
this is an HC taken from VLC

Yes. I just done one. But how can I upload it?
This is what MediaInfo gives:

Général
Nom complet : C:\Users\pleme\Desktop\Brigadoon (1954)\Brigadoon (1954).mp4
Format : MPEG-4
Profil du format : Base Media
Identifiant du codec : isom (isom/iso2/avc1/mp41)
Taille du fichier : 869 Mio
Durée : 1 h 48 min
Débit global moyen : 1 124 kb/s
Images par seconde : 23,976 Im/s
Application utilisée : Lavf58.2.103
Vidéo
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Profil du format : High@L4.1
Paramètres du format : CABAC / 4 Ref Frames
Paramètres du format, CABAC : Oui
Paramètres du format, RefFrames : 4 images
Identifiant du codec : avc1
Identifiant du codec/Info : Advanced Video Coding
Durée : 1 h 48 min
Débit : 1 000 kb/s
Largeur : 1 280 pixels
Hauteur : 502 pixels
Format à l’écran : 2,552
Format à l’écran d’origine : 2,553
Type d’images/s : Constant
Images par seconde : 23,976 (24000/1001) Im/s
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0
Profondeur des couleurs : 8 bits
Type de balayage : Progressif
Bits/(Pixel*Image) : 0.065
Taille du flux : 773 Mio (89%)
Bibliothèque utilisée : x264 core 152
Paramètres d’encodage : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Identifiant du codec : mp4a-40-2
Durée : 1 h 48 min
Type de débit : Constant
Débit : 117 kb/s
Canaux : 2 canaux
Channel layout : L R
Echantillonnage : 48,0 kHz
Images par seconde : 46,875 Im/s (1024 SPF)
Mode de compression : Avec perte
Taille du flux : 90,8 Mio (10%)
Default : Oui
Alternate group : 1

@fzinken:
I’ll be back later

  • I can’t upload the .srt file neither.

This is the new log.

Use any Filesharing solution (Google Drive, One Drive,…)

So what happend this time?
Kodi crashed or just subtitle not showed?

subtitle not showed and found.
I pointed to the subtitle file, the video froze and everything crashed (sad face)

OK. I’ll try.

That’s odd
2024-11-04 14:59:20.067 T:3493 info <general>: ScanPathsForAssociatedItems: found associated file smb://192.168.0.41/Films/Brigadoon (1954)/Brigadoon (1954).srt

Also just a reminder the provided logs are not debug enabled so will only allow limited trouble shooting.