Questions tagged [srt]

Text file containing subtitles used by various video playback programs; supported by DivX, DVD, and other video formats; includes the time each subtitle should be displayed followed by the text of the subtitle.

SubRip Subtitle File

Text file containing subtitles used by various video playback programs; supported by DivX, DVD, and other video formats; includes the time each subtitle should be displayed followed by the text of the subtitle.

Subtitle files are often named according to the language of the subtitles, i.e. "moviename.eng.srt" for English and "moviename.ger.srt" for German subtitles.

More details on the file format and programs that support this format is at fileInfo. Another info about this format

184 questions
0
votes
1 answer

Have no clue how to fix a bug

I am using fscanf to scan a formatted .srt file, however I've run into a problem which I can't work around since I am fairly new to C. I have tried reading a file char by char but it ended up being a huge mess which I couldn't debug if (input ==…
remax
  • 29
  • 5
0
votes
2 answers

What am I doing wrong here (trying to program a *.srt parser in C)?

I just found a *.srt file that mpv fails to load. So, I thought let's make my own subtitle parser that takes subtitle's path as command-line argument. Here's what I tried : /* Intended to be a program for parsing *.srt subtitles as an alternative to…
user7555262
0
votes
0 answers

MP4 - get current subtitle text

I'm trying to find a way to grab the current subtitle in an MP4 file. I see that ffmpeg can extract all subtitles into an .srt file, but it would be useful for me to just grab the current subtitle based on the current timestamp of a video being…
0
votes
1 answer

Creating a csv-file from an srt-file ("Friends" subtitles) in python

Currently, I am trying to create a csv file containing the subtitles of NBC's "Friends" and their corresponding starting time. So basically I am trying to turn an srt-file into a csv-file in python. For those of you that are unfamiliar with…
Clemens
  • 39
  • 6
0
votes
0 answers

Why does SSA/ASS not accept timecodes larger than 9:59:59.99

I have a SRT file which contain timecodes > 100 hours (e.g. 123:45:67.891; hhh:mm:ss:fff). Now I stumpled upon this issue when converting my SRT to ASS using ffmpeg ffmpeg -i subs.srt styled.ass In the ASS file, all the timecodes in the SRT that…
YTZ
  • 876
  • 11
  • 26
0
votes
1 answer

breaking the lines while chunking into multiple files

I am dividing my file into chunks but only problem i am facing is, i have .srt file, but while doing chunks, it's cutting the characters i.e in first .srt file it's like 00:26:20,230 --> . in next file it continuing the next time stamp…
user6250770
  • 680
  • 2
  • 10
  • 25
0
votes
1 answer

Detecting the encoding of srt file and changing it

I'm trying to read a srt file that is in hebrew. The encoding is supposed to be cp1255 but it is not reading with this one. I can read it with utf-8 but then it do not follow the rules of hebrew language. I want to store the file in cp1255 format…
0
votes
2 answers

LiveSmoother: payload size: 32768 exceeds maximum allowed

I'm using the ffmpeg with libsrt, I'm writing out a frame with av_interleaved_write_frame, the url for the srt output is srt://10.10.56.45:5555?mode=listener&mss=1316&pkt_size=1316&send_buffer_size=1316&ffs=1316 and I'm getting error SRT.c:…
user3828398
  • 495
  • 3
  • 9
  • 18
0
votes
0 answers

String.split() returns empty array

I was look for parsing SRT file and found some function using .split() but I get an empty array... I think the problem comes from my SRT syntaxe but I don't understand what /(?:^|\n\n)\d+\n|\n+$/g means inside .split() function. These are the…
LaTouv
  • 1
  • 1
0
votes
1 answer

Chrome Download Tag Does Not Download FIle

I have problem that i want when i click on SRT on ma web page to download file...but problem is that all my files are shared throught ftp server not http so if i use http it download file, if i put in url source ftp then it opens file in chrome…
Igor Petev
  • 597
  • 2
  • 6
  • 24
0
votes
1 answer

find and rm extra srt files

I want to find and remove all *.srt files that are extra. If in the video directory there is an *.en.srt file then I want to rm that file, if not then leave it. So I figured out this: find /share/CACHEDEV4_DATA/Movies -name "*.srt" ! -name…
0
votes
1 answer

keep single space line in srt file by removing ctrl-m characters and double empty line

we process a lot of srt files in linux to generate derivatives , but some of them have ctrl-M characters since they were generated in windows. right now I put two commands to check and take out the hidden characters tr -d '\015' <${file}.srt…
Calvin
  • 407
  • 1
  • 5
  • 21
0
votes
1 answer

What is wrong with the subtitles format?(Video.js)

video.js says that there is an error while parsing the .srt subtitle file, here's the content: 1 00:01:14,909 --> 00:01:16,999 WOMAN 1: Well, my dad was a farmer. 2 00:01:18,162 --> 00:01:20,622 Um, like everybody else back then. 3 00:01:22,750…
Blurry Script
  • 329
  • 1
  • 3
  • 11
0
votes
0 answers

Play video with subtitle(SRT file) in angularjs

I have video and its srt file, I want to play video with subtitle using Angularjs or some other player. Is there any simple way to achieve this? I have tried videoSub ( http://www.storiesinflight.com/js_videosub/ ) but its working when srt file…
0
votes
1 answer

What tool can generate a blank SRT file with candidate scene changes

I'd like to add subtitles to a video file for which no SRT file exists. Is there any tool that'll automatically scan the audio track of a Video and create a blank SRT file that contains only the time stamps? I tried VisualSubSync, but the built-in…
Nemo XXX
  • 644
  • 2
  • 14
  • 35