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

Elasticsearch: Indexing .srt files

1 00:02:17,440 --> 00:02:20,375 Hello Bob, 2 00:02:20,476 --> 00:02:22,501 how are you doing today? ... Consider a standard .srt file, which contains text data with timestamp information for displaying audio at the correct interval on the client…
Andy
  • 109
  • 1
  • 3
  • 14
3
votes
1 answer

How do i open srt file on flutter?

I am trying to load subtitle to a video using the flutter video player package it works good for short files but it stopped as the file get bigger I trayed subtitle_wrapper package but it has many bugs Future getSubtitle(String…
3
votes
1 answer

multiple lines of subtitles in Moviepy

I'm using MoviePy to create a video with subtitles. Here's the code to illustrate: generator = lambda txt: TextClip(txt, font='Arial', fontsize=48, color='Black') subtitles = SubtitlesClip("captions_cropped.srt", generator) video =…
Sefi_k
  • 87
  • 8
3
votes
2 answers

How to transcribe audio without using external APIs?

I would prefer not to use Amazon, Google etc, so how would I use my own computer (macOS) to get a time-stamped transcription of mp3s and videos? Preferably on the command line. So I could do something like this transcribe -o oliver_twist.srt…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
3
votes
2 answers

Use ffmpeg to add multiple subtitles separately to a video

I am trying to add multiple languages of subtitles to a video using ffmpeg. I succeeded in adding 1 language, but can't seem to add a second one. I use this simple script to add english subtitles to my video. ffmpeg -i %1 -i subs_eng.srt -map 0…
Appa
  • 33
  • 1
  • 3
3
votes
1 answer

support srt/vtt subtitle and syncing in video player flutter

I want to play srt subtitles in my app. I have integrated srt_parser so far. Also, I am able to get the current position of the player by this code inMilliseconds = _videoPlayerController.value.position.inMilliseconds; Here is srt parse code. …
Ravinder Kumar
  • 7,407
  • 3
  • 28
  • 54
3
votes
0 answers

Hackathon: Converting json to SRT format in React, and getting the video to read the SRT

Currently have a react app for a project at our hackathon. Due in 1 hour and here is our issue. So we have this video player that will read a custom subtitle in SRT format. I have stored the user input into JSON and coverted it to SRT format,…
Nicholas Hrboka
  • 177
  • 1
  • 4
  • 15
3
votes
1 answer

How to extract closed-captioning from streaming online video

I found this, but it seems to be about streaming videos that have been downloaded. Is there any way to extract the SRT from streaming videos without downloading them? Or is there any way to download a streaming video from, say, cbs.com or HULU or…
Suzanne
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Batch to Create video .srt Subtitles with right timing

Oh boy! I don't know even know what to start with) So, I have a folder with a lot of videos. What I need is to create subtitles with the names of those videos also minding their length to create subtitles in .srt format. I have already look up some…
user5715027
3
votes
2 answers

How to send srt files over http

I am able to upload videos to Facebook via their Graph API, but unable to upload captions (cc) for those videos. According to their documentation on uploading video captions only the video id, locale, and srt filename must be provided. However,…
Zen
  • 51
  • 3
3
votes
1 answer

How to change subtitle's color & add background to it with mencoder/ffmpeg command line tools?

I want to burn a subtitle file with .srt format in Persian (-utf8) into a video file with .mp4 format using mencoder. I'm using ubuntu 14.04. This command works for the simple task of burning subtitle on video file: sudo mencoder input.mp4 -sub…
sheshkovsky
  • 1,302
  • 3
  • 18
  • 41
3
votes
6 answers

parsing a .srt file with regex

I am doing a small script in python, but since I am quite new I got stuck in one part: I need to get timing and text from a .srt file. For example, from 1 00:00:01,000 --> 00:00:04,074 Subtitles downloaded from www.OpenSubtitles.org I need to…
user3630290
  • 47
  • 1
  • 6
3
votes
0 answers

SRT file with JWplayer

I am attempting to use an SRT file to add captions to JWplayer. I am able to get JWplayer to list multiple subtitle options for the viewer to choose, and able to set a default option and this works. However the captions do not appear in the…
user3009618
  • 191
  • 3
  • 7
3
votes
2 answers

Mapping corners to arbitrary positions using Direct2D

I'm using WIC and Direct2D (via SharpDX) to composite photos into video frames. For each frame I have the exact coordinates where each corner will be found. While the photos themselves are a standard aspect ratio (e.g. 4:3 or 16:9) the insertion…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
2
votes
1 answer

Combining lines in a txt file to complete phrases

File content as follows (it's a part of video subtitles). I want to combine lines to complete phrases. 1 00:00:00,000 --> 00:00:13,680 Je vais mettre en direct sur l'hôtel comme ça on peut regarder les messages et tout. 2 00:00:13,680 -->…
Ömer Work
  • 23
  • 4
1
2
3
12 13