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
0 answers

Rounded corners in subtitle (Advanced Substation Alpha [.ass])

Is it possible to have rounded corners with the BorderStyle 4 in .ass (Advanced Substation Alpha)? I only found out that the BorderStyle 4 exists, because I was looking at this stackoverflow. Is there any good and complete documentation of the…
2
votes
0 answers

Using SRT protocol in Gstreamer

Using the following 2 commands I can stream a videotestsrc source over SRT. gst-launch-1.0 -v videotestsrc ! queue ! x264enc ! queue ! mpegtsmux alignment=7 ! identity silent=false ! queue leaky=downstream ! srtsink uri="srt://:8888" sync=false…
Mike05
  • 21
  • 1
  • 4
2
votes
1 answer

How to manipulate text via command-line utilities: grep, cut, awk, sed or BBEdit (Grep Find Option)

I'm struggling with a srt file. I've got a very very long subtitle file and I'd like to automatically get caption text just on a single line instead of two (or worst) three different lines like in the original file. I tried many solution decide to…
PULASTER
  • 21
  • 2
2
votes
2 answers

flutter video player add SubtitleView

hello guys as of today video player 10.8 doesnt have support for included srt files in .mkv container. English is not my native language and i use a lot of .mkv with .srt inside of it. Exoplayer which video player is based on android has support out…
Adrian M Cavazos
  • 175
  • 1
  • 13
2
votes
2 answers

How to convert srt file into SSML enhanced text for AWS Polly?

We have some proofread .srt files and we want to generate audio from them by AWS Polly. According to references on AWS Polly, the input type for Polly is either plain text or SSML enhanced-text. Is there a way to convert .srt file to SSML…
2
votes
3 answers

RegEx matching for SRT and VTT syntax from subtitles

I am having subtitles in both srt and vtt format where I need to match and remove format specific syntax and just get clean lines with text. I have come up with this regex: /\n?\d*?\n?^.* --> [012345]{2}:.*$/m sample content (mix both srt and…
Johncze
  • 469
  • 1
  • 6
  • 19
2
votes
0 answers

How to merge segmented webvtt subtitle files and output a single file?

How to merge a segmented webvtt subtitle file and output a single file?, m3u8 looks like this…
Dobbelina
  • 71
  • 1
  • 5
2
votes
1 answer

Compiling gst-plugins-bad with SRT on Raspberry Pi 3

I tried to compile gst-plugins-bad with SRT, compiling was successful but I can't find the plugin. I think the dependency lib srt is missing and the right parameter (I used --with-srt). These are the commands I used: git clone…
user10483604
2
votes
3 answers

Converting milliSeconds to SRT time using JS

I have an input like like this: start: 0.21 | duration: 0.30 | text: Subtitle Text 1 start: 0.32 | duration: 0.52 | text: Subtitle Text 2 This input needs to be converted into SRT format, so it becomes something like this: 1 00:00:00,210 -->…
CodeMan
  • 1,941
  • 6
  • 26
  • 44
2
votes
2 answers

Go through JSON object at specified times (e.g. movie subtitles)

First of all, sorry if the title is not precise enough, if anyone has suggestions they are most welcome. I will explain my problem now. I have a JSON file (although here it's a javascript object), which I want to loop through. It's a subtitle file…
George Welder
  • 3,787
  • 11
  • 39
  • 75
2
votes
1 answer

Regex add tag to subtitles

I have a subtitle file of a movie, like below: 2 00:00:44,687 --> 00:00:46,513 Let's begin. 3 00:01:01,115 --> 00:01:02,975 Very good. 4 00:01:05,965 --> 00:01:08,110 What was your wife's name? 5 00:01:08,943 --> 00:01:12,366 - Mary. - Mary,…
Vicky Dev
  • 1,893
  • 2
  • 27
  • 62
2
votes
1 answer

Notepad++ Find and Select Specific Text or Number in my case

I am trying to edit a .srt file, and I am stuck on a specific task. I am sure there may be an easier way, but after searching for a couple hours, I am unable to find anything that helps me. I am trying to select all occurrences of the string "1" and…
trenten
  • 99
  • 1
  • 2
  • 13
2
votes
1 answer

PHP form validation and .srt MIME type?

I have a small PHP script that fixes some errors in Subtitle Workshop .srt-files. It works fine, but i have a problem validating .srt-files MIME types. Here's a part of the code in question: if ( $_FILES['file']['type'] != 'text/plain'…
user2696785
  • 143
  • 2
  • 3
  • 11
2
votes
1 answer

R: Extracting time from srt (subtitles) file

I need to calculate the speech rate of each line of subtitle. The content of the srt (subtitles) file looks like this: 1 00:00:19,000 --> 00:00:21,989 I'm Annita McVeigh and welcome to Election Today where we'll bring you 2 00:00:22,000 -->…
Ninjadog
  • 77
  • 10
2
votes
2 answers

How to Burn Subtitle (SRT) file and Timecode in FFMpeg

I am trying to burn (hardcode) an SRT file and a timecode value to a MP4 file, but to no avail. I am currently burning the srt and timecode using the below commands: Burn SRT ffmpeg -i input.mp4 -vf subtitles=subs.srt out.mp4 Burn Timecode ffmpeg…
Rahul Prasad
  • 21
  • 1
  • 3
1 2
3
12 13