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
216
votes
9 answers

Use ffmpeg to add text subtitles

I am trying to add text subtitles to an .mp4 container using ffmpeg: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mp4 When I am trying to run this line, it gives me an error : Nmber of stream maps must match number of output…
0-alpha
  • 3,281
  • 5
  • 20
  • 12
34
votes
3 answers

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

I have been trying to use an .srt file for a timed text source (Only available in android 4.1+ http://developer.android.com/about/versions/android-4.1.html#Multimedia) . The first problem has to do with getting a file descriptor for the .srt file…
user1489039
  • 349
  • 1
  • 3
  • 4
16
votes
3 answers

What's the benefit of WEBVTT(.vtt) over SubReal (.srt)?

I finally came to a conclusion that google-chrome does not support .srt because WEBVTT is HTML5 standard. Now I am wondering what's the reasoning behind this decision. It seems that google-chrome might have supported .srt too because: .srt was…
RNA
  • 1,164
  • 2
  • 19
  • 35
16
votes
2 answers

Is it possible to download the automatic captions from a video?

My goal is to download automatic caption from a set of youtube videos. (I just want to get video information and subtitles of videos according to a query) The first thing I read is that you cannot download subtitles if you are not the owner. But I…
user2095138
  • 161
  • 1
  • 1
  • 4
14
votes
4 answers

Does HTML5 Video support srt textTrack?

I have tried the html5 video with textTrack, it works properly with .vtt (WebVTT). However, it doesn't work with .srt. So my question is whether html5 support .srt on the chrome or firefox? I have looked the information in w3 but there are no…
Thomas Lee
  • 1,001
  • 2
  • 13
  • 31
13
votes
4 answers

Is it possible to extract SubRip (SRT) subtitles from an MP4 video with ffmpeg?

I have checked the FFMpeg documentation and many forums and figured out the correct command-line to extract subtitles from an .MP4 video should look like so: ffmpeg -i video.mp4 -vn -an -codec:s:0 srt out.srt However, I get the following error,…
Maxime Labelle
  • 3,609
  • 2
  • 27
  • 48
9
votes
0 answers

Local Srt files with AVPlayer

I'm trying to cache srt files and play them with mp4 video files using AVFoundation AVPlayer. Streaming works fine with webVTT subtitles but I also need to cache videos and subtitles. I was wondering if this is even possible or a possible…
7
votes
2 answers

Any app which can transform .vtt to .srt?

Are there any apps which can transform from .vtt to .srt format? I tried subtitleeditor which doesn't have support for .vtt. If anybody does know of any specific app which can be used to do the same, please share.
shirish
  • 477
  • 1
  • 4
  • 12
6
votes
5 answers

parsing transcript .srt files into readable text

I have a video transcript SRT file with lines in conventional SRT format. Here's an example: 1 00:00:00,710 --> 00:00:03,220 Lorem ipsum dolor sit amet consectetur, adipisicing elit. 2 00:00:03,220 --> 00:00:05,970 Dignissimos et quod…
Jetals
  • 131
  • 1
  • 2
  • 10
6
votes
3 answers

Parse a SRT file with jQuery Javascript

I'm trying to parse .srt but I get an internal error and I can't figure out what is it. Here is my code: var subtitles; jQuery.get('SB_LKRG-eng.srt', function(data) { //alert(data); function strip(s) { return…
Sergi
  • 417
  • 6
  • 18
5
votes
2 answers

Converting Seconds and Duration to SRT (subtitle) time format (PHP)

I have an input like like this: start: 10 | duration: 1 | text: Subtitle Text 1 start: 15 | duration: 2 | text: Subtitle Text 2 start: 20 | duration: 3 | text: Subtitle Text 3 It's a subtitle instruction set, that says following: At 10 second of…
jjj
  • 2,594
  • 7
  • 36
  • 57
4
votes
1 answer

Read subtitles from mkv/media

I've got a problem, I have a .srt subtitle file, as external and internal as a subtitle stream, it's easy to load/read the external file but how to read the internal file with .mkv/media? Extracting the .srt file to a temporary folder is only a…
ArchAngel
  • 634
  • 7
  • 16
4
votes
2 answers

Adding or substracting seconds from a .SRT file

I've searched and found nothing similar. What I'm trying to achieve is creating a simple PHP/js/jq script that can add or subtract seconds from a .srt file. I'm not sure if regex is something I should go with to achieve it or something else. The…
Amit
  • 187
  • 2
  • 15
4
votes
2 answers

Can we play .vtt file in android for subtitles?

I have got a .SRT file working on Android platform as sub-tiles along with video. But the company has .vtt files for tons of videos, and .srt for only a few. .vtt is supported by iPhone development. Can we play .vtt file on Android for subtitles? I…
4
votes
7 answers

parsing .srt files

1 00:00:00,074 --> 00:00:02,564 Previously on Breaking Bad... 2 00:00:02,663 --> 00:00:04,393 Words... i need to parse srt files with php and print the all subs in the file with variables. i couldn't find the right reg exps. when doing this i need…
user1447165
  • 87
  • 1
  • 2
  • 8
1
2 3
12 13