Jump to content

"wrong Format"


Kargor
 Share

Recommended Posts

Well, I just tried to upload an srt file, and keep getting this message.

The file works fine when I play it, so I played around with some details. Changed the line endings from "DOS" (CR-LF) to "Unix" (LF), which didn't make a difference. Then I noticed that the last line in the file doesn't have a line-end at all, so I added one. No change either.

As it's an english file, I don't think there should be any "weird" characters in it. Still, I don't know what the encoding SHOULD be... it's just that the two most likely candidates, UTF-8 and Windows-1252 (which in turn is a superset of ISO 8859-1) are both supersets of ASCII so it shouldn't make a difference for english texts.

What ARE the precise requirements for an srt file to be accepted?

I did check the other recent thread, but they just solved their problem with not much of an explanation :-) Besides, it may or may not be the same problem here.

Link to comment
Share on other sites

As long as the file follows strictly the subrip (.srt) format, should be fine.
The web should handle most encoding (UTF-8, ISO 8859-1, etc) but not Unicode (as Alex1969 pointed out).

The subrip format is:

<Line Number>
<HH:MM:SS,mmm> --> <HH:MM:SS,mmm>
<Text>
<Text>
...
<Text>
<Blank line>

The most common errors are:
1) The time code has "." instead of "," for milliseconds
2) The arrow it's "->" instead of "-->"
3) No blank line between the srt lines.

Also, subtitle needs to have at least 2 blank lines at the end.


The easiest way to solve this errors, it's to read the subtitle with some error tolerant subtitle app
(like Subtitle Workshop, Subtitle Edit or Transcript Annotations Cleaner) and just save it.

Edited by Kerensky
Link to comment
Share on other sites

If the encoding of the srt file is Unicode, you get an error message, so you'll just have to save it as UTF-8 or ANSI.

  • Like 1

It's not the years in the life, but the life in the years dQVXh.gif

Link to comment
Share on other sites

  • 1 year later...

Apparently, some encoding problem. I saved it as UTF-8 and took the liberty to upload it on your behalf, crediting you, of course.
Hope you don't mind.

  • Like 1

The chickens are revolting!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Member Statistics

    26214
    Total Members
    6268
    Most Online
    BoxerDYPE
    Newest Member
    BoxerDYPE
    Joined
×
×
  • Create New...