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
2
votes
4 answers

use grep and awk to transfer data from .srt to .csv/xls

I got an interesting project to do! I'm thinking about converting an srt file into a csv/xls file. a srt file would look like this: 1 00:00:00,104 --> 00:00:02,669 Hi, I'm shell-scripting. 2 00:00:02,982 --> 00:00:04,965 I'm not sure if it would…
Penny
  • 1,218
  • 1
  • 13
  • 32
2
votes
0 answers

How to show .srt/subtitle file in MPmovieviewController

I am working on MPMovieViewController player for showing video in my app but need to show .Srt as well I have used below code if(self.livePlayer) { [self.livePlayer.view removeFromSuperview]; [self.livePlayer stop]; …
Vivek Gajbe
  • 411
  • 2
  • 14
2
votes
3 answers

regex for subtitles

I need to parse some srt files and I am looking for a regex (for JAVA) that matches the times sections. What I want is to read the file line by line and if the lines are numbers or times sections skip them. Example, given: 1 00:00:01,357 -->…
Santiago
  • 379
  • 3
  • 14
2
votes
1 answer

Shortest Remaining Time Scheduling

Can the results of a Shortest Remaining Time Schedule be the same preemptive and non preemptive? Like, can you still get the same times at the end of both or is this impossible?
user3080143
  • 59
  • 2
  • 6
2
votes
0 answers

Error while extracting subtitle from mkv or m2ts to srt with FFmpeg

I need to extract subtitles from different video files to .srt format (to use it in html5 video). I tried a lot of variant i found with google. But every time i get this error: Error while opening encoder for output stream #0:0 - maybe incorrect…
1
vote
1 answer

Fully Inversing Text From SRT File

I want to apply "Full inverse" so srt files maminly in arabic, I am able to read the file and store it in a list : file1 = open('myFile.txt', 'r') Lines = file1.readlines() count = 0 strings=[] # Strips the newline character for line in Lines: …
1
vote
3 answers

On Whisper API, when I try to use a python script for transcribing audio files in bulk, I can't get the correct response_format ('srt' or 'vtt') work

I'm using this code for connecting to Whisper API and transcribe in bulk all mp3 in a folder to both srt and vtt: import requests import os import openai folder_path = "/content/audios/" def transcribe_and_save(file_path, format): url =…
waghler
  • 41
  • 6
1
vote
3 answers

How to delete a row while iterating over a dataframe?

I'm trying to do the following with an SRT (subtitles) file: while a row does not appear on the screen for at least 5s add text from the next row to current row with a space between AND replace current End_Time with next row End_Time delete next…
1
vote
1 answer

ffmpeg subtitles background issue when multiple lines (using .srt format)

While using ffmpeg to burn .srt subtitles to mp4 files I'm having an issue with multiple text lines - background is overlaying each other. Command I'm using: ffmpeg -i source_video_path.mp4 -vf…
Dr. House
  • 483
  • 7
  • 23
1
vote
0 answers

Access Haivision SRT statistics from ffmpeg command

I have been successfully using ffmpeg to stream using the Haivision SRT protocol enabled, I need to access the SRT statistics as described here https://github.com/Haivision/srt/blob/master/docs/API/statistics.md Can anyone help me to understand how…
1
vote
1 answer

Matching .srt file subtitle line and timestamps with regex

As the title states, I want to match the timestamp and text lines of a .srt file subtitles. some of these files are not formatted properly, so I need something to work with almost all of them. the correct formatting of a file is like…
sina.E
  • 28
  • 4
1
vote
3 answers

How to convert .srt file into ttml based xml subtitle file using ffmpeg?

I have an .srt subtitle file. I want to convert it into .ttml format(or xml) using ffmpeg command. I tried using traditional way to convert this. But ffmpeg throwing an error. Is there any way to convert this in Linux platform? Or any other command…
geo-freak
  • 327
  • 3
  • 20
1
vote
1 answer

Problem with SRT file (index and empty line)

How can I change the following .srt file to look like the one at the end of the post?: 1 1 00:00:01,270 --> 00:00:04,520 Now before diving into some NodeJS code, 2 2 00:00:04,520 --> 00:00:06,700 let's do a high level…
hoangtd
  • 198
  • 2
  • 9
1
vote
0 answers

SRT : No Room to Store Incoming Packets when we stream SRT streams through VLC

Hope all you are doing well. Actually i was trying to stream a media file using VLC by SRT protocol. For which, srt-live-transmit is used as converter in between SRT Listener and VLC UDP streams. srt-live-transmit used to convert udp to srt…
Shankar
  • 15
  • 4
1
vote
0 answers

Android MediaPlayer addTimedTextSource not notifying when caption 'ends', only when a caption 'starts'

I have a MediaPlayer setup and I'm loading in a .srt file from my Raw Resources, loading it in via addTimedTextSource and assigning a OnTimedTextListener. This all seems to be working, the OnTimedTextListener onTimedText events fire. However I only…
Iain Stanford
  • 606
  • 1
  • 6
  • 18