totem player no subtitle (.srt)

Asked by Julia

Hello!
I want to see a .avi with subtitle (.srt) with the totem player. But when I put the .srt file into the totem player it stops the video.
I don't know what I should do?
I tried it in the VLC player too. There I can see the subtitle, but it is only in 1 line. I can't read the beginning and the end of the subtitle, it is over the video width.
Can someone say me how I can see the subtitle in totem player or in the vlc player in more lines?
Thak you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu totem Edit question
Assignee:
No assignee Edit question
Solved by:
Julia
Solved:
Last query:
Last reply:
Revision history for this message
Pedro Villavicencio (pedro) said :
#1

May you try to rename the subtitle with the same name of your .avi file? example:

movie.avi
movie.srt

In that way totem will take the subtitle almost immediately. Let me know if that works for you

Revision history for this message
quique1hn (quique1hn) said :
#2

I had the same problem, just rename ant it work´s..... thank

Revision history for this message
ar (arjen-meijer) said :
#3

I play the dvd Minority Report disc one. I would like to use the Dutch subtitles. Totem says it does not have subtitles. I checked VLC to see if this was true in Ubuntu 7.10. But VLC gives my a lot of languages to choose from.

What can I do to display subtitles from a dvd in Totem?

Ar

Revision history for this message
Julia (juliaopitz) said :
#4

My subtitle and my .avi have the same name, that is still clear.
But it doesn't work.
Thank you all for your help but I go back to Vista, because Linux (Ubuntu and Suse 10.3) doesn't work really good on my PC.
There are so many Problems with Ubuntu or Suse.

Bye

Revision history for this message
eleni (eleni) said :
#5

perhaps the title of your files (avi + srt) include special characters (such as . , etc) try to rename both of them using a very simple name, for example movie.avi and movie.srt.

be well,

eleni

Revision history for this message
Cedric Girard (x-dark) said :
#6

Same problem here. The movie is called b.avi and the subtitle file b.srt. I've tried to rename the subtitle to b.txt or b.sub but it still doesn't works.

Revision history for this message
Robin Stocker (nibor) said :
#7

Have a look at the srt file. If the first number you see is 0, change it to 1 and it will probably work.

I've filed a bug in GStreamer to make it recognise srt subtitles with index 0: http://bugzilla.gnome.org/show_bug.cgi?id=502497

Hope this helps!

Revision history for this message
Robin Stocker (nibor) said :
#8

By the way, the GStreamer developers have already fixed the issue, 4 hours after reporting it :).

Revision history for this message
rzlatic (robin.zlatic) said :
#9

my totem (v0.7.2) also doesn't play srt subtitles.
of course i name them the same as the avi file. no special characters. i've tried renaming the extension to txt or sub (as totem's help don't mention srt files but does txt and sub) but with no luck either. tried the 'first line containg zero' trick also with no luck. totem constantly doesn't recognize the subtitle and doesn't show them in subtitles menu... kinda frustrating.

Revision history for this message
Robin Stocker (nibor) said :
#10

rzlatic, can you attach

Revision history for this message
rzlatic (robin.zlatic) said :
#11

robin stocker, what should i attach?
and just to note - i made mistake when typing totem's version number. my totem is v2.22 (while gnome subtitles is version 0.7.2, sorry about that!)

Revision history for this message
Robin Stocker (nibor) said :
#12

Sorry, the message was sent accidentally, it wasn't finished :). Can you attach (or send me) the subtitle file which doesn't work?

Revision history for this message
rzlatic (robin.zlatic) said :
#13

sorry for late reply Robin!
unfortunately i've deleted the subtitle and got another one which (!) worked. so obviously something was wrong with the subtitle file, not the totem :)
thanks anyway!

Revision history for this message
jaha017 (jaha017) said :
#14

i have same problem as u my friend i am currently downlaod this file http://www.videolan.org/vlc/download-ubuntu.html i think it should work as same as on winshit.

Revision history for this message
kripken (kripkenstein) said :
#15

I have the same problem. In fact I have never seen Totem use subtitles correctly. I rename the files to a.avi, a.srt, I check for 0/1 in the first line, etc. etc., nothing works and I get no error messages - just no subtitles.

Revision history for this message
Robin Stocker (nibor) said :
#16

In newer versions of Totem, automatic loading of subtitles is disabled by default. You have to enable it in the preferences in the first tab under "subtitles". Then restart Totem and the subtitle should be available in the menu. Did this work? If not, can you send me the subtitle file which doesn't work so I can have a look at it?

Revision history for this message
kripken (kripkenstein) said :
#17

Thanks Robin, I wasn't aware of this change to Totem. Now subtitles seem to work.

Is there any reason why automatic loading of subtitles isn't on by default? Perhaps Ubuntu should consider this even if GNOME doesn't.

Revision history for this message
iamah (hilmilho) said :
#18

Damn, I had a hard time because of this default non-option... had to google a lot to get a subtitle working...

Revision history for this message
Vladimir Hidalgo (vlad88sv) said :
#19

Thank you, Robin Stocker.

In Gutsy "auto" was the default, so I never though about it. This took me about 2 days to solve until seeing this.

By the way, if you drop the .srt file in to Totem your video stop because Totem does not try to load the file as subtitle, instead it tries to play it!.

Using Hardy and Totem 2.22.1

Revision history for this message
rzlatic (robin.zlatic) said :
#20

according to posts, "auto" should be the default again like in Gutsy with no question about it.

Revision history for this message
Robin Stocker (nibor) said :
#21

For your information, here's the bug which caused the automatic subtitle loading of Totem to be "off by default" (the reason being that it slowed down startup):

http://bugzilla.gnome.org/show_bug.cgi?id=481822

Revision history for this message
Frederick (frederick-1412) said :
#22

I have a problem about srt too. I use Ubuntu 11.0, My totem work fine, but if I put an srt file into same folder of my avi file, my totem seem freeze... turn gray and Force Quit... can Anyone help me?

Thanks

Revision history for this message
Robin Stocker (nibor) said :
#23

Do you mean Ubuntu 8.10? You could attach the subtitle file or send it to me, I'll try to find out what the problem is.

Revision history for this message
Sirgazil (sirgazil-deactivatedaccount) said :
#24

Hello,

I have this problem too, partially. Some subtitle files work and some don't. These are two sample files which present this behavior:

http://introsmedia.tuxfamily.org/totem/this_works.srt
http://introsmedia.tuxfamily.org/totem/this_doesnt.srt

And the software I use:

Totem 2.22.1
GStreamer 0.10.18
gNewSense 2.1 (Based on Ubuntu 8.04 LTS)

Thanks in advance

Revision history for this message
Sirgazil (sirgazil-deactivatedaccount) said :
#25

Oh, I forgot to say that my problem is just that the player doesn't show some srt files, the video files play fine.

Revision history for this message
Robin Stocker (nibor) said :
#26

Luis Felipe López Acevedo: I loaded the this_doesnt.srt subtitle with Totem and it played just fine. I'm using GStreamer from CVS, so maybe the problem is already fixed there. Or maybe it's a problem with the encoding? Have you selected UTF-8 as a subtitle encoding in the Totem preferences?

Revision history for this message
Sirgazil (sirgazil-deactivatedaccount) said :
#27

Robin Stocker: I have UTF-8 in Totem preferences, and both subtitle files are encoded in UTF-8.

Revision history for this message
Sirgazil (sirgazil-deactivatedaccount) said :
#28

Yes, it seems that the problem is GStreamer. I installed totem-xine and both subtitle files load fine.

Revision history for this message
Robin Stocker (nibor) said :
#29

Luis: I found out why the subtitle doesn't work with the current GStreamer packages (not CVS). It's because it has an UTF-8 BOM (byte order mark) at the start of the file. You can remove it by opening the file in gedit, positioning the cursor at the start of the text and pressing delete once (you shouldn't notice a difference except that the "*" in the title indicates that the file has changed). Then save it and use it in Totem.

It works with GStreamer CVS because the problem was fixed in 2008-10-10, see this bug: http://bugzilla.gnome.org/show_bug.cgi?id=555257

Revision history for this message
Sirgazil (sirgazil-deactivatedaccount) said :
#30

That's great, Robin.

Thank you very much.

Revision history for this message
Грустная нека (romme) said :
#31

I'm not quite sure it's solved yet. My subtitles are in .srt files, searching for subtitles it turned on in Totem settings and i'm on Jaunty, still not seeing any subtitles at all. It works in VLC, however.

Revision history for this message
Vladimir Hidalgo (vlad88sv) said :
#32

try to avoid spaces and special characters, Totem sometimes does not like them.

Also, remember to restart the player after changing settings.

Revision history for this message
guillaume even (g71) said :
#33

all of this doesn't work for me.

my experience:
Totem doesn't show the .srt subtitle of my divx "Hulk" (it shows only at some part of the movie - strange...).
it works with VLC.

Linux brontosaure 2.6.32-25-generic-pae #45-Ubuntu SMP Sat Oct 16 21:01:33 UTC 2010 i686 GNU/Linux
Totem 2.30.2, GStreamer 0.10.28

Revision history for this message
Robin Stocker (nibor) said :
#34

guillaume: Try if it works when you use gstreamer directly:

  gst-launch playbin2 uri=file:///home/user/video.avi suburi=file:///home/user/video.srt

If this doesn't work, please file a bug here (and attach your srt file):
https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

If it does work, but not in Totem, file a bug against Totem:
https://bugzilla.gnome.org/enter_bug.cgi?product=totem